mac80211: improve IBSS scanning
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 3 May 2010 06:49:48 +0000 (08:49 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 3 May 2010 18:53:10 +0000 (14:53 -0400)
commitbe4a4b6a5d2f76393f545a2545fbaa1b65577e13
tree5456729061f295a1e7782766eb195707228475f8
parenta75b4363eaafa99d909da4f1192322a78b074c73
mac80211: improve IBSS scanning

When IBSS is fixed to a frequency, it can still
scan to try to find the right BSSID. This makes
sense if the BSSID isn't also fixed, but it need
not scan all channels -- just one is sufficient.
Make it do that by moving the scan setup code to
ieee80211_request_internal_scan() and include
a channel variable setting.

Note that this can be further improved to start
the IBSS right away if both frequency and BSSID
are fixed.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ibss.c
net/mac80211/ieee80211_i.h
net/mac80211/main.c
net/mac80211/scan.c