]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: process event before command response
authorAmitkumar Karwar <akarwar@marvell.com>
Mon, 14 Apr 2014 22:31:05 +0000 (15:31 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 15 Apr 2014 17:27:05 +0000 (13:27 -0400)
commit85de8e07bf767541e786b73623ff7ef9325d99d8
tree7a90e4c3e633b0ca1cc7cb51b2b3ca00a80454ba
parent49629696a184d41e984116c449f8091136886aa4
mwifiex: process event before command response

During extended scan, SCAN report event is always followed by
command response. Sometimes It is observed that command response
is processed before SCAN report which leads to a crash, because
current command node is cleared while handling the response.
This patch makes sure that driver's main thread gives priority
to events over command responses.

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