diff mbox

[v3] mwifiex: do not support change AP interface to station mode

Message ID 1511333731-23474-1-git-send-email-huxm@marvell.com (mailing list archive)
State Accepted
Commit 71121e420d75a43c6faf45728fbaf0671423f199
Delegated to: Kalle Valo
Headers show

Commit Message

Xinming Hu Nov. 22, 2017, 6:55 a.m. UTC
Firmware do not support change interface from micro-ap mode
to station mode, forbid this operation

Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Xinming Hu <huxm@marvell.com>
---
v2: remove unnecessary sta/uap combo check(James Cameron)
v3: correct description(James Cameron)

 drivers/net/wireless/marvell/mwifiex/cfg80211.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Kalle Valo Dec. 7, 2017, 1:30 p.m. UTC | #1
Xinming Hu <huxm@marvell.com> wrote:

> Firmware do not support change interface from micro-ap mode
> to station mode, forbid this operation
> 
> Signed-off-by: Cathy Luo <cluo@marvell.com>
> Signed-off-by: Xinming Hu <huxm@marvell.com>

Patch applied to wireless-drivers-next.git, thanks.

71121e420d75 mwifiex: do not support change AP interface to station mode
diff mbox

Patch

diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
index 6e0d9a9..4d45df8 100644
--- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
@@ -1180,7 +1180,6 @@  static int mwifiex_deinit_priv_params(struct mwifiex_private *priv)
 	case NL80211_IFTYPE_AP:
 		switch (type) {
 		case NL80211_IFTYPE_ADHOC:
-		case NL80211_IFTYPE_STATION:
 			return mwifiex_change_vif_to_sta_adhoc(dev, curr_iftype,
 							       type, params);
 			break;