summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/marvell/mwifiex/usb.c
diff options
context:
space:
mode:
authorXinming Hu <huxm@marvell.com>2016-09-02 13:05:06 +0530
committerKalle Valo <kvalo@codeaurora.org>2016-09-09 12:05:03 +0300
commitcf5383b088d07f304d189986fdbd4efbd7d41538 (patch)
treeed01d8a8bdc09c294a55a875e99204bff30997a5 /drivers/net/wireless/marvell/mwifiex/usb.c
parentdefb893fffef89ac6db4e68fccae1783d7c93977 (diff)
downloadblackbird-op-linux-cf5383b088d07f304d189986fdbd4efbd7d41538.tar.gz
blackbird-op-linux-cf5383b088d07f304d189986fdbd4efbd7d41538.zip
mwifiex: add manufacturing mode support
By default normal mode is chosen when driver is loaded. This patch adds a provision to choose manufacturing mode via module parameters. Below command loads driver in manufacturing mode insmod mwifiex.ko mfg_mode=1. Tested-by: chunfan chen <jeffc@marvell.com> Signed-off-by: Xinming Hu <huxm@marvell.com> Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/usb.c')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/usb.c b/drivers/net/wireless/marvell/mwifiex/usb.c
index 3bd04f52f369..92135167a822 100644
--- a/drivers/net/wireless/marvell/mwifiex/usb.c
+++ b/drivers/net/wireless/marvell/mwifiex/usb.c
@@ -611,7 +611,7 @@ static void mwifiex_usb_disconnect(struct usb_interface *intf)
if (!adapter->priv_num)
return;
- if (user_rmmod) {
+ if (user_rmmod && !adapter->mfg_mode) {
#ifdef CONFIG_PM
if (adapter->is_suspended)
mwifiex_usb_resume(intf);
OpenPOWER on IntegriCloud