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>
This commit is contained in:
committed by
John W. Linville
parent
86a2ea4134
commit
07ef03ee8b
@ -728,17 +728,16 @@ enum {
|
||||
* operating channel
|
||||
* @SCAN_SET_CHANNEL: Set the next channel to be scanned
|
||||
* @SCAN_SEND_PROBE: Send probe requests and wait for probe responses
|
||||
* @SCAN_LEAVE_OPER_CHANNEL: Leave the operating channel, notify the AP
|
||||
* about us leaving the channel and stop all associated STA interfaces
|
||||
* @SCAN_ENTER_OPER_CHANNEL: Enter the operating channel again, notify the
|
||||
* AP about us being back and restart all associated STA interfaces
|
||||
* @SCAN_SUSPEND: Suspend the scan and go back to operating channel to
|
||||
* send out data
|
||||
* @SCAN_RESUME: Resume the scan and scan the next channel
|
||||
*/
|
||||
enum mac80211_scan_state {
|
||||
SCAN_DECISION,
|
||||
SCAN_SET_CHANNEL,
|
||||
SCAN_SEND_PROBE,
|
||||
SCAN_LEAVE_OPER_CHANNEL,
|
||||
SCAN_ENTER_OPER_CHANNEL,
|
||||
SCAN_SUSPEND,
|
||||
SCAN_RESUME,
|
||||
};
|
||||
|
||||
struct ieee80211_local {
|
||||
|
Reference in New Issue
Block a user