Lines Matching full:scanning

3  * Scanning implementation
283 if (test_and_clear_bit(SCAN_BEACON_WAIT, &local->scanning)) { in ieee80211_scan_rx()
285 * we were passive scanning because of radar/no-IR, but in ieee80211_scan_rx()
289 set_bit(SCAN_BEACON_DONE, &local->scanning); in ieee80211_scan_rx()
321 * unless scanning with randomised address in ieee80211_scan_rx()
368 if (test_bit(SCAN_HW_CANCELLED, &local->scanning)) in ieee80211_prep_hw_scan()
427 bool hw_scan = test_bit(SCAN_HW_SCANNING, &local->scanning); in __ieee80211_scan_completed()
428 bool was_scanning = local->scanning; in __ieee80211_scan_completed()
441 if (WARN_ON(!local->scanning && !aborted)) in __ieee80211_scan_completed()
479 local->scanning = 0; in __ieee80211_scan_completed()
523 set_bit(SCAN_COMPLETED, &local->scanning); in ieee80211_scan_completed()
525 set_bit(SCAN_ABORTED, &local->scanning); in ieee80211_scan_completed()
542 * scanning instead. First send a nullfunc frame with power save in ieee80211_start_sw_scan()
566 /* We need to set power level at maximum rate for scanning. */ in ieee80211_start_sw_scan()
617 if (!local->scan_req || local->scanning) in ieee80211_run_deferred_scan()
803 __set_bit(SCAN_HW_SCANNING, &local->scanning); in __ieee80211_start_scan()
807 * If we are scanning only on the operating channel in __ieee80211_start_scan()
812 __set_bit(SCAN_ONCHANNEL_SCANNING, &local->scanning); in __ieee80211_start_scan()
822 /* We need to ensure power level is at max for scanning. */ in __ieee80211_start_scan()
830 set_bit(SCAN_BEACON_WAIT, &local->scanning); in __ieee80211_start_scan()
842 __set_bit(SCAN_SW_SCANNING, &local->scanning); in __ieee80211_start_scan()
857 local->scanning = 0; in __ieee80211_start_scan()
932 * we're currently scanning a different channel, let's in ieee80211_scan_state_decision()
977 /* For scanning on the S1G band, detect the channel width according to in ieee80211_scan_state_set_channel()
985 /* If scanning on oper channel, use whatever channel-type in ieee80211_scan_state_set_channel()
1022 set_bit(SCAN_BEACON_WAIT, &local->scanning); in ieee80211_scan_state_set_channel()
1085 /* When scanning on-channel, the first-callback means completed. */ in ieee80211_scan_work()
1086 if (test_bit(SCAN_ONCHANNEL_SCANNING, &local->scanning)) { in ieee80211_scan_work()
1087 aborted = test_and_clear_bit(SCAN_ABORTED, &local->scanning); in ieee80211_scan_work()
1091 if (test_and_clear_bit(SCAN_COMPLETED, &local->scanning)) { in ieee80211_scan_work()
1092 aborted = test_and_clear_bit(SCAN_ABORTED, &local->scanning); in ieee80211_scan_work()
1099 if (!local->scanning) { in ieee80211_scan_work()
1114 clear_bit(SCAN_BEACON_WAIT, &local->scanning); in ieee80211_scan_work()
1126 if (test_and_clear_bit(SCAN_BEACON_DONE, &local->scanning) && in ieee80211_scan_work()
1184 /* busy scanning */ in ieee80211_request_ibss_scan()
1272 if (test_bit(SCAN_HW_SCANNING, &local->scanning) && in ieee80211_scan_cancel()
1273 test_bit(SCAN_COMPLETED, &local->scanning)) { in ieee80211_scan_cancel()
1274 set_bit(SCAN_HW_CANCELLED, &local->scanning); in ieee80211_scan_cancel()
1278 if (test_bit(SCAN_HW_SCANNING, &local->scanning)) { in ieee80211_scan_cancel()
1283 set_bit(SCAN_HW_CANCELLED, &local->scanning); in ieee80211_scan_cancel()