From owner-freebsd-current@FreeBSD.ORG Fri Sep 25 16:24:04 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D3EF1065672 for ; Fri, 25 Sep 2009 16:24:04 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.freebsd.org (Postfix) with ESMTP id D42B58FC14 for ; Fri, 25 Sep 2009 16:24:03 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.3/8.14.3) with ESMTP id n8PGO3L7038132 for ; Fri, 25 Sep 2009 09:24:03 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.3/8.14.3/Submit) id n8PGO3LA038131 for current@freebsd.org; Fri, 25 Sep 2009 09:24:03 -0700 (PDT) (envelope-from david) Date: Fri, 25 Sep 2009 09:24:03 -0700 From: David Wolfskill To: current@freebsd.org Message-ID: <20090925162403.GM1320@albert.catwhisker.org> Mail-Followup-To: David Wolfskill , current@freebsd.org References: <20090923140936.GF1320@albert.catwhisker.org> <3a142e750909231508j1a5092f8nfae264f367ba410@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="m+utxuhC6KVTvgNz" Content-Disposition: inline In-Reply-To: <3a142e750909231508j1a5092f8nfae264f367ba410@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: Subject: Re: No DHCP lease with iwi(4)/wlan(4); works with an(4) at r197399 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: Fri, 25 Sep 2009 16:24:04 -0000 --m+utxuhC6KVTvgNz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 24, 2009 at 12:08:10AM +0200, Paul B. Mahol wrote: > On 9/23/09, David Wolfskill wrote: > > I normally use wireless NICs on my laptop, especially at home, I > > swapped the miniPCI wi(4) for an iwi(4) a few weeks ago, and had it > > working in stable/6, stable/7, and head until a few days ago, when it > > seemed that the NIC was associating OK, but dhclient(8) reports: > > [no DHCP offers received...] > > > > This morning, I had the time to try plugging in a wireless PCcard (an0) > > NIC; after doing that, I see: > > [DHCP offer received & accepted] > > > > I realize that an(4) doesn't use wlan(4), so this could indicate a > > problem with either iwi(4) or wlan(4) -- but it seems to show that > > dhclient(8) itself is working, as is the basic infrastructure (my > > DHCP server; the access point; the ipfw(4) rules I have in place > > before & after DHCP activity). > > > > As I type, I'm running: > > > > FreeBSD g1-37.catwhisker.org 9.0-CURRENT FreeBSD 9.0-CURRENT #1123 r197= 399: > > Tue Sep 22 06:16:11 PDT 2009 root@:/common/S4/obj/usr/src/sys/CANARY > > i386 > > > > and am in the process of building head at r197427. > > > > Is there something I might do to help diagnose what's wrong here? >=20 > wlandebug(8) >=20 > and also enable iwi debug sysctl. >=20 > (Try to enable only few of them at same time, otherwise anabling > everything will cause huge chaos on console) wlandebug(8) didn't seem to generate much (if anything) -- perhaps iwi(4) qualifies as a device that "implement[s] parts of the 802.11 protocol in firmware", given that it's necessary to load a bunch of firmware to use it. And I haven't yet had a chance to explore the iwi sysctl OIDs. But I did find one rather curious thing: I was able to get the iwi(4) to work OK (while running head) with one of my access points; it's the other that seems to have an issue with iwi(4) under head. I have 2 different access points at home: * An original Apple Airport * A Linksys WAP-11. (Each is, within the bounds of their rather different natures, configured the same except for channel: One is on channel 1; the other is on channel 6. Neither is a DHCP server: each merely passes the DHCP traffic.) Under stable/6 and stable/7, each works fine with iwi(4). Under head (presently at r197479), the Linksys WAP-11 works (associates & dhclient(8) negotiates a DHCP lease using iwi(4)/wlan(4)). Under head, the Apple Airport associates, but dhclient(8) cannot see a DHCP offer via iwi(4)/wlan(4).=20 I have a 3rd access point for occasional use; I could see what happens with it, but I wasn't eager to confuse things further. Peace, david --=20 David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --m+utxuhC6KVTvgNz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAkq87qIACgkQmprOCmdXAD1U/wCghf7oUoCuF2Ia8yNWxLdmYr7E AC4An2FWQfkZhsPu7irO9uUzHEJzCm3L =papd -----END PGP SIGNATURE----- --m+utxuhC6KVTvgNz--