Date: Wed, 01 Feb 2006 11:13:08 -0800 From: Sam Leffler <sam@errno.com> To: Dan Swartzendruber <dswartz@druber.com> Cc: freebsd-net@freebsd.org Subject: Re: 'ifconfig ath0 scan' hangs under 6.0-STABLE (resolved?) Message-ID: <43E10844.50603@errno.com> In-Reply-To: <6.2.3.4.2.20060201131645.01ce5cb0@127.0.0.1> References: <6.2.3.4.2.20060201131645.01ce5cb0@127.0.0.1>
next in thread | previous in thread | raw e-mail | index | archive | help
Dan Swartzendruber wrote: > > Poking through ieee80211_ioctl.c in the kernel, I see this: > > case IEEE80211_IOC_SCAN_REQ: > if (ic->ic_opmode == IEEE80211_M_HOSTAP) /* XXX > ignore */ > break; > error = ieee80211_setupscan(ic, ic->ic_chan_avail); > if (error == 0) /* XXX background scan */ > error = ieee80211_new_state(ic, > IEEE80211_S_SCAN, -1); > break; > > So, it looks like if you're in hostap mode, it just ignores the > request? Unfortunately, the ifconfig code is looping waiting for a > response. Oh well... Yes this is a continuation of previous policy. I'll change it to return an error so ifconfig won't hang waiting for the scan complete notification. Sam
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43E10844.50603>