From owner-freebsd-net@FreeBSD.ORG Thu Mar 26 11:44:00 2015 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 07A5C25E; Thu, 26 Mar 2015 11:44:00 +0000 (UTC) Received: from albert.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AADFBA74; Thu, 26 Mar 2015 11:43:59 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.9/8.14.9) with ESMTP id t2QBhwQO032782; Thu, 26 Mar 2015 04:43:58 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.9/8.14.9/Submit) id t2QBhvjB032781; Thu, 26 Mar 2015 04:43:57 -0700 (PDT) (envelope-from david) Date: Thu, 26 Mar 2015 04:43:57 -0700 From: David Wolfskill To: Adrian Chadd Subject: Re: iwn(4) works (mostly) in stable/10; fails to associate in head Message-ID: <20150326114357.GL7594@albert.catwhisker.org> References: <20150323131918.GN7594@albert.catwhisker.org> <20150326022132.GI7594@albert.catwhisker.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="t3tFFy74pA5/PEcJ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2015 11:44:00 -0000 --t3tFFy74pA5/PEcJ Content-Type: multipart/mixed; boundary="smEuXhZLKnMjT4Ht" Content-Disposition: inline --smEuXhZLKnMjT4Ht Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 25, 2015 at 09:19:40PM -0700, Adrian Chadd wrote: > On 25 March 2015 at 19:21, David Wolfskill wrote: > > On Wed, Mar 25, 2015 at 06:17:48PM -0700, Adrian Chadd wrote: > >> Hi, > >> > >> I'm unfortunately too busy to really help you dig into it. > >> > >> I'd start by using tcpdump on wlan0 to see what's going on - see if > >> it's sending/receiving DHCP responses. > > > > Well, in head, it won't even associate, so I suspect that DHCP is a moot > > point. >=20 > Ok, sysctl dev.iwn.0.debug=3D0x1, wlandebug +scan, and then start wpa_sup= plicant. >=20 > It should be reasonably obvious what's going on - if it can't see APs > or it can't transmit anything successfully, then at least I know where > to begin looking when I have spare time. > .... Well, things didn't go quite to plan... and in the process of trying to debug the iwn0, the perverse bit of hardware managed to associate. I've attached a typescript for your (collective) amusement. Peace, david --=20 David H. Wolfskill david@catwhisker.org Those who murder in the name of God or prophet are blasphemous cowards. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --smEuXhZLKnMjT4Ht Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="typescript.iwn" Content-Transfer-Encoding: quoted-printable Script started on Thu Mar 26 04:32:50 2015 root@g1-254:/tmp # pkill wpa_si=08=1B[Kupplicant=0D=0D root@g1-254:/tmp # service netif stop wlan0 iwn0=0D=0D wpa_supplicant not running? (check /var/run/wpa_supplicant/wlan0.pid).=0D Stopping Network: wlan0 iwn0.=0D ifconfig: interface wlan0 does not exist=0D iwn0: flags=3D8802 metric 0 mtu 2290=0D ether 00:24:e8:b5:85:46=0D nd6 options=3D21=0D media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)=0D status: no carrier=0D root@g1-254:/tmp # sysctl dev.iwn.0=0D=0D dev.iwn.0.wake: 0=0D dev.iwn.0.%parent: pci3=0D dev.iwn.0.%pnpinfo: vendor=3D0x8086 device=3D0x4232 subvendor=3D0x8086 subd= evice=3D0x1321 class=3D0x028000=0D dev.iwn.0.%location: pci0:3:0:0 handle=3D\_SB_.PCI0.RP03.PXSX=0D dev.iwn.0.%driver: iwn=0D dev.iwn.0.%desc: Intel WiFi Link 5100=0D root@g1-254:/tmp # sysctl dev.iwn.0.debug=3D0x1=0D=0D sysctl: unknown oid 'dev.iwn.0.debug': No such file or directory=0D root@g1-254:/tmp # uname -a=0D=0D FreeBSD g1-254.catwhisker.org 11.0-CURRENT FreeBSD 11.0-CURRENT #1549 r280= 520M/280523:1100066: Wed Mar 25 05:07:03 PDT 2015 root@g1-254.catwhiske= r.org:/common/S4/obj/usr/src/sys/CANARY i386=0D root@g1-254:/tmp # wlandebug +scan=0D=0D wlandebug: sysctl-get(net.wlan.0.debug): No such file or directory=0D root@g1-254:/tmp # sysctl net.wlan.0=08=1B[K=08=1B[K=0D=0D net.wlan.mesh.maxholding: 2=0D net.wlan.mesh.maxretries: 2=0D net.wlan.mesh.backofftimeout: 5000=0D net.wlan.mesh.confirmtimeout: 40=0D net.wlan.mesh.holdingtimeout: 40=0D net.wlan.mesh.retrytimeout: 40=0D net.wlan.mesh.gateint: 10000=0D net.wlan.hwmp.inact: 5000=0D net.wlan.hwmp.rootconfint: 2000=0D net.wlan.hwmp.rannint: 1000=0D net.wlan.hwmp.rootint: 2000=0D net.wlan.hwmp.roottimeout: 5000=0D net.wlan.hwmp.net_diameter_traversal_time: 512=0D net.wlan.hwmp.maxpreq_retries: 3=0D net.wlan.hwmp.pathlifetime: 5000=0D net.wlan.hwmp.targetonly: 0=0D net.wlan.addba_maxtries: 3=0D net.wlan.addba_backoff: 10000=0D net.wlan.addba_timeout: 250=0D net.wlan.recv_bar: 1=0D net.wlan.ampdu_age: 500=0D net.wlan.debug: 0=0D net.wlan.cac_timeout: 60=0D net.wlan.nol_timeout: 1800=0D root@g1-254:/tmp # sysctl net.wlan=1B[15Dwlandebug +scan=1B[15Duname -a=1B[= K=1B[8Dsysctl dev.iwn.0.debug=3D0x1=1B[10D=1B[K=08=1B[K=08=1B[K | sort=0D=0D dev.iwn.%parent: =0D dev.iwn.0.%desc: Intel WiFi Link 5100=0D dev.iwn.0.%driver: iwn=0D dev.iwn.0.%location: pci0:3:0:0 handle=3D\_SB_.PCI0.RP03.PXSX=0D dev.iwn.0.%parent: pci3=0D dev.iwn.0.%pnpinfo: vendor=3D0x8086 device=3D0x4232 subvendor=3D0x8086 subd= evice=3D0x1321 class=3D0x028000=0D dev.iwn.0.wake: 0=0D root@g1-254:/tmp # sysctl dev.iwn | sort=1B[14Dnet.wlan=1B[K | sort=0D=0D net.wlan.addba_backoff: 10000=0D net.wlan.addba_maxtries: 3=0D net.wlan.addba_timeout: 250=0D net.wlan.ampdu_age: 500=0D net.wlan.cac_timeout: 60=0D net.wlan.debug: 0=0D net.wlan.hwmp.inact: 5000=0D net.wlan.hwmp.maxpreq_retries: 3=0D net.wlan.hwmp.net_diameter_traversal_time: 512=0D net.wlan.hwmp.pathlifetime: 5000=0D net.wlan.hwmp.rannint: 1000=0D net.wlan.hwmp.rootconfint: 2000=0D net.wlan.hwmp.rootint: 2000=0D net.wlan.hwmp.roottimeout: 5000=0D net.wlan.hwmp.targetonly: 0=0D net.wlan.mesh.backofftimeout: 5000=0D net.wlan.mesh.confirmtimeout: 40=0D net.wlan.mesh.gateint: 10000=0D net.wlan.mesh.holdingtimeout: 40=0D net.wlan.mesh.maxholding: 2=0D net.wlan.mesh.maxretries: 2=0D net.wlan.mesh.retrytimeout: 40=0D net.wlan.nol_timeout: 1800=0D net.wlan.recv_bar: 1=0D root@g1-254:/tmp # sysctl net.wlan.debug=3D1=0D=0D net.wlan.debug: 0 -> 1=0D root@g1-254:/tmp # wlandebug +scan=0D=0D wlandebug: sysctl-get(net.wlan.0.debug): No such file or directory=0D root@g1-254:/tmp # wlandebug +scan=1B[15Dsysctl net.wlan.debug=3D1=08=08=08= =08=08=08=08=1B[1@0=1B[1@.=0D=0D sysctl: unknown oid 'net.wlan.0.debug': No such file or directory=0D root@g1-254:/tmp # service netif start iwn0=0D=0D Starting wpa_supplicant.=0D Starting Network: iwn0.=0D iwn0: flags=3D8843 metric 0 mtu 229= 0=0D ether 00:24:e8:b5:85:46=0D nd6 options=3D21=0D media: IEEE 802.11 Wireless Ethernet autoselect mode 11g=0D status: associated=0D root@g1-254:/tmp # ifconfig wlan0=0D=0D wlan0: flags=3D8843 metric 0 mtu 15= 00=0D ether 00:24:e8:b5:85:46=0D nd6 options=3D29=0D media: IEEE 802.11 Wireless Ethernet MCS mode 11ng=0D status: associated=0D ssid lmdhw-net channel 1 (2412 MHz 11g ht/20) bssid 04:18:d6:22:22:1f=0D country US authmode WPA2/802.11i privacy ON deftxkey UNDEF=0D AES-CCM 2:128-bit txpower 15 bmiss 10 scanvalid 60 bgscan=0D bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 64 protmode CTS=0D ampdulimit 64k ampdudensity 8 -amsdutx amsdurx shortgi wme=0D roaming MANUAL=0D groups: wlan =0D root@g1-254:/tmp # ^D=08=08exit=0D Script done on Thu Mar 26 04:41:05 2015 --smEuXhZLKnMjT4Ht-- --t3tFFy74pA5/PEcJ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJVE/D9XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RThEMDY4QTIxMjc1MDZFRDIzODYzRTc4 QTY3RjlDOERFRjQxOTNCAAoJEIpn+cje9Bk7IYkQAJU/CInuUSOM5LNfosav/R6v 8fGSAQsWxib6A4xpjCQecGIEcZBKhRvxLtWVmpmBita8/8fOw4R7CENIpWMhh4eY 8QGh3RHSIHXdozjGywArQpjIupYIVgioDYa9375WeX2SNQmB4BsYHLpfCqr1eOYo cQUqC/5QzEdpBP+YEvk0g80tijEIyuMdHIeGlHLdDHfJsvBqzR8QNKxdBaOQsV1b baShqX4Cg0RyUFi/zw5h1ADQZZmlV0Jqq2fAgyCYl08wO+PglFbY2tzE1aa5Xm0S 1EeWlrixQ0c2BoTcRW+WhHaFcbHT49lghYDYS0qj7xvrEkSsettWTtpC0gPV80gr PKMH5Q+F24nitE3X5+qWxqG56fhkD5Ap7WRVU/1Bw5dWjPHvQSi/PwWIxG4+yjEJ 7LDS8IDKrORpBrjQU/XkaQyYlAtlFsnXKPUgLUVjxEEnxIGu60jO6jI1CD6RuW+G Je2Vl/rvwRG18QIyEON0/Gz8EqRkV2tR8p45ue185RiSRtLemluNCW5m7aObxj4H O2tBRSGqWkLuRHIUm76w78bWNC5rj8htWG+tSdZj4CY65EK/R2yMayMwF9D71Zzb +RQ7qp/YLnv0y9B0nmBNbEHJVzX3cv0svqbHAr2wVNNkld5uQXFg265a+7SThV+4 Jv2+q8x+GD2xXHUmXR6i =LEOE -----END PGP SIGNATURE----- --t3tFFy74pA5/PEcJ--