PKGBUILDs/core/linux-veyron/0002-mwifiex-do-not-create-AP-and-P2P-interfaces-upon-dri.patch

67 lines
2.2 KiB
Diff
Raw Normal View History

2017-01-21 01:51:21 +00:00
From 4cc0eec56f57f137ac6ae3b91dbafa5541811644 Mon Sep 17 00:00:00 2001
2015-07-01 05:14:42 +00:00
From: Bing Zhao <bzhao@marvell.com>
Date: Mon, 19 Aug 2013 16:10:21 -0700
2017-01-21 01:51:21 +00:00
Subject: [PATCH 2/4] mwifiex: do not create AP and P2P interfaces upon driver
2015-07-01 05:14:42 +00:00
loading
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>
---
2015-11-05 04:27:36 +00:00
drivers/net/wireless-3.8/mwifiex/main.c | 16 ----------------
1 file changed, 16 deletions(-)
2015-07-01 05:14:42 +00:00
diff --git a/drivers/net/wireless-3.8/mwifiex/main.c b/drivers/net/wireless-3.8/mwifiex/main.c
2017-01-21 01:51:21 +00:00
index e43afc127119..587f4ae4818d 100644
2015-07-01 05:14:42 +00:00
--- a/drivers/net/wireless-3.8/mwifiex/main.c
+++ b/drivers/net/wireless-3.8/mwifiex/main.c
2015-11-05 04:27:36 +00:00
@@ -523,22 +523,6 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context)
"cannot create default STA interface\n");
2015-07-01 05:14:42 +00:00
goto err_add_intf;
}
2015-11-05 04:27:36 +00:00
-
2015-07-01 05:14:42 +00:00
- /* Create AP interface by default */
- if (!mwifiex_add_virtual_intf(adapter->wiphy, "uap%d",
- NL80211_IFTYPE_AP, NULL, NULL)) {
2015-11-05 04:27:36 +00:00
- mwifiex_dbg(adapter, ERROR,
- "cannot create default AP interface\n");
2015-07-01 05:14:42 +00:00
- goto err_add_intf;
- }
-
- /* Create P2P interface by default */
- if (!mwifiex_add_virtual_intf(adapter->wiphy, "p2p%d",
- NL80211_IFTYPE_P2P_CLIENT, NULL, NULL)) {
2015-11-05 04:27:36 +00:00
- mwifiex_dbg(adapter, ERROR,
- "cannot create default P2P interface\n");
2015-07-01 05:14:42 +00:00
- goto err_add_intf;
- }
rtnl_unlock();
mwifiex_drv_get_driver_version(adapter, fmt, sizeof(fmt) - 1);
--
2017-01-21 01:51:21 +00:00
2.11.0
2015-07-01 05:14:42 +00:00