OSDN Git Service

mwifiex: do not support change AP interface to station mode
authorXinming Hu <huxm@marvell.com>
Wed, 22 Nov 2017 06:55:31 +0000 (14:55 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Dec 2017 13:26:27 +0000 (15:26 +0200)
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>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/cfg80211.c

index 6e0d9a9..4d45df8 100644 (file)
@@ -1180,7 +1180,6 @@ mwifiex_cfg80211_change_virtual_intf(struct wiphy *wiphy,
        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;