]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/net/wireless/mwifiex/cfg80211.c
cfg80211: add bss_type and privacy arguments in cfg80211_get_bss()
[mirror_ubuntu-bionic-kernel.git] / drivers / net / wireless / mwifiex / cfg80211.c
index 41c8e25df9544021278a0998c6b89fa3469d4c98..a47eb55bb6da3935fbb954e9931a5eac0f177486 100644 (file)
@@ -1954,13 +1954,13 @@ done:
                if (mode == NL80211_IFTYPE_ADHOC)
                        bss = cfg80211_get_bss(priv->wdev.wiphy, channel,
                                               bssid, ssid, ssid_len,
-                                              WLAN_CAPABILITY_IBSS,
-                                              WLAN_CAPABILITY_IBSS);
+                                              IEEE80211_BSS_TYPE_IBSS,
+                                              IEEE80211_PRIVACY_ANY);
                else
                        bss = cfg80211_get_bss(priv->wdev.wiphy, channel,
                                               bssid, ssid, ssid_len,
-                                              WLAN_CAPABILITY_ESS,
-                                              WLAN_CAPABILITY_ESS);
+                                              IEEE80211_BSS_TYPE_ESS,
+                                              IEEE80211_PRIVACY_ANY);
 
                if (!bss) {
                        if (is_scanning_required) {