summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifieee80211.c
diff options
context:
space:
mode:
authorbschmidt <bschmidt@FreeBSD.org>2011-01-30 13:17:45 +0000
committerbschmidt <bschmidt@FreeBSD.org>2011-01-30 13:17:45 +0000
commite543f6eb0105d80a79803f24b19bd5cec061591e (patch)
treea5b367d46308733e43b2cdc5f08dcc56e664484f /sbin/ifconfig/ifieee80211.c
parent23e658552fafe7ad66dc57b8f48c7a6db6bc6c07 (diff)
downloadFreeBSD-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/ifconfig/ifieee80211.c')
-rw-r--r--sbin/ifconfig/ifieee80211.c1
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;
OpenPOWER on IntegriCloud