|
@@ -32,39 +32,39 @@
|
|
|
#include "drv_types.h"
|
|
|
#include "mlme_osdep.h"
|
|
|
|
|
|
-static void sitesurvey_ctrl_handler(void *FunctionContext)
|
|
|
+static void sitesurvey_ctrl_handler(unsigned long data)
|
|
|
{
|
|
|
- struct _adapter *adapter = (struct _adapter *)FunctionContext;
|
|
|
+ struct _adapter *adapter = (struct _adapter *)data;
|
|
|
|
|
|
_r8712_sitesurvey_ctrl_handler(adapter);
|
|
|
mod_timer(&adapter->mlmepriv.sitesurveyctrl.sitesurvey_ctrl_timer,
|
|
|
jiffies + msecs_to_jiffies(3000));
|
|
|
}
|
|
|
|
|
|
-static void join_timeout_handler (void *FunctionContext)
|
|
|
+static void join_timeout_handler (unsigned long data)
|
|
|
{
|
|
|
- struct _adapter *adapter = (struct _adapter *)FunctionContext;
|
|
|
+ struct _adapter *adapter = (struct _adapter *)data;
|
|
|
|
|
|
_r8712_join_timeout_handler(adapter);
|
|
|
}
|
|
|
|
|
|
-static void _scan_timeout_handler (void *FunctionContext)
|
|
|
+static void _scan_timeout_handler (unsigned long data)
|
|
|
{
|
|
|
- struct _adapter *adapter = (struct _adapter *)FunctionContext;
|
|
|
+ struct _adapter *adapter = (struct _adapter *)data;
|
|
|
|
|
|
r8712_scan_timeout_handler(adapter);
|
|
|
}
|
|
|
|
|
|
-static void dhcp_timeout_handler (void *FunctionContext)
|
|
|
+static void dhcp_timeout_handler (unsigned long data)
|
|
|
{
|
|
|
- struct _adapter *adapter = (struct _adapter *)FunctionContext;
|
|
|
+ struct _adapter *adapter = (struct _adapter *)data;
|
|
|
|
|
|
_r8712_dhcp_timeout_handler(adapter);
|
|
|
}
|
|
|
|
|
|
-static void wdg_timeout_handler (void *FunctionContext)
|
|
|
+static void wdg_timeout_handler (unsigned long data)
|
|
|
{
|
|
|
- struct _adapter *adapter = (struct _adapter *)FunctionContext;
|
|
|
+ struct _adapter *adapter = (struct _adapter *)data;
|
|
|
|
|
|
_r8712_wdg_timeout_handler(adapter);
|
|
|
|
|
@@ -76,17 +76,17 @@ void r8712_init_mlme_timer(struct _adapter *padapter)
|
|
|
{
|
|
|
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
|
|
|
|
|
- _init_timer(&(pmlmepriv->assoc_timer), padapter->pnetdev,
|
|
|
- join_timeout_handler, (pmlmepriv->nic_hdl));
|
|
|
- _init_timer(&(pmlmepriv->sitesurveyctrl.sitesurvey_ctrl_timer),
|
|
|
- padapter->pnetdev, sitesurvey_ctrl_handler,
|
|
|
- (u8 *)(pmlmepriv->nic_hdl));
|
|
|
- _init_timer(&(pmlmepriv->scan_to_timer), padapter->pnetdev,
|
|
|
- _scan_timeout_handler, (pmlmepriv->nic_hdl));
|
|
|
- _init_timer(&(pmlmepriv->dhcp_timer), padapter->pnetdev,
|
|
|
- dhcp_timeout_handler, (u8 *)(pmlmepriv->nic_hdl));
|
|
|
- _init_timer(&(pmlmepriv->wdg_timer), padapter->pnetdev,
|
|
|
- wdg_timeout_handler, (u8 *)(pmlmepriv->nic_hdl));
|
|
|
+ setup_timer(&pmlmepriv->assoc_timer, join_timeout_handler,
|
|
|
+ (unsigned long)padapter);
|
|
|
+ setup_timer(&pmlmepriv->sitesurveyctrl.sitesurvey_ctrl_timer,
|
|
|
+ sitesurvey_ctrl_handler,
|
|
|
+ (unsigned long)padapter);
|
|
|
+ setup_timer(&pmlmepriv->scan_to_timer, _scan_timeout_handler,
|
|
|
+ (unsigned long)padapter);
|
|
|
+ setup_timer(&pmlmepriv->dhcp_timer, dhcp_timeout_handler,
|
|
|
+ (unsigned long)padapter);
|
|
|
+ setup_timer(&pmlmepriv->wdg_timer, wdg_timeout_handler,
|
|
|
+ (unsigned long)padapter);
|
|
|
}
|
|
|
|
|
|
void r8712_os_indicate_connect(struct _adapter *adapter)
|
|
@@ -118,9 +118,9 @@ void r8712_os_indicate_disconnect(struct _adapter *adapter)
|
|
|
btkip_countermeasure;
|
|
|
memset((unsigned char *)&adapter->securitypriv, 0,
|
|
|
sizeof(struct security_priv));
|
|
|
- _init_timer(&(adapter->securitypriv.tkip_timer),
|
|
|
- adapter->pnetdev, r8712_use_tkipkey_handler,
|
|
|
- adapter);
|
|
|
+ setup_timer(&adapter->securitypriv.tkip_timer,
|
|
|
+ r8712_use_tkipkey_handler,
|
|
|
+ (unsigned long)adapter);
|
|
|
/* Restore the PMK information to securitypriv structure
|
|
|
* for the following connection. */
|
|
|
memcpy(&adapter->securitypriv.PMKIDList[0],
|