svn commit: r218090 - head/sbin/ifconfig
Bernhard Schmidt
bschmidt at FreeBSD.org
Sun Jan 30 13:17:45 UTC 2011
Author: bschmidt
Date: Sun Jan 30 13:17:45 2011
New Revision: 218090
URL: http://svn.freebsd.org/changeset/base/218090
Log:
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
Modified:
head/sbin/ifconfig/ifieee80211.c
Modified: head/sbin/ifconfig/ifieee80211.c
==============================================================================
--- head/sbin/ifconfig/ifieee80211.c Sun Jan 30 12:57:10 2011 (r218089)
+++ head/sbin/ifconfig/ifieee80211.c Sun Jan 30 13:17:45 2011 (r218090)
@@ -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;
More information about the svn-src-all
mailing list