mwifiex: fix corner case association failure
commit a6139b6271f9f95377fe3486aed6120c9142779b upstream.
This patch corrects the error case in association path by returning
-1. Earlier "media_connected" used to remain on in this error case
causing failure for further association attempts.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Fixes: b887664d88
('mwifiex: channel switch handling for station')
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5dd660ee0e
commit
c94897e820
1 changed files with 1 additions and 0 deletions
|
@ -313,6 +313,7 @@ int mwifiex_bss_start(struct mwifiex_private *priv, struct cfg80211_bss *bss,
|
|||
mwifiex_dbg(adapter, ERROR,
|
||||
"Attempt to reconnect on csa closed chan(%d)\n",
|
||||
bss_desc->channel);
|
||||
ret = -1;
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue