]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Improve software scan timing
authorHelmut Schaa <Helmut.Schaa@gmx.de>
Wed, 24 Feb 2010 13:19:21 +0000 (14:19 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 9 Mar 2010 20:03:07 +0000 (15:03 -0500)
commitc281109d6234785b5e2b6583722335624f82ce89
tree5c7be2b33088f457b0510e7de660a88b8dc9c397
parentd6b9df1b439b73ade775390a339dcd18b6a791da
mac80211: Improve software scan timing

The current software scan implemenation in mac80211 returns to the operating
channel after each scanned channel. However, in some situations (e.g. no
traffic) it would be nicer to scan a few channels in a row to speed up
the scan itself.

Hence, after scanning a channel, check if we have queued up any tx frames and
return to the operating channel in that case.

Unfortunately we don't know if the AP has buffered any frames for us. Hence,
scan only as many channels in a row as the pm_qos latency and the negotiated
listen interval allows us to.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_i.h
net/mac80211/scan.c