aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-03-31 16:39:04 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-31 16:39:04 -0400
commit7b6249bba940f57c20cdde793b306ca3831778c7 (patch)
tree24caf2ec9ea6fca08fe225228614807d0919b4b2 /drivers/net/wireless/mwifiex
parentfbcb21705930f2930f506149d0b8d36dfbe45107 (diff)
parent2c44be81f0fc147eed9dc63e2601318b2c007aeb (diff)
Merge tag 'mac80211-next-for-davem-2015-03-30' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
Johannes Berg says: ==================== Lots of updates for net-next; along with the usual flurry of small fixes, cleanups and internal features we have: * VHT support for TDLS and IBSS (conditional on drivers though) * first TX performance improvements (the biggest will come later) * many suspend/resume (race) fixes * name_assign_type support from Tom Gundersen ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/mwifiex')
-rw-r--r--drivers/net/wireless/mwifiex/cfg80211.c13
-rw-r--r--drivers/net/wireless/mwifiex/main.c6
-rw-r--r--drivers/net/wireless/mwifiex/main.h1
3 files changed, 11 insertions, 9 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");
diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c
index 74488aba92bd..d73a9217b9da 100644
--- a/drivers/net/wireless/mwifiex/main.c
+++ b/drivers/net/wireless/mwifiex/main.c
@@ -468,7 +468,7 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context)
468 468
469 rtnl_lock(); 469 rtnl_lock();
470 /* Create station interface by default */ 470 /* Create station interface by default */
471 wdev = mwifiex_add_virtual_intf(adapter->wiphy, "mlan%d", 471 wdev = mwifiex_add_virtual_intf(adapter->wiphy, "mlan%d", NET_NAME_ENUM,
472 NL80211_IFTYPE_STATION, NULL, NULL); 472 NL80211_IFTYPE_STATION, NULL, NULL);
473 if (IS_ERR(wdev)) { 473 if (IS_ERR(wdev)) {
474 dev_err(adapter->dev, "cannot create default STA interface\n"); 474 dev_err(adapter->dev, "cannot create default STA interface\n");
@@ -477,7 +477,7 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context)
477 } 477 }
478 478
479 if (driver_mode & MWIFIEX_DRIVER_MODE_UAP) { 479 if (driver_mode & MWIFIEX_DRIVER_MODE_UAP) {
480 wdev = mwifiex_add_virtual_intf(adapter->wiphy, "uap%d", 480 wdev = mwifiex_add_virtual_intf(adapter->wiphy, "uap%d", NET_NAME_ENUM,
481 NL80211_IFTYPE_AP, NULL, NULL); 481 NL80211_IFTYPE_AP, NULL, NULL);
482 if (IS_ERR(wdev)) { 482 if (IS_ERR(wdev)) {
483 dev_err(adapter->dev, "cannot create AP interface\n"); 483 dev_err(adapter->dev, "cannot create AP interface\n");
@@ -487,7 +487,7 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context)
487 } 487 }
488 488
489 if (driver_mode & MWIFIEX_DRIVER_MODE_P2P) { 489 if (driver_mode & MWIFIEX_DRIVER_MODE_P2P) {
490 wdev = mwifiex_add_virtual_intf(adapter->wiphy, "p2p%d", 490 wdev = mwifiex_add_virtual_intf(adapter->wiphy, "p2p%d", NET_NAME_ENUM,
491 NL80211_IFTYPE_P2P_CLIENT, NULL, 491 NL80211_IFTYPE_P2P_CLIENT, NULL,
492 NULL); 492 NULL);
493 if (IS_ERR(wdev)) { 493 if (IS_ERR(wdev)) {
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h
index 16be45e9a66a..ad8db61aeeef 100644
--- a/drivers/net/wireless/mwifiex/main.h
+++ b/drivers/net/wireless/mwifiex/main.h
@@ -1322,6 +1322,7 @@ u8 mwifiex_chan_type_to_sec_chan_offset(enum nl80211_channel_type chan_type);
1322 1322
1323struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy, 1323struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy,
1324 const char *name, 1324 const char *name,
1325 unsigned char name_assign_type,
1325 enum nl80211_iftype type, 1326 enum nl80211_iftype type,
1326 u32 *flags, 1327 u32 *flags,
1327 struct vif_params *params); 1328 struct vif_params *params);