From e44e0b612b3783c5c938afc92eb227e9be0c61b4 Mon Sep 17 00:00:00 2001 From: thompsa Date: Mon, 5 Nov 2007 06:13:07 +0000 Subject: 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 --- etc/network.subr | 3 --- 1 file changed, 3 deletions(-) (limited to 'etc/network.subr') 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 -- cgit v1.1