diff options
author | navin patidar <navin.patidar@gmail.com> | 2014-07-28 13:41:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-30 20:16:09 -0400 |
commit | 457c3e90d5ee12139fedbafa4222c94ec34e88ab (patch) | |
tree | 0cae2d1924c8858f1b235bb882dcae8ffbe0bae2 | |
parent | d53791f7fe8e458036807541da3139b3fa858bf5 (diff) |
staging: rtl8188eu: Remove wrapper function rtw_join_timeout_handler()
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8188eu/core/rtw_mlme.c | 3 | ||||
-rw-r--r-- | drivers/staging/rtl8188eu/include/rtw_mlme.h | 3 | ||||
-rw-r--r-- | drivers/staging/rtl8188eu/os_dep/mlme_linux.c | 10 |
3 files changed, 4 insertions, 12 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c b/drivers/staging/rtl8188eu/core/rtw_mlme.c index c15fab21aecf..f63f1c2d6ea4 100644 --- a/drivers/staging/rtl8188eu/core/rtw_mlme.c +++ b/drivers/staging/rtl8188eu/core/rtw_mlme.c | |||
@@ -1362,8 +1362,9 @@ void rtw_cpwm_event_callback(struct adapter *padapter, u8 *pbuf) | |||
1362 | * _rtw_join_timeout_handler - Timeout/faliure handler for CMD JoinBss | 1362 | * _rtw_join_timeout_handler - Timeout/faliure handler for CMD JoinBss |
1363 | * @adapter: pointer to struct adapter structure | 1363 | * @adapter: pointer to struct adapter structure |
1364 | */ | 1364 | */ |
1365 | void _rtw_join_timeout_handler (struct adapter *adapter) | 1365 | void _rtw_join_timeout_handler (void *function_context) |
1366 | { | 1366 | { |
1367 | struct adapter *adapter = (struct adapter *)function_context; | ||
1367 | struct mlme_priv *pmlmepriv = &adapter->mlmepriv; | 1368 | struct mlme_priv *pmlmepriv = &adapter->mlmepriv; |
1368 | int do_join_r; | 1369 | int do_join_r; |
1369 | 1370 | ||
diff --git a/drivers/staging/rtl8188eu/include/rtw_mlme.h b/drivers/staging/rtl8188eu/include/rtw_mlme.h index 5b1fcd27f447..40b0c4b1dac5 100644 --- a/drivers/staging/rtl8188eu/include/rtw_mlme.h +++ b/drivers/staging/rtl8188eu/include/rtw_mlme.h | |||
@@ -436,7 +436,6 @@ void indicate_wx_scan_complete_event(struct adapter *padapter); | |||
436 | void rtw_indicate_wx_assoc_event(struct adapter *padapter); | 436 | void rtw_indicate_wx_assoc_event(struct adapter *padapter); |
437 | void rtw_indicate_wx_disassoc_event(struct adapter *padapter); | 437 | void rtw_indicate_wx_disassoc_event(struct adapter *padapter); |
438 | int event_thread(void *context); | 438 | int event_thread(void *context); |
439 | void rtw_join_timeout_handler(void *FunctionContext); | ||
440 | void _rtw_scan_timeout_handler(void *FunctionContext); | 439 | void _rtw_scan_timeout_handler(void *FunctionContext); |
441 | void rtw_free_network_queue(struct adapter *adapter, u8 isfreeall); | 440 | void rtw_free_network_queue(struct adapter *adapter, u8 isfreeall); |
442 | int rtw_init_mlme_priv(struct adapter *adapter); | 441 | int rtw_init_mlme_priv(struct adapter *adapter); |
@@ -553,7 +552,7 @@ void rtw_update_registrypriv_dev_network(struct adapter *adapter); | |||
553 | 552 | ||
554 | void rtw_get_encrypt_decrypt_from_registrypriv(struct adapter *adapter); | 553 | void rtw_get_encrypt_decrypt_from_registrypriv(struct adapter *adapter); |
555 | 554 | ||
556 | void _rtw_join_timeout_handler(struct adapter *adapter); | 555 | void _rtw_join_timeout_handler(void *function_context); |
557 | void rtw_scan_timeout_handler(struct adapter *adapter); | 556 | void rtw_scan_timeout_handler(struct adapter *adapter); |
558 | 557 | ||
559 | void rtw_dynamic_check_timer_handlder(struct adapter *adapter); | 558 | void rtw_dynamic_check_timer_handlder(struct adapter *adapter); |
diff --git a/drivers/staging/rtl8188eu/os_dep/mlme_linux.c b/drivers/staging/rtl8188eu/os_dep/mlme_linux.c index 737677cf409e..41d24598bf0a 100644 --- a/drivers/staging/rtl8188eu/os_dep/mlme_linux.c +++ b/drivers/staging/rtl8188eu/os_dep/mlme_linux.c | |||
@@ -25,14 +25,6 @@ | |||
25 | #include <drv_types.h> | 25 | #include <drv_types.h> |
26 | #include <mlme_osdep.h> | 26 | #include <mlme_osdep.h> |
27 | 27 | ||
28 | void rtw_join_timeout_handler (void *FunctionContext) | ||
29 | { | ||
30 | struct adapter *adapter = (struct adapter *)FunctionContext; | ||
31 | |||
32 | _rtw_join_timeout_handler(adapter); | ||
33 | } | ||
34 | |||
35 | |||
36 | void _rtw_scan_timeout_handler (void *FunctionContext) | 28 | void _rtw_scan_timeout_handler (void *FunctionContext) |
37 | { | 29 | { |
38 | struct adapter *adapter = (struct adapter *)FunctionContext; | 30 | struct adapter *adapter = (struct adapter *)FunctionContext; |
@@ -54,7 +46,7 @@ void rtw_init_mlme_timer(struct adapter *padapter) | |||
54 | { | 46 | { |
55 | struct mlme_priv *pmlmepriv = &padapter->mlmepriv; | 47 | struct mlme_priv *pmlmepriv = &padapter->mlmepriv; |
56 | 48 | ||
57 | _init_timer(&(pmlmepriv->assoc_timer), padapter->pnetdev, rtw_join_timeout_handler, padapter); | 49 | _init_timer(&(pmlmepriv->assoc_timer), padapter->pnetdev, _rtw_join_timeout_handler, padapter); |
58 | _init_timer(&(pmlmepriv->scan_to_timer), padapter->pnetdev, _rtw_scan_timeout_handler, padapter); | 50 | _init_timer(&(pmlmepriv->scan_to_timer), padapter->pnetdev, _rtw_scan_timeout_handler, padapter); |
59 | _init_timer(&(pmlmepriv->dynamic_chk_timer), padapter->pnetdev, _dynamic_check_timer_handlder, padapter); | 51 | _init_timer(&(pmlmepriv->dynamic_chk_timer), padapter->pnetdev, _dynamic_check_timer_handlder, padapter); |
60 | } | 52 | } |