mwifiex: check for mfg_mode in add_virtual_intf
authorGanapathi Bhat <gbhat@marvell.com>
Thu, 7 Sep 2017 20:32:43 +0000 (02:02 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 20 Sep 2017 12:46:32 +0000 (15:46 +0300)
commit26177d7f3969da1827bc2b5923edcfc2ff4c3a61
tree2d39771b3b887b7f7086be71d551ad4b98768d91
parent31726ff20190bafcf41d5eb5a7615f052f15bdd3
mwifiex: check for mfg_mode in add_virtual_intf

If driver is loaded with 'mfg_mode' enabled, then the sending
commands are not allowed. So, skip sending commands, to firmware
in mwifiex_add_virtual_intf if 'mfg_mode' is enabled.

Fixes: 7311ea850079 ("mwifiex: fix AP start problem for newly added interface")
Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/cfg80211.c