aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorBing Zhao <bzhao@marvell.com>2013-04-19 20:44:41 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-04-22 15:20:27 -0400
commit66aa1ae2e73c4b0f70d425d38fee2f01161a7d64 (patch)
tree2ccf2d63ef2cabbb84099b4de3f889e41e03fb94 /drivers/net/wireless
parent5586d3e2f211a7c9c1d5fd639c88c8479b78a13d (diff)
mwifiex: configure p2p interface during initialization
Send P2P_MODE_CFG cmd to firmware when p2p interface is created. Without proper p2p configuration firmware may behave incorrectly while handling commands sent through this interface. Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: Stone Piao <piaoyun@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/mwifiex/cfg80211.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c
index 8c468c30b2d9..2a604eb0fd1d 100644
--- a/drivers/net/wireless/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/mwifiex/cfg80211.c
@@ -2152,6 +2152,9 @@ struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy,
2152 priv->bss_started = 0; 2152 priv->bss_started = 0;
2153 priv->bss_num = 0; 2153 priv->bss_num = 0;
2154 2154
2155 if (mwifiex_cfg80211_init_p2p_client(priv))
2156 return ERR_PTR(-EFAULT);
2157
2155 break; 2158 break;
2156 default: 2159 default:
2157 wiphy_err(wiphy, "type not supported\n"); 2160 wiphy_err(wiphy, "type not supported\n");