diff options
author | thompsa <thompsa@FreeBSD.org> | 2007-11-05 06:13:07 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2007-11-05 06:13:07 +0000 |
commit | e44e0b612b3783c5c938afc92eb227e9be0c61b4 (patch) | |
tree | d7c2ab5e843f90e91144aa5e58a22c678ff797c6 /etc | |
parent | 5c2145818777785a7cf0d81c374008e2b3fdfa6f (diff) | |
download | FreeBSD-src-e44e0b612b3783c5c938afc92eb227e9be0c61b4.zip FreeBSD-src-e44e0b612b3783c5c938afc92eb227e9be0c61b4.tar.gz |
Change wpa_supplicant to down the interface at the start of the init routine.
wpa_supplicant expects that it has exclusive access to the net80211 state so
when its starts poking in the WEP/WPA settings and the card is already
scanning it can cause net80211 to try and associate incorrectly with a
protected AP.
This is an inconvenience for firmware based cards such as iwi where it can be
sent an auth instruction with incomplete security info and cause a firmware
error.
Remove the 'ifconfig up' from network.subr since wpa_supplicant will
immediately down the interface again.
Reported by: Guy Helmer (and others)
Reviewed by: sam, brooks, avatar
MFC after: 3 days
Diffstat (limited to 'etc')
-rw-r--r-- | etc/network.subr | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/etc/network.subr b/etc/network.subr index 51173c5..a98954b 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -49,9 +49,6 @@ ifconfig_up() fi if wpaif $1; then - if [ $_cfg -ne 0 ] ; then - ifconfig $1 up - fi /etc/rc.d/wpa_supplicant start $1 _cfg=0 # XXX: not sure this should count fi |