From owner-freebsd-current@FreeBSD.ORG Wed Sep 23 22:08:12 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 3C756106568B for ; Wed, 23 Sep 2009 22:08:12 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-fx0-f222.google.com (mail-fx0-f222.google.com [209.85.220.222]) by mx1.freebsd.org (Postfix) with ESMTP id C671D8FC1C for ; Wed, 23 Sep 2009 22:08:11 +0000 (UTC) Received: by fxm22 with SMTP id 22so1054189fxm.36 for ; Wed, 23 Sep 2009 15:08:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=wCtYcAU58K6+r8Awjlw6KK+OtRCyFVPgShzkLr3axRA=; b=LCj/U9qrvmjom6qUeEXKe7nIYiNJ4cXZMAaH1zmCnLC6TDBxF5XKYFrRM5XbV70YVk dvGZGApyNsbQD+DHTIuSNnv3TYulmbBOvHoiczuTP6yQkFptHGeBbJyW3fPyFR9M7t5a +z2rq+TSYaI4FkUthJEHaH4SuwKHHmYLp8+CM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=HKD8q2k6aI7MsizlGmkJRqpVx6+YcOh6tB2sk0WiNQAgzonH0ttK8np/zX9pnJRNdL V4n/BSFuOUqrh001+c2zZSVqutz/sRLbi05SrMjm0j+UvYxDc7IawiHjdZ/vuG6kSYE/ DS/NBUoO+cIplnGtZagw5kLivbow1B6OfOo0c= MIME-Version: 1.0 Received: by 10.103.67.32 with SMTP id u32mr1180453muk.133.1253743690834; Wed, 23 Sep 2009 15:08:10 -0700 (PDT) In-Reply-To: <20090923140936.GF1320@albert.catwhisker.org> References: <20090923140936.GF1320@albert.catwhisker.org> Date: Thu, 24 Sep 2009 00:08:10 +0200 Message-ID: <3a142e750909231508j1a5092f8nfae264f367ba410@mail.gmail.com> From: "Paul B. Mahol" To: David Wolfskill , current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: No DHCP lease with iwi(4)/wlan(5); 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: Wed, 23 Sep 2009 22:08:12 -0000 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: > > dhclient: Exiting /etc/dhclient-exit-hooks (PREINIT) with exit_status 0 > DHCPREQUEST on wlan0 to 255.255.255.255 port 67 > DHCPREQUEST on wlan0 to 255.255.255.255 port 67 > DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3 > DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7 > DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9 > DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16 > ^C > > This morning, I had the time to try plugging in a wireless PCcard (an0) > NIC; after doing that, I see: > > dhclient: Exiting /etc/dhclient-exit-hooks (PREINIT) with exit_status 0 > DHCPDISCOVER on an0 to 255.255.255.255 port 67 interval 3 > DHCPDISCOVER on an0 to 255.255.255.255 port 67 interval 7 > DHCPOFFER from 172.17.0.1 > DHCPREQUEST on an0 to 255.255.255.255 port 67 > DHCPACK from 172.17.0.1 > bound to 172.17.1.37 -- renewal in 302400 seconds. > > which is a bit closer to the desired effect. > > 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 r197399: > 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? wlandebug(8) and also enable iwi debug sysctl. (Try to enable only few of them at same time, otherwise anabling everything will cause huge chaos on console) -- Paul