Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jan 2011 13:17:45 +0000 (UTC)
From:      Bernhard Schmidt <bschmidt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r218090 - head/sbin/ifconfig
Message-ID:  <201101301317.p0UDHjuq072817@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101301317.p0UDHjuq072817>