aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-11-08 10:21:21 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-11-11 12:32:49 -0500
commit07ef03ee8b280a536b38ccfe512b9556996f0492 (patch)
treec5f61667cb7bea4dbd9dee8175ac61aebb61c5de /net/mac80211/ieee80211_i.h
parent86a2ea4134b48f6371103cfceb521bf2d2bf76cd (diff)
mac80211: simplify scan state machine
Attempting to micro-optimise the scan by going fully live again when scanning the operating channel just made the code extremely complex and has little gain in most use cases. Remove all that code and simplify the state machine again. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 76e656bf78f9..873d681a8e52 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -728,17 +728,16 @@ enum {
728 * operating channel 728 * operating channel
729 * @SCAN_SET_CHANNEL: Set the next channel to be scanned 729 * @SCAN_SET_CHANNEL: Set the next channel to be scanned
730 * @SCAN_SEND_PROBE: Send probe requests and wait for probe responses 730 * @SCAN_SEND_PROBE: Send probe requests and wait for probe responses
731 * @SCAN_LEAVE_OPER_CHANNEL: Leave the operating channel, notify the AP 731 * @SCAN_SUSPEND: Suspend the scan and go back to operating channel to
732 * about us leaving the channel and stop all associated STA interfaces 732 * send out data
733 * @SCAN_ENTER_OPER_CHANNEL: Enter the operating channel again, notify the 733 * @SCAN_RESUME: Resume the scan and scan the next channel
734 * AP about us being back and restart all associated STA interfaces
735 */ 734 */
736enum mac80211_scan_state { 735enum mac80211_scan_state {
737 SCAN_DECISION, 736 SCAN_DECISION,
738 SCAN_SET_CHANNEL, 737 SCAN_SET_CHANNEL,
739 SCAN_SEND_PROBE, 738 SCAN_SEND_PROBE,
740 SCAN_LEAVE_OPER_CHANNEL, 739 SCAN_SUSPEND,
741 SCAN_ENTER_OPER_CHANNEL, 740 SCAN_RESUME,
742}; 741};
743 742
744struct ieee80211_local { 743struct ieee80211_local {