提交 26177d7f 编写于 作者: G Ganapathi Bhat 提交者: Kalle Valo

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: 7311ea85 ("mwifiex: fix AP start problem for newly added interface")
Signed-off-by: NGanapathi Bhat <gbhat@marvell.com>
Reviewed-by: NBrian Norris <briannorris@chromium.org>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 31726ff2
...@@ -2959,18 +2959,21 @@ struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy, ...@@ -2959,18 +2959,21 @@ struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy,
} }
mwifiex_init_priv_params(priv, dev); mwifiex_init_priv_params(priv, dev);
mwifiex_set_mac_address(priv, dev);
priv->netdev = dev; priv->netdev = dev;
ret = mwifiex_send_cmd(priv, HostCmd_CMD_SET_BSS_MODE, if (!adapter->mfg_mode) {
HostCmd_ACT_GEN_SET, 0, NULL, true); mwifiex_set_mac_address(priv, dev);
if (ret)
goto err_set_bss_mode;
ret = mwifiex_sta_init_cmd(priv, false, false); ret = mwifiex_send_cmd(priv, HostCmd_CMD_SET_BSS_MODE,
if (ret) HostCmd_ACT_GEN_SET, 0, NULL, true);
goto err_sta_init; if (ret)
goto err_set_bss_mode;
ret = mwifiex_sta_init_cmd(priv, false, false);
if (ret)
goto err_sta_init;
}
mwifiex_setup_ht_caps(&wiphy->bands[NL80211_BAND_2GHZ]->ht_cap, priv); mwifiex_setup_ht_caps(&wiphy->bands[NL80211_BAND_2GHZ]->ht_cap, priv);
if (adapter->is_hw_11ac_capable) if (adapter->is_hw_11ac_capable)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册