]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix corner case association failure
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 23 Feb 2016 13:16:17 +0000 (05:16 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 7 Mar 2016 12:26:32 +0000 (14:26 +0200)
commit730ff878ca2708a7cb47fddf08dfe26afa0eebb4
tree1b64bee7fa735dd3d89e03a0a8e7859190376f72
parent110baf546bd066094382791b17d379954e2b3d0f
mwifiex: fix corner case association failure

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: 5989a1d929cc85 ('mwifiex: channel switch handling for station')
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/sta_ioctl.c