]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: scan less channels per scan command to improve Tx traffic
authorAmitkumar Karwar <akarwar@marvell.com>
Thu, 7 Jun 2012 04:12:42 +0000 (21:12 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Jun 2012 18:59:44 +0000 (14:59 -0400)
commit2f2868d18af19975a3460b316597a836cdf32e9e
treefe00c1c14e60c8f7dbfffe7c4c702e932d865dec
parent9799ae24982d39636ba7409dd0881afc1f476788
mwifiex: scan less channels per scan command to improve Tx traffic

Currently 4 channels are scanned per scan command. if scan request
is issued by user during Tx traffic, radio will be out of channel
for "4 * per_chan_scan_time" for each scan command and will not be
able to receive Rx packets. This adds delay in data traffic. We can
minimize it by reducing number of channels scanned per scan command
in this scenario.

We can not always scan 1 channel per scan command due to limitation
of number of command buffers. So we add code to decide number of
channels scanned per scan command in associated state.

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/scan.c