When doing a scan while being associated it is possible that the scan
is deferred for the time it takes to flush the TX queue. This work being done the scan then is continued, but only if it is marked to do so. As the 'ifconfig scan' request is meant to be used after the interface is brought up, request a background scan by default. This behaviour is already documented in manual page. This fixes on possible case where 'ifconfig scan' hangs infinitely. MFC after: 1 month
This commit is contained in:
parent
23e658552f
commit
e543f6eb01
@ -3222,6 +3222,7 @@ scan_and_wait(int s)
|
||||
|
||||
memset(&sr, 0, sizeof(sr));
|
||||
sr.sr_flags = IEEE80211_IOC_SCAN_ACTIVE
|
||||
| IEEE80211_IOC_SCAN_BGSCAN
|
||||
| IEEE80211_IOC_SCAN_NOPICK
|
||||
| IEEE80211_IOC_SCAN_ONCE;
|
||||
sr.sr_duration = IEEE80211_IOC_SCAN_FOREVER;
|
||||
|
Loading…
x
Reference in New Issue
Block a user