mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacld-3.0: Update cfg80211_disconnected interface for Kernel update
Commit: 80279fb ("cfg80211: properly send NL80211_ATTR_DISCONNECTED_BY_AP
in disconnect")
Above commit is merged in Kernel 4.2, it introduces the new parameter
to indicate if the disconnect event is generated locally.
Change-Id: I016df3b400f5f4b8447676882df79fab6915a8f5
CRs-fixed: 966069
This commit is contained in:
parent
8ecb0fa07a
commit
a335c16780
3 changed files with 19 additions and 7 deletions
|
|
@ -1041,12 +1041,17 @@ static QDF_STATUS hdd_dis_connect_handler(hdd_adapter_t *pAdapter,
|
|||
eSIR_MAC_PEER_STA_REQ_LEAVING_BSS_REASON)
|
||||
pr_info("wlan: disconnected due to poor signal, rssi is %d dB\n", pRoamInfo->rxRssi);
|
||||
cfg80211_disconnected(dev, pRoamInfo->
|
||||
reasonCode, NULL,
|
||||
0, GFP_KERNEL);
|
||||
reasonCode, NULL, 0,
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)) || defined(WITH_BACKPORTS)
|
||||
true,
|
||||
#endif
|
||||
GFP_KERNEL);
|
||||
} else {
|
||||
cfg80211_disconnected(dev,
|
||||
WLAN_REASON_UNSPECIFIED,
|
||||
NULL, 0,
|
||||
WLAN_REASON_UNSPECIFIED, NULL, 0,
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)) || defined(WITH_BACKPORTS)
|
||||
true,
|
||||
#endif
|
||||
GFP_KERNEL);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9006,8 +9006,11 @@ disconnected:
|
|||
* is handled by __cfg80211_disconnect call to __cfg80211_disconnected
|
||||
*/
|
||||
hddLog(LOG1, FL("Send disconnected event to userspace"));
|
||||
cfg80211_disconnected(pAdapter->dev, WLAN_REASON_UNSPECIFIED,
|
||||
NULL, 0, GFP_KERNEL);
|
||||
cfg80211_disconnected(pAdapter->dev, WLAN_REASON_UNSPECIFIED, NULL, 0,
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)) || defined(WITH_BACKPORTS)
|
||||
false,
|
||||
#endif
|
||||
GFP_KERNEL);
|
||||
#endif
|
||||
|
||||
return result;
|
||||
|
|
|
|||
|
|
@ -3127,7 +3127,11 @@ QDF_STATUS hdd_start_all_adapters(hdd_context_t *hdd_ctx)
|
|||
/* indicate disconnected event to nl80211 */
|
||||
cfg80211_disconnected(adapter->dev,
|
||||
WLAN_REASON_UNSPECIFIED,
|
||||
NULL, 0, GFP_KERNEL);
|
||||
NULL, 0,
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)) || defined(WITH_BACKPORTS)
|
||||
true,
|
||||
#endif
|
||||
GFP_KERNEL);
|
||||
} else if (eConnectionState_Connecting == connState) {
|
||||
/*
|
||||
* Indicate connect failure to supplicant if we were in the
|
||||
|
|
|
|||
Loading…
Reference in a new issue