Skip to content

Commit

Permalink
mwifiex: configure p2p interface during initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bing Zhao authored and John W. Linville committed Apr 22, 2013
1 parent 5586d3e commit 66aa1ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/mwifiex/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -2152,6 +2152,9 @@ struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy,
priv->bss_started = 0;
priv->bss_num = 0;

if (mwifiex_cfg80211_init_p2p_client(priv))
return ERR_PTR(-EFAULT);

break;
default:
wiphy_err(wiphy, "type not supported\n");
Expand Down

0 comments on commit 66aa1ae

Please sign in to comment.