}
/* TODO: Perry : For Power Management */
-void rtw_atimdone_event_callback23a(struct rtw_adapter *adapter, u8 *pbuf)
+void rtw_atimdone_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf)
{
RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("receive atimdone_evet\n"));
return;
}
-void rtw_survey_event_cb23a(struct rtw_adapter *adapter, u8 *pbuf)
+void rtw_survey_event_cb23a(struct rtw_adapter *adapter, const u8 *pbuf)
{
u32 len;
struct wlan_bssid_ex *pnetwork;
return;
}
-void rtw_surveydone_event_callback23a(struct rtw_adapter *adapter, u8 *pbuf)
+void
+rtw_surveydone_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf)
{
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
rtw_cfg80211_surveydone_event_callback(adapter);
}
-void rtw_dummy_event_callback23a(struct rtw_adapter *adapter , u8 *pbuf)
+void rtw_dummy_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf)
{
}
-void rtw23a_fwdbg_event_callback(struct rtw_adapter *adapter , u8 *pbuf)
+void rtw23a_fwdbg_event_callback(struct rtw_adapter *adapter, const u8 *pbuf)
{
}
spin_unlock_bh(&pmlmepriv->lock);
}
-void rtw23a_joinbss_event_cb(struct rtw_adapter *adapter, u8 *pbuf)
+void rtw23a_joinbss_event_cb(struct rtw_adapter *adapter, const u8 *pbuf)
{
struct wlan_network *pnetwork = (struct wlan_network *)pbuf;
rtw_os_xmit_schedule23a(adapter);
}
-void rtw_stassoc_event_callback23a(struct rtw_adapter *adapter, u8 *pbuf)
+void rtw_stassoc_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf)
{
struct sta_info *psta;
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
mlmeext_sta_add_event_callback23a(adapter, psta);
}
-void rtw_stadel_event_callback23a(struct rtw_adapter *adapter, u8 *pbuf)
+void rtw_stadel_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf)
{
int mac_id;
struct sta_info *psta;
spin_unlock_bh(&pmlmepriv->lock);
}
-void rtw_cpwm_event_callback23a(struct rtw_adapter *padapter, u8 *pbuf)
+void rtw_cpwm_event_callback23a(struct rtw_adapter *padapter, const u8 *pbuf)
{
RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_,
("+rtw_cpwm_event_callback23a !!!\n"));
u8 evt_code, evt_seq;
u16 evt_sz;
const struct C2HEvent_Header *c2h;
- void (*event_callback)(struct rtw_adapter *dev, u8 *pbuf);
+ void (*event_callback)(struct rtw_adapter *dev, const u8 *pbuf);
c2h = (struct C2HEvent_Header *)pbuf;
evt_sz = c2h->len;
}
event_callback = wlanevents[evt_code].event_callback;
- event_callback(padapter, (u8 *)pbuf + sizeof(struct C2HEvent_Header));
+ event_callback(padapter, pbuf + sizeof(struct C2HEvent_Header));
_abort_event_:
#endif
void rtw_joinbss_event_prehandle23a(struct rtw_adapter *adapter, u8 *pbuf);
-void rtw_survey_event_cb23a(struct rtw_adapter *adapter, u8 *pbuf);
-void rtw_surveydone_event_callback23a(struct rtw_adapter *adapter, u8 *pbuf);
-void rtw23a_joinbss_event_cb(struct rtw_adapter *adapter, u8 *pbuf);
-void rtw_stassoc_event_callback23a(struct rtw_adapter *adapter, u8 *pbuf);
-void rtw_stadel_event_callback23a(struct rtw_adapter *adapter, u8 *pbuf);
-void rtw_atimdone_event_callback23a(struct rtw_adapter *adapter, u8 *pbuf);
-void rtw_cpwm_event_callback23a(struct rtw_adapter *adapter, u8 *pbuf);
+void rtw_survey_event_cb23a(struct rtw_adapter *adapter, const u8 *pbuf);
+void rtw_surveydone_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf);
+void rtw23a_joinbss_event_cb(struct rtw_adapter *adapter, const u8 *pbuf);
+void rtw_stassoc_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf);
+void rtw_stadel_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf);
+void rtw_atimdone_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf);
+void rtw_cpwm_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf);
int event_thread(void *context);