mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-29 10:30:24 +00:00
[components][drivers][wlan] 自动连接周期可配置,可指定扫描通道
This commit is contained in:
@@ -58,10 +58,6 @@
|
||||
#define TIME_START()
|
||||
#endif
|
||||
|
||||
#ifndef DISCONNECT_RESPONSE_MS
|
||||
#define DISCONNECT_RESPONSE_MS (2000)
|
||||
#endif
|
||||
|
||||
#if RT_WLAN_EBOX_NUM < 1
|
||||
#error "event box num Too few"
|
||||
#endif
|
||||
@@ -2020,7 +2016,7 @@ int rt_wlan_init(void)
|
||||
rt_mutex_init(&complete_mutex, "complete", RT_IPC_FLAG_FIFO);
|
||||
#ifdef RT_WLAN_AUTO_CONNECT_ENABLE
|
||||
rt_timer_init(&reconnect_time, "wifi_tim", rt_wlan_cyclic_check, RT_NULL,
|
||||
rt_tick_from_millisecond(DISCONNECT_RESPONSE_MS),
|
||||
rt_tick_from_millisecond(AUTO_CONNECTION_PERIOD_MS),
|
||||
RT_TIMER_FLAG_PERIODIC | RT_TIMER_FLAG_SOFT_TIMER);
|
||||
#endif
|
||||
_init_flag = 1;
|
||||
|
||||
Reference in New Issue
Block a user