]> 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)
commit4f536c8df1eedc5517003dcd4fffe6040a02b417
treefe00c1c14e60c8f7dbfffe7c4c702e932d865dec
parent94d4b81f78d68b73348dc44a08f2cce7e8fc98b1
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