diff options
-rw-r--r-- | drivers/staging/rtl8188eu/core/rtw_mlme.c | 13 | ||||
-rw-r--r-- | drivers/staging/rtl8188eu/include/rtw_mlme.h | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8188eu/os_dep/mlme_linux.c | 12 |
3 files changed, 10 insertions, 17 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c b/drivers/staging/rtl8188eu/core/rtw_mlme.c index d5b2f51dc715..149c271e966d 100644 --- a/drivers/staging/rtl8188eu/core/rtw_mlme.c +++ b/drivers/staging/rtl8188eu/core/rtw_mlme.c | |||
@@ -1431,24 +1431,27 @@ static void rtw_auto_scan_handler(struct adapter *padapter) | |||
1431 | } | 1431 | } |
1432 | } | 1432 | } |
1433 | 1433 | ||
1434 | void rtw_dynamic_check_timer_handlder(struct adapter *adapter) | 1434 | void rtw_dynamic_check_timer_handlder(void *function_context) |
1435 | { | 1435 | { |
1436 | struct adapter *adapter = (struct adapter *)function_context; | ||
1436 | struct registry_priv *pregistrypriv = &adapter->registrypriv; | 1437 | struct registry_priv *pregistrypriv = &adapter->registrypriv; |
1437 | 1438 | ||
1438 | if (!adapter) | 1439 | if (!adapter) |
1439 | return; | 1440 | goto exit; |
1440 | if (!adapter->hw_init_completed) | 1441 | if (!adapter->hw_init_completed) |
1441 | return; | 1442 | goto exit; |
1442 | if ((adapter->bDriverStopped) || (adapter->bSurpriseRemoved)) | 1443 | if ((adapter->bDriverStopped) || (adapter->bSurpriseRemoved)) |
1443 | return; | 1444 | goto exit; |
1444 | if (adapter->net_closed) | 1445 | if (adapter->net_closed) |
1445 | return; | 1446 | goto exit; |
1446 | rtw_dynamic_chk_wk_cmd(adapter); | 1447 | rtw_dynamic_chk_wk_cmd(adapter); |
1447 | 1448 | ||
1448 | if (pregistrypriv->wifi_spec == 1) { | 1449 | if (pregistrypriv->wifi_spec == 1) { |
1449 | /* auto site survey */ | 1450 | /* auto site survey */ |
1450 | rtw_auto_scan_handler(adapter); | 1451 | rtw_auto_scan_handler(adapter); |
1451 | } | 1452 | } |
1453 | exit: | ||
1454 | _set_timer(&adapter->mlmepriv.dynamic_chk_timer, 2000); | ||
1452 | } | 1455 | } |
1453 | 1456 | ||
1454 | #define RTW_SCAN_RESULT_EXPIRE 2000 | 1457 | #define RTW_SCAN_RESULT_EXPIRE 2000 |
diff --git a/drivers/staging/rtl8188eu/include/rtw_mlme.h b/drivers/staging/rtl8188eu/include/rtw_mlme.h index 8f5457ba2fdc..8d83f7ceda76 100644 --- a/drivers/staging/rtl8188eu/include/rtw_mlme.h +++ b/drivers/staging/rtl8188eu/include/rtw_mlme.h | |||
@@ -554,7 +554,7 @@ void rtw_get_encrypt_decrypt_from_registrypriv(struct adapter *adapter); | |||
554 | void _rtw_join_timeout_handler(void *function_context); | 554 | void _rtw_join_timeout_handler(void *function_context); |
555 | void rtw_scan_timeout_handler(void *function_context); | 555 | void rtw_scan_timeout_handler(void *function_context); |
556 | 556 | ||
557 | void rtw_dynamic_check_timer_handlder(struct adapter *adapter); | 557 | void rtw_dynamic_check_timer_handlder(void *function_context); |
558 | #define rtw_is_scan_deny(adapter) false | 558 | #define rtw_is_scan_deny(adapter) false |
559 | #define rtw_clear_scan_deny(adapter) do {} while (0) | 559 | #define rtw_clear_scan_deny(adapter) do {} while (0) |
560 | #define rtw_set_scan_deny_timer_hdl(adapter) do {} while (0) | 560 | #define rtw_set_scan_deny_timer_hdl(adapter) do {} while (0) |
diff --git a/drivers/staging/rtl8188eu/os_dep/mlme_linux.c b/drivers/staging/rtl8188eu/os_dep/mlme_linux.c index 0bfaa78adfbc..82b71fa9d148 100644 --- a/drivers/staging/rtl8188eu/os_dep/mlme_linux.c +++ b/drivers/staging/rtl8188eu/os_dep/mlme_linux.c | |||
@@ -25,23 +25,13 @@ | |||
25 | #include <drv_types.h> | 25 | #include <drv_types.h> |
26 | #include <mlme_osdep.h> | 26 | #include <mlme_osdep.h> |
27 | 27 | ||
28 | static void _dynamic_check_timer_handlder(void *FunctionContext) | ||
29 | { | ||
30 | struct adapter *adapter = (struct adapter *)FunctionContext; | ||
31 | |||
32 | if (adapter->registrypriv.mp_mode == 1) | ||
33 | return; | ||
34 | rtw_dynamic_check_timer_handlder(adapter); | ||
35 | _set_timer(&adapter->mlmepriv.dynamic_chk_timer, 2000); | ||
36 | } | ||
37 | |||
38 | void rtw_init_mlme_timer(struct adapter *padapter) | 28 | void rtw_init_mlme_timer(struct adapter *padapter) |
39 | { | 29 | { |
40 | struct mlme_priv *pmlmepriv = &padapter->mlmepriv; | 30 | struct mlme_priv *pmlmepriv = &padapter->mlmepriv; |
41 | 31 | ||
42 | _init_timer(&(pmlmepriv->assoc_timer), padapter->pnetdev, _rtw_join_timeout_handler, padapter); | 32 | _init_timer(&(pmlmepriv->assoc_timer), padapter->pnetdev, _rtw_join_timeout_handler, padapter); |
43 | _init_timer(&(pmlmepriv->scan_to_timer), padapter->pnetdev, rtw_scan_timeout_handler, padapter); | 33 | _init_timer(&(pmlmepriv->scan_to_timer), padapter->pnetdev, rtw_scan_timeout_handler, padapter); |
44 | _init_timer(&(pmlmepriv->dynamic_chk_timer), padapter->pnetdev, _dynamic_check_timer_handlder, padapter); | 34 | _init_timer(&(pmlmepriv->dynamic_chk_timer), padapter->pnetdev, rtw_dynamic_check_timer_handlder, padapter); |
45 | } | 35 | } |
46 | 36 | ||
47 | void rtw_os_indicate_connect(struct adapter *adapter) | 37 | void rtw_os_indicate_connect(struct adapter *adapter) |