Skip to content

implement background scan

Helmut Schaa linux-wireless 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7mac80211: refactor the scan codenet/mac80211/scan.c+78 -581 reply
2/7mac80211: advance the state machine immediately if no delay is needednet/mac80211/scan.c+15 -91 reply
3/7mac80211: introduce a new scan state "decision"net/mac80211/ieee80211_i.h net/mac80211/scan.c+27 -151 reply
4/7mac80211: Replace {sw, hw}_scanning variables with a bitfieldnet/mac80211/ibss.c net/mac80211/ieee80211_i.h net/mac80211/iface.c +6 more+31 -293 replies
5/7mac80211: implement basic background scanningnet/mac80211/ieee80211_i.h net/mac80211/rx.c net/mac80211/scan.c +1 more+148 -134 replies
6/7mac80211: rename scan_state to next_scan_statenet/mac80211/ieee80211_i.h net/mac80211/scan.c+11 -111 reply
7/7cfg80211: increase scan result expire timenet/wireless/scan.c+1 -13 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchJohannes Berg
1/7A-b
2/7A-b
3/7A-b
4/7
5/7
6/7A-b
7/7A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] implement background scan

This patch series implements basic background scanning in mac80211 by interrupting the scan after each scanned channel to allow RX/TX.

I only tested the patches on current wireless-testing with iwlagn in sw-scan mode and it works fine already. Nevertheless, it would be great if somebody could test the patches on other hardware as well.

A scan now takes ~13s on my iwl4965 with a total of 31 channels (17 passive channels) while associated. Two possibilities for the future to reduce the time a scan takes:
- leave the operating channel as soon as RX and TX were idle for a small period of time (currently we just stay 250ms on the operating channel after each scanned channel).
- Scan multiple channels in a row if the qos latency allows us to do so.

Helmut
---

Helmut Schaa (7):
cfg80211: increase scan result expire time
mac80211: rename scan_state to next_scan_state
mac80211: implement basic background scanning
mac80211: Replace {sw,hw}_scanning variables with a bitfield
mac80211: introduce a new scan state "decision"
mac80211: advance the state machine immediately if no delay is needed
mac80211: refactor the scan code

 net/mac80211/ibss.c        |    2 
 net/mac80211/ieee80211_i.h |   41 ++++++
 net/mac80211/iface.c       |    4 -
 net/mac80211/main.c        |    2 
 net/mac80211/mesh.c        |    2 
 net/mac80211/mlme.c        |    8 +
 net/mac80211/rx.c          |    8 +
 net/mac80211/scan.c        |  300 ++++++++++++++++++++++++++++++++------------
 net/mac80211/tx.c          |    6 -
 net/wireless/scan.c        |    2 
 10 files changed, 275 insertions(+), 100 deletions(-)
Signature · 1 line
Signature