aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/cfg80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/mwifiex/cfg80211.c')
-rw-r--r--drivers/net/wireless/mwifiex/cfg80211.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c
index 8e1f681f960b..6f8993c12373 100644
--- a/drivers/net/wireless/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/mwifiex/cfg80211.c
@@ -1954,13 +1954,13 @@ done:
1954 if (mode == NL80211_IFTYPE_ADHOC) 1954 if (mode == NL80211_IFTYPE_ADHOC)
1955 bss = cfg80211_get_bss(priv->wdev.wiphy, channel, 1955 bss = cfg80211_get_bss(priv->wdev.wiphy, channel,
1956 bssid, ssid, ssid_len, 1956 bssid, ssid, ssid_len,
1957 WLAN_CAPABILITY_IBSS, 1957 IEEE80211_BSS_TYPE_IBSS,
1958 WLAN_CAPABILITY_IBSS); 1958 IEEE80211_PRIVACY_ANY);
1959 else 1959 else
1960 bss = cfg80211_get_bss(priv->wdev.wiphy, channel, 1960 bss = cfg80211_get_bss(priv->wdev.wiphy, channel,
1961 bssid, ssid, ssid_len, 1961 bssid, ssid, ssid_len,
1962 WLAN_CAPABILITY_ESS, 1962 IEEE80211_BSS_TYPE_ESS,
1963 WLAN_CAPABILITY_ESS); 1963 IEEE80211_PRIVACY_ANY);
1964 1964
1965 if (!bss) { 1965 if (!bss) {
1966 if (is_scanning_required) { 1966 if (is_scanning_required) {
@@ -2398,10 +2398,11 @@ mwifiex_setup_ht_caps(struct ieee80211_sta_ht_cap *ht_info,
2398} 2398}
2399 2399
2400/* 2400/*
2401 * create a new virtual interface with the given name 2401 * create a new virtual interface with the given name and name assign type
2402 */ 2402 */
2403struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy, 2403struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy,
2404 const char *name, 2404 const char *name,
2405 unsigned char name_assign_type,
2405 enum nl80211_iftype type, 2406 enum nl80211_iftype type,
2406 u32 *flags, 2407 u32 *flags,
2407 struct vif_params *params) 2408 struct vif_params *params)
@@ -2521,7 +2522,7 @@ struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy,
2521 } 2522 }
2522 2523
2523 dev = alloc_netdev_mqs(sizeof(struct mwifiex_private *), name, 2524 dev = alloc_netdev_mqs(sizeof(struct mwifiex_private *), name,
2524 NET_NAME_UNKNOWN, ether_setup, 2525 name_assign_type, ether_setup,
2525 IEEE80211_NUM_ACS, 1); 2526 IEEE80211_NUM_ACS, 1);
2526 if (!dev) { 2527 if (!dev) {
2527 wiphy_err(wiphy, "no memory available for netdevice\n"); 2528 wiphy_err(wiphy, "no memory available for netdevice\n");