mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
qcacld-3.0: Update bss_type and privacy params for cfg80211_get_bss
Commmit: 6eb1813 ("cfg80211: add bss_type and privacy arguments in
cfg80211_get_bss()")
This commit update the new bss_type and privacy argument and is
merged in Kernel 4.1, so adding the Kernel version check accordingly.
Change-Id: I2bda71fc3cb2e126a1059a963f72f7a194bf9580
CRs-fixed: 963677
This commit is contained in:
parent
ceb390ceb4
commit
535d16a34f
2 changed files with 8 additions and 0 deletions
|
|
@ -1433,7 +1433,11 @@ static void hdd_send_re_assoc_event(struct net_device *dev,
|
|||
bss = cfg80211_get_bss(pAdapter->wdev.wiphy, chan,
|
||||
pCsrRoamInfo->bssid.bytes,
|
||||
&roam_profile.SSID.ssId[0], roam_profile.SSID.length,
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)) && !defined(WITH_BACKPORTS)
|
||||
WLAN_CAPABILITY_ESS, WLAN_CAPABILITY_ESS);
|
||||
#else
|
||||
IEEE80211_BSS_TYPE_ESS, IEEE80211_PRIVACY_ANY);
|
||||
#endif
|
||||
|
||||
if (bss == NULL)
|
||||
hddLog(LOGE, FL("Get BSS returned NULL"));
|
||||
|
|
|
|||
|
|
@ -7253,7 +7253,11 @@ struct cfg80211_bss *wlan_hdd_cfg80211_update_bss_list(hdd_adapter_t *pAdapter,
|
|||
&pRoamInfo->pProfile->SSIDs.SSIDList->SSID.
|
||||
ssId[0],
|
||||
pRoamInfo->pProfile->SSIDs.SSIDList->SSID.length,
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)) && !defined(WITH_BACKPORTS)
|
||||
WLAN_CAPABILITY_ESS, WLAN_CAPABILITY_ESS);
|
||||
#else
|
||||
IEEE80211_BSS_TYPE_ESS, IEEE80211_PRIVACY_ANY);
|
||||
#endif
|
||||
if (bss == NULL) {
|
||||
hddLog(LOGE, FL("BSS not present"));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue