diff options
author | bschmidt <bschmidt@FreeBSD.org> | 2011-01-30 13:17:45 +0000 |
---|---|---|
committer | bschmidt <bschmidt@FreeBSD.org> | 2011-01-30 13:17:45 +0000 |
commit | e543f6eb0105d80a79803f24b19bd5cec061591e (patch) | |
tree | a5b367d46308733e43b2cdc5f08dcc56e664484f /sbin | |
parent | 23e658552fafe7ad66dc57b8f48c7a6db6bc6c07 (diff) | |
download | FreeBSD-src-e543f6eb0105d80a79803f24b19bd5cec061591e.zip FreeBSD-src-e543f6eb0105d80a79803f24b19bd5cec061591e.tar.gz |
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
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ifconfig/ifieee80211.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c index 6ec45ff..0250f16 100644 --- a/sbin/ifconfig/ifieee80211.c +++ b/sbin/ifconfig/ifieee80211.c @@ -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; |