mwifiex: block scan request during heavy Tx traffic
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 21 Sep 2012 03:23:18 +0000 (20:23 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 Sep 2012 19:02:07 +0000 (15:02 -0400)
commitde09364eca2fc79f8585d4d476a60c6730664098
tree53e96fe26ffb80ee36c3af42ff2f5fe93134b7c3
parent22c22d2710ab828ea36487abd1d7f94f79a86a68
mwifiex: block scan request during heavy Tx traffic

Currently scan operation is delayed/aborted based on Tx traffic
consistency. This decision is taken after receiving scan
response of first scan command from FW. But when heavy traffic
is running, we can not even afford to send first scan command
and go off channel for 30msec. We will block scan request in
this 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/cfg80211.c
drivers/net/wireless/mwifiex/main.h