From owner-cvs-all@FreeBSD.ORG Mon Nov 5 06:13:08 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FF4416A469; Mon, 5 Nov 2007 06:13:08 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 3576013C48E; Mon, 5 Nov 2007 06:13:08 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lA56D87i016254; Mon, 5 Nov 2007 06:13:08 GMT (envelope-from thompsa@repoman.freebsd.org) Received: (from thompsa@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lA56D7SM016222; Mon, 5 Nov 2007 06:13:07 GMT (envelope-from thompsa) Message-Id: <200711050613.lA56D7SM016222@repoman.freebsd.org> From: Andrew Thompson Date: Mon, 5 Nov 2007 06:13:07 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/etc network.subr src/usr.sbin/wpa/wpa_supplicant driver_freebsd.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2007 06:13:08 -0000 thompsa 2007-11-05 06:13:07 UTC FreeBSD src repository Modified files: etc network.subr usr.sbin/wpa/wpa_supplicant driver_freebsd.c Log: 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 Revision Changes Path 1.181 +0 -3 src/etc/network.subr 1.15 +12 -3 src/usr.sbin/wpa/wpa_supplicant/driver_freebsd.c