Skip to content

Commit

Permalink
mwifiex: fix command 0x2c timeout during p2p_find or p2p_connect
Browse files Browse the repository at this point in the history
We missed bss_mode check for P2P client.

Signed-off-by: Stone Piao <[email protected]>
Signed-off-by: Avinash Patil <[email protected]>
Signed-off-by: Bing Zhao <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
Stone Piao authored and linvjw committed Jul 31, 2013
1 parent 237b2ac commit 6621fe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/mwifiex/sta_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@ int mwifiex_bss_start(struct mwifiex_private *priv, struct cfg80211_bss *bss,
goto done;
}

if (priv->bss_mode == NL80211_IFTYPE_STATION) {
if (priv->bss_mode == NL80211_IFTYPE_STATION ||
priv->bss_mode == NL80211_IFTYPE_P2P_CLIENT) {
u8 config_bands;

/* Infra mode */
ret = mwifiex_deauthenticate(priv, NULL);
if (ret)
goto done;
Expand Down

0 comments on commit 6621fe1

Please sign in to comment.