Lines Matching full:scanning
3 * Scanning implementation
288 if (test_and_clear_bit(SCAN_BEACON_WAIT, &local->scanning)) { in ieee80211_scan_rx()
290 * we were passive scanning because of radar/no-IR, but in ieee80211_scan_rx()
294 set_bit(SCAN_BEACON_DONE, &local->scanning); in ieee80211_scan_rx()
313 * unless scanning with randomised address in ieee80211_scan_rx()
366 if (test_bit(SCAN_HW_CANCELLED, &local->scanning)) in ieee80211_prep_hw_scan()
423 bool hw_scan = test_bit(SCAN_HW_SCANNING, &local->scanning); in __ieee80211_scan_completed()
424 bool was_scanning = local->scanning; in __ieee80211_scan_completed()
437 if (WARN_ON(!local->scanning && !aborted)) in __ieee80211_scan_completed()
475 local->scanning = 0; in __ieee80211_scan_completed()
519 set_bit(SCAN_COMPLETED, &local->scanning); in ieee80211_scan_completed()
521 set_bit(SCAN_ABORTED, &local->scanning); in ieee80211_scan_completed()
538 * scanning instead. First send a nullfunc frame with power save in ieee80211_start_sw_scan()
562 /* We need to set power level at maximum rate for scanning. */ in ieee80211_start_sw_scan()
614 if (!local->scan_req || local->scanning) in ieee80211_run_deferred_scan()
781 __set_bit(SCAN_HW_SCANNING, &local->scanning); in __ieee80211_start_scan()
785 * If we are scanning only on the operating channel in __ieee80211_start_scan()
790 __set_bit(SCAN_ONCHANNEL_SCANNING, &local->scanning); in __ieee80211_start_scan()
800 /* We need to ensure power level is at max for scanning. */ in __ieee80211_start_scan()
808 set_bit(SCAN_BEACON_WAIT, &local->scanning); in __ieee80211_start_scan()
820 __set_bit(SCAN_SW_SCANNING, &local->scanning); in __ieee80211_start_scan()
835 local->scanning = 0; in __ieee80211_start_scan()
910 * we're currently scanning a different channel, let's in ieee80211_scan_state_decision()
956 /* For scanning on the S1G band, ignore scan_width (which is constant in ieee80211_scan_state_set_channel()
975 /* If scanning on oper channel, use whatever channel-type in ieee80211_scan_state_set_channel()
1021 set_bit(SCAN_BEACON_WAIT, &local->scanning); in ieee80211_scan_state_set_channel()
1084 /* When scanning on-channel, the first-callback means completed. */ in ieee80211_scan_work()
1085 if (test_bit(SCAN_ONCHANNEL_SCANNING, &local->scanning)) { in ieee80211_scan_work()
1086 aborted = test_and_clear_bit(SCAN_ABORTED, &local->scanning); in ieee80211_scan_work()
1090 if (test_and_clear_bit(SCAN_COMPLETED, &local->scanning)) { in ieee80211_scan_work()
1091 aborted = test_and_clear_bit(SCAN_ABORTED, &local->scanning); in ieee80211_scan_work()
1098 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()
1190 /* busy scanning */ in ieee80211_request_ibss_scan()
1281 if (test_bit(SCAN_HW_SCANNING, &local->scanning) && in ieee80211_scan_cancel()
1282 test_bit(SCAN_COMPLETED, &local->scanning)) { in ieee80211_scan_cancel()
1283 set_bit(SCAN_HW_CANCELLED, &local->scanning); in ieee80211_scan_cancel()
1287 if (test_bit(SCAN_HW_SCANNING, &local->scanning)) { in ieee80211_scan_cancel()
1292 set_bit(SCAN_HW_CANCELLED, &local->scanning); in ieee80211_scan_cancel()