|
@@ -725,10 +725,7 @@ void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf)
|
|
RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("rtw_surveydone_event_callback: fw_state:%x\n\n", get_fwstate(pmlmepriv)));
|
|
RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("rtw_surveydone_event_callback: fw_state:%x\n\n", get_fwstate(pmlmepriv)));
|
|
|
|
|
|
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) {
|
|
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) {
|
|
- u8 timer_cancelled;
|
|
|
|
-
|
|
|
|
- _cancel_timer(&pmlmepriv->scan_to_timer, &timer_cancelled);
|
|
|
|
-
|
|
|
|
|
|
+ del_timer_sync(&pmlmepriv->scan_to_timer);
|
|
_clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY);
|
|
_clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY);
|
|
} else {
|
|
} else {
|
|
RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("nic status=%x, survey done event comes too late!\n", get_fwstate(pmlmepriv)));
|
|
RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("nic status=%x, survey done event comes too late!\n", get_fwstate(pmlmepriv)));
|
|
@@ -1103,7 +1100,6 @@ static void rtw_joinbss_update_network(struct adapter *padapter, struct wlan_net
|
|
|
|
|
|
void rtw_joinbss_event_prehandle(struct adapter *adapter, u8 *pbuf)
|
|
void rtw_joinbss_event_prehandle(struct adapter *adapter, u8 *pbuf)
|
|
{
|
|
{
|
|
- u8 timer_cancelled;
|
|
|
|
struct sta_info *ptarget_sta = NULL, *pcur_sta = NULL;
|
|
struct sta_info *ptarget_sta = NULL, *pcur_sta = NULL;
|
|
struct sta_priv *pstapriv = &adapter->stapriv;
|
|
struct sta_priv *pstapriv = &adapter->stapriv;
|
|
struct mlme_priv *pmlmepriv = &(adapter->mlmepriv);
|
|
struct mlme_priv *pmlmepriv = &(adapter->mlmepriv);
|
|
@@ -1196,7 +1192,7 @@ void rtw_joinbss_event_prehandle(struct adapter *adapter, u8 *pbuf)
|
|
}
|
|
}
|
|
|
|
|
|
/* s5. Cancle assoc_timer */
|
|
/* s5. Cancle assoc_timer */
|
|
- _cancel_timer(&pmlmepriv->assoc_timer, &timer_cancelled);
|
|
|
|
|
|
+ del_timer_sync(&pmlmepriv->assoc_timer);
|
|
|
|
|
|
RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("Cancle assoc_timer\n"));
|
|
RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("Cancle assoc_timer\n"));
|
|
|
|
|