Lines Matching refs:scanning
284 if (test_and_clear_bit(SCAN_BEACON_WAIT, &local->scanning)) { in ieee80211_scan_rx()
290 set_bit(SCAN_BEACON_DONE, &local->scanning); in ieee80211_scan_rx()
362 if (test_bit(SCAN_HW_CANCELLED, &local->scanning)) in ieee80211_prep_hw_scan()
419 bool hw_scan = test_bit(SCAN_HW_SCANNING, &local->scanning); in __ieee80211_scan_completed()
420 bool was_scanning = local->scanning; in __ieee80211_scan_completed()
433 if (WARN_ON(!local->scanning && !aborted)) in __ieee80211_scan_completed()
471 local->scanning = 0; in __ieee80211_scan_completed()
515 set_bit(SCAN_COMPLETED, &local->scanning); in ieee80211_scan_completed()
517 set_bit(SCAN_ABORTED, &local->scanning); in ieee80211_scan_completed()
610 if (!local->scan_req || local->scanning) in ieee80211_run_deferred_scan()
777 __set_bit(SCAN_HW_SCANNING, &local->scanning); in __ieee80211_start_scan()
786 __set_bit(SCAN_ONCHANNEL_SCANNING, &local->scanning); in __ieee80211_start_scan()
804 set_bit(SCAN_BEACON_WAIT, &local->scanning); in __ieee80211_start_scan()
816 __set_bit(SCAN_SW_SCANNING, &local->scanning); in __ieee80211_start_scan()
831 local->scanning = 0; in __ieee80211_start_scan()
1017 set_bit(SCAN_BEACON_WAIT, &local->scanning); in ieee80211_scan_state_set_channel()
1081 if (test_bit(SCAN_ONCHANNEL_SCANNING, &local->scanning)) { in ieee80211_scan_work()
1082 aborted = test_and_clear_bit(SCAN_ABORTED, &local->scanning); in ieee80211_scan_work()
1086 if (test_and_clear_bit(SCAN_COMPLETED, &local->scanning)) { in ieee80211_scan_work()
1087 aborted = test_and_clear_bit(SCAN_ABORTED, &local->scanning); in ieee80211_scan_work()
1094 if (!local->scanning) { in ieee80211_scan_work()
1110 clear_bit(SCAN_BEACON_WAIT, &local->scanning); in ieee80211_scan_work()
1122 if (test_and_clear_bit(SCAN_BEACON_DONE, &local->scanning) && in ieee80211_scan_work()
1277 if (test_bit(SCAN_HW_SCANNING, &local->scanning) && in ieee80211_scan_cancel()
1278 test_bit(SCAN_COMPLETED, &local->scanning)) { in ieee80211_scan_cancel()
1279 set_bit(SCAN_HW_CANCELLED, &local->scanning); in ieee80211_scan_cancel()
1283 if (test_bit(SCAN_HW_SCANNING, &local->scanning)) { in ieee80211_scan_cancel()
1288 set_bit(SCAN_HW_CANCELLED, &local->scanning); in ieee80211_scan_cancel()