1
0
mirror of https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git synced 2025-10-19 17:11:09 +02:00

adapt to api in linux 4.2

This commit is contained in:
Jos Dehaes
2015-09-25 23:11:57 +02:00
parent e87f29007c
commit 0aa1823aa7

View File

@@ -600,8 +600,12 @@ void rtw_cfg80211_indicate_disconnect(_adapter *padapter)
WLAN_STATUS_UNSPECIFIED_FAILURE, GFP_ATOMIC/*GFP_KERNEL*/);
else if(pwdev->sme_state==CFG80211_SME_CONNECTED)
cfg80211_disconnected(padapter->pnetdev, 0, NULL, 0, GFP_ATOMIC);
#else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0)
cfg80211_disconnected(padapter->pnetdev, 0, NULL, 0, 0, GFP_ATOMIC);
#else
cfg80211_disconnected(padapter->pnetdev, 0, NULL, 0, GFP_ATOMIC);
#endif
#endif
//DBG_8192C("pwdev->sme_state(a)=%d\n", pwdev->sme_state);