From: Jes Sorensen Date: Mon, 9 Jun 2014 13:16:28 +0000 (+0200) Subject: staging: rtl8723au: rtw_survey_event_cb23a(): Use the correct types for the received... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7195dc0e1a9982eb950b614e07abc5ba3068e95d;p=openwrt%2Fstaging%2Fblogic.git staging: rtl8723au: rtw_survey_event_cb23a(): Use the correct types for the received arguments Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/core/rtw_mlme.c b/drivers/staging/rtl8723au/core/rtw_mlme.c index 44a524975949..639dfca9fe2f 100644 --- a/drivers/staging/rtl8723au/core/rtw_mlme.c +++ b/drivers/staging/rtl8723au/core/rtw_mlme.c @@ -638,8 +638,9 @@ void rtw_survey_event_cb23a(struct rtw_adapter *adapter, const u8 *pbuf) u32 len; struct wlan_bssid_ex *pnetwork; struct mlme_priv *pmlmepriv = &adapter->mlmepriv; + struct survey_event *survey = (struct survey_event *)pbuf; - pnetwork = (struct wlan_bssid_ex *)pbuf; + pnetwork = &survey->bss; RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_, ("rtw_survey_event_cb23a, ssid=%s\n", pnetwork->Ssid.ssid));