From owner-freebsd-current@FreeBSD.ORG Thu May 8 14:39:10 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A8771065673 for ; Thu, 8 May 2008 14:39:10 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from QMTA03.emeryville.ca.mail.comcast.net (qmta03.emeryville.ca.mail.comcast.net [76.96.30.32]) by mx1.freebsd.org (Postfix) with ESMTP id EE4EC8FC21 for ; Thu, 8 May 2008 14:39:09 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from OMTA14.emeryville.ca.mail.comcast.net ([76.96.30.60]) by QMTA03.emeryville.ca.mail.comcast.net with comcast id P1Xx1Z01q1HpZEsA301z00; Thu, 08 May 2008 14:35:44 +0000 Received: from discordia ([24.60.135.75]) by OMTA14.emeryville.ca.mail.comcast.net with comcast id P2f61Z00E1dmTCQ8a00000; Thu, 08 May 2008 14:39:08 +0000 X-Authority-Analysis: v=1.0 c=1 a=EvE_zDuujr4A:10 a=gOLFDXzmTpR5Nc347RMA:9 a=LFEW9kPCtNnL5mwufPEA:7 a=EYLZmyB2zZc_89rR_Tv2HCcGDAIA:4 a=LY0hPdMaydYA:10 a=D36Q938GTTWD5hRFNUAA:9 a=KkJBTpzGl_kC3ZCRakXw2hB5Y2IA:4 a=NfA2RSpTaHsA:10 a=WSdlY_94Z9kgZ36vDCIA:9 a=DAzV95_2Ttoxr_Wah0-U381c2EsA:4 a=rPt6xJ-oxjAA:10 Received: by discordia (Postfix, from userid 103) id 8082D1DB2FA; Thu, 8 May 2008 10:39:06 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.8-gr1 (2007-02-13) on discordia X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.8-gr1 Received: from [172.20.1.3] (erwin.int.cokane.org [172.20.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by discordia (Postfix) with ESMTP id D6B731DB2F9; Thu, 8 May 2008 10:38:51 -0400 (EDT) From: Coleman Kane To: Ted Lindgreen In-Reply-To: <200805081409.m48E91tS033752@omval.tednet.nl> References: <200805081409.m48E91tS033752@omval.tednet.nl> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-NYV5vOZ9gbRyiQc5GS8U" Organization: FreeBSD Project Date: Thu, 08 May 2008 10:37:29 -0400 Message-Id: <1210257449.1745.11.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 FreeBSD GNOME Team Port Cc: freebsd-current@freebsd.org, Andrew Thompson Subject: Re: Problem ndis and 11b since May 1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2008 14:39:10 -0000 --=-NYV5vOZ9gbRyiQc5GS8U Content-Type: multipart/mixed; boundary="=-DFZEV97glnf/CS+E+INH" --=-DFZEV97glnf/CS+E+INH Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2008-05-08 at 16:09 +0200, Ted Lindgreen wrote: > Hi, >=20 > Since May 1 my Broadcom BCM43 wlan interface, using the ndis-driver, > does not associate with my (old) Apple Airport anymore. >=20 > Working out the various changes, I found that a change in if_ndis.c > from version 1.135 to 1.136 caused the problem. In other words: > a kernel, generated from an uptodate source as of May 7 does not > associate, by only reverting if_ndis.c to version 1.135 produces > a kernel that works fine as ever before. >=20 > Further info: there is NO problem with a few other access-points I > have access to. One of the differences between the Airport and the > other access-points is that the old Airport supports only 11b, while > the others support both 11b and 11g. I'm not sure, of course, but it > looks like the change between 1.135 and 1.136 forces the ndis-driver > into 802.11g mode exclusively. >=20 > regards, > -- ted >=20 Hi Ted, I've been talking to Andrew Thompson about a similar problem recently. I'm not sure if it is related, but it did keep me from being able to associate to anything. I am attaching a patch that has worked for me. Maybe it will work for you too. The problem I found is that wpa_supplicant needs to be run (against wlan0, using ndis driver) after the ndis0 interface has been upped. Additionally, if you are trying to manually ifconfig the interface, I have found that after a boot you'll need to ifconfig down, then ifconfig up the ndis0 before you attempt to do any associating with the wlan0 interface. Additionally, bringing wlan0 down/up/down/up/..., checking associated status after each up until it works has helped me in the manual case. A good way to discern whether wlan0 will associate (or needs to be kicked) will be to run "ifconfig wlan0 scan". If it hangs forever, then it didn't work... However... you listed your AP as 802.11b, and mine is 802.11g, so YMMV. Make sure that you're using (in /etc/rc.conf): wlans_ndis0=3D"wlan0" ifconfig_wlan0=3D"WPA" You may want to read /usr/src/UPDATING for a summary of what has changed and what needs to be done about it, if you haven't already followed those instructions. --=20 Coleman Kane --=-DFZEV97glnf/CS+E+INH Content-Disposition: attachment; filename=wpa_supplicant-ndis-wlan.patch Content-Type: text/x-patch; name=wpa_supplicant-ndis-wlan.patch; charset=UTF-8 Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL2V0Yy9yYy5kL3dwYV9zdXBwbGljYW50IGIvZXRjL3JjLmQvd3BhX3N1cHBs aWNhbnQNCmluZGV4IDYzMTQyNzguLjFkM2Q0ZGMgMTAwNjQ0DQotLS0gYS9ldGMvcmMuZC93cGFf c3VwcGxpY2FudA0KKysrIGIvZXRjL3JjLmQvd3BhX3N1cHBsaWNhbnQNCkBAIC0xMSw2ICsxMSw3 IEBADQogLiAvZXRjL25ldHdvcmsuc3Vicg0KIA0KIG5hbWU9IndwYV9zdXBwbGljYW50Ig0KK3Bh cmVudD0NCiByY3Zhcj0NCiANCiBpZm49IiQyIg0KQEAgLTMzLDcgKzM0LDExIEBAIGlzX3dpcmVk X2ludGVyZmFjZSgpDQogaXNfbmRpc19pbnRlcmZhY2UoKQ0KIHsNCiAJY2FzZSBgc3lzY3RsIC1u IG5ldC53bGFuLiR7MSN3bGFufS4lcGFyZW50IDI+L2Rldi9udWxsYCBpbg0KLQkJbmRpcyopIHRy dWUgOzsNCisJCW5kaXMqKQ0KKwkJCXBhcmVudD1gc3lzY3RsIC1uIG5ldC53bGFuLiR7MSN3bGFu fS4lcGFyZW50IDI+XA0KKwkJCQkvZGV2L251bGxgDQorCQkJdHJ1ZQ0KKwkJOzsNCiAJCSopIGZh bHNlIDs7DQogCWVzYWMNCiB9DQpAQCAtNDIsNiArNDcsNyBAQCBpZiBpc193aXJlZF9pbnRlcmZh Y2UgJHtpZm59IDsgdGhlbg0KIAlkcml2ZXI9IndpcmVkIg0KIGVsaWYgaXNfbmRpc19pbnRlcmZh Y2UgJHtpZm59IDsgdGhlbg0KIAlkcml2ZXI9Im5kaXMiDQorCWlmY29uZmlnICR7cGFyZW50fSB1 cA0KIGVsc2UNCiAJZHJpdmVyPSJic2QiDQogZmkNCg== --=-DFZEV97glnf/CS+E+INH-- --=-NYV5vOZ9gbRyiQc5GS8U Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkgjECcACgkQcMSxQcXat5fvbgCfeQdX9ggp76Dc2YVDXO/aeWyC h7wAnRJKfDbwXvXGZfmvNYSzWQByXMM6 =F2g9 -----END PGP SIGNATURE----- --=-NYV5vOZ9gbRyiQc5GS8U--