]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: handle association failure case correctly
authorAmitkumar Karwar <akarwar@marvell.com>
Thu, 2 Feb 2012 04:41:43 +0000 (20:41 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 3 Feb 2012 19:17:12 +0000 (14:17 -0500)
commitd2c87f2277dd932ef3add7eecf02aabfb89e2831
tree81087145879edb7e798c4e61ca33d4f293e9f0bc
parentd9453269ca32c0ed9c7208c80f294c150d0281f7
mwifiex: handle association failure case correctly

Currently even if association is failed "iw link" shows some
information about connected BSS and "Tx timeout" error is seen in
dmesg log.

This patch fixes below issues in the code to handle assoc failure
case correctly.
1) "status" variable in mwifiex_wait_queue_complete() is not
correctly updated. Hence driver doesn't inform cfg80211 stack
about association failure.
2) During association network queues are stopped but carrier is
not cleared, which gives Tx timeout error in failure case

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sta_ioctl.c