|
@@ -58,10 +58,6 @@
|
|
#define TIME_START()
|
|
#define TIME_START()
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#ifndef DISCONNECT_RESPONSE_MS
|
|
|
|
-#define DISCONNECT_RESPONSE_MS (2000)
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
#if RT_WLAN_EBOX_NUM < 1
|
|
#if RT_WLAN_EBOX_NUM < 1
|
|
#error "event box num Too few"
|
|
#error "event box num Too few"
|
|
#endif
|
|
#endif
|
|
@@ -2020,7 +2016,7 @@ int rt_wlan_init(void)
|
|
rt_mutex_init(&complete_mutex, "complete", RT_IPC_FLAG_FIFO);
|
|
rt_mutex_init(&complete_mutex, "complete", RT_IPC_FLAG_FIFO);
|
|
#ifdef RT_WLAN_AUTO_CONNECT_ENABLE
|
|
#ifdef RT_WLAN_AUTO_CONNECT_ENABLE
|
|
rt_timer_init(&reconnect_time, "wifi_tim", rt_wlan_cyclic_check, RT_NULL,
|
|
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);
|
|
RT_TIMER_FLAG_PERIODIC | RT_TIMER_FLAG_SOFT_TIMER);
|
|
#endif
|
|
#endif
|
|
_init_flag = 1;
|
|
_init_flag = 1;
|