staging: rtl8723au: rtw_survey_event_cb23a(): Use the correct types for the received...
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 9 Jun 2014 13:16:28 +0000 (15:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jun 2014 21:00:19 +0000 (14:00 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_mlme.c

index 44a524975949d63040d23d9dd896d4f0303138cf..639dfca9fe2f521953fdbc91c76ed02c46d57209 100644 (file)
@@ -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));