aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorBing Zhao <bzhao@marvell.com>2013-08-19 19:10:21 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-14 09:54:57 -0400
commit7bf0f5bd9213cd0d75383ec36d3aae5f08e185c4 (patch)
tree4dfb81093c40a40dc5cdb23052bd4e4abcf5828d /drivers/net
parent70aa7b8f105b0b5bb82d2082a230efb7f34645a0 (diff)
mwifiex: do not create AP and P2P interfaces upon driver loading
commit 1211c961170cedb21c30d5bb7e2033c8720b38db upstream. Bug 60747 - 1286:2044 [Microsoft Surface Pro] Marvell 88W8797 wifi show 3 interface under network https://bugzilla.kernel.org/show_bug.cgi?id=60747 This issue was also reported previously by OLPC and some folks from the community. There are 3 network interfaces with different types being created when mwifiex driver is loaded: 1. mlan0 (infra. STA) 2. uap0 (AP) 3. p2p0 (P2P_CLIENT) The Network Manager attempts to use all 3 interfaces above without filtering the managed interface type. As the result, 3 identical interfaces are displayed under network manager. If user happens to click on an entry under which its interface is uap0 or p2p0, the association will fail. Work around it by removing the creation of AP and P2P interfaces at driver loading time. These interfaces can be added with 'iw' or other applications manually when they are needed. Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/mwifiex/main.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c
index 2eb88ea9acf7..c4a2e775fe1a 100644
--- a/drivers/net/wireless/mwifiex/main.c
+++ b/drivers/net/wireless/mwifiex/main.c
@@ -363,20 +363,6 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context)
363 dev_err(adapter->dev, "cannot create default STA interface\n"); 363 dev_err(adapter->dev, "cannot create default STA interface\n");
364 goto err_add_intf; 364 goto err_add_intf;
365 } 365 }
366
367 /* Create AP interface by default */
368 if (!mwifiex_add_virtual_intf(adapter->wiphy, "uap%d",
369 NL80211_IFTYPE_AP, NULL, NULL)) {
370 dev_err(adapter->dev, "cannot create default AP interface\n");
371 goto err_add_intf;
372 }
373
374 /* Create P2P interface by default */
375 if (!mwifiex_add_virtual_intf(adapter->wiphy, "p2p%d",
376 NL80211_IFTYPE_P2P_CLIENT, NULL, NULL)) {
377 dev_err(adapter->dev, "cannot create default P2P interface\n");
378 goto err_add_intf;
379 }
380 rtnl_unlock(); 366 rtnl_unlock();
381 367
382 mwifiex_drv_get_driver_version(adapter, fmt, sizeof(fmt) - 1); 368 mwifiex_drv_get_driver_version(adapter, fmt, sizeof(fmt) - 1);