'ifconfig ath0 scan' hangs under 6.0-STABLE (resolved?)
Dan Swartzendruber
dswartz at druber.com
Wed Feb 1 11:34:26 PST 2006
At 02:13 PM 2/1/2006, Sam Leffler wrote:
>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.
Not complaining, mind you - I'm just relieved to know why this was
happening. Thx!
More information about the freebsd-net
mailing list