iwn(4) works (mostly) in stable/10; fails to associate in head
David Wolfskill
david at catwhisker.org
Thu Mar 26 11:44:00 UTC 2015
On Wed, Mar 25, 2015 at 09:19:40PM -0700, Adrian Chadd wrote:
> On 25 March 2015 at 19:21, David Wolfskill <david at catwhisker.org> 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.
>
> Ok, sysctl dev.iwn.0.debug=0x1, wlandebug +scan, and then start wpa_supplicant.
>
> 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
--
David H. Wolfskill david at 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.
-------------- next part --------------
Script started on Thu Mar 26 04:32:50 2015
root at g1-254:/tmp # pkill wpa_si[Kupplicant
root at g1-254:/tmp # service netif stop wlan0 iwn0
wpa_supplicant not running? (check /var/run/wpa_supplicant/wlan0.pid).
Stopping Network: wlan0 iwn0.
ifconfig: interface wlan0 does not exist
iwn0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:24:e8:b5:85:46
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
root at g1-254:/tmp # sysctl dev.iwn.0
dev.iwn.0.wake: 0
dev.iwn.0.%parent: pci3
dev.iwn.0.%pnpinfo: vendor=0x8086 device=0x4232 subvendor=0x8086 subdevice=0x1321 class=0x028000
dev.iwn.0.%location: pci0:3:0:0 handle=\_SB_.PCI0.RP03.PXSX
dev.iwn.0.%driver: iwn
dev.iwn.0.%desc: Intel WiFi Link 5100
root at g1-254:/tmp # sysctl dev.iwn.0.debug=0x1
sysctl: unknown oid 'dev.iwn.0.debug': No such file or directory
root at g1-254:/tmp # uname -a
FreeBSD g1-254.catwhisker.org 11.0-CURRENT FreeBSD 11.0-CURRENT #1549 r280520M/280523:1100066: Wed Mar 25 05:07:03 PDT 2015 root at g1-254.catwhisker.org:/common/S4/obj/usr/src/sys/CANARY i386
root at g1-254:/tmp # wlandebug +scan
wlandebug: sysctl-get(net.wlan.0.debug): No such file or directory
root at g1-254:/tmp # sysctl net.wlan.0[K[K
net.wlan.mesh.maxholding: 2
net.wlan.mesh.maxretries: 2
net.wlan.mesh.backofftimeout: 5000
net.wlan.mesh.confirmtimeout: 40
net.wlan.mesh.holdingtimeout: 40
net.wlan.mesh.retrytimeout: 40
net.wlan.mesh.gateint: 10000
net.wlan.hwmp.inact: 5000
net.wlan.hwmp.rootconfint: 2000
net.wlan.hwmp.rannint: 1000
net.wlan.hwmp.rootint: 2000
net.wlan.hwmp.roottimeout: 5000
net.wlan.hwmp.net_diameter_traversal_time: 512
net.wlan.hwmp.maxpreq_retries: 3
net.wlan.hwmp.pathlifetime: 5000
net.wlan.hwmp.targetonly: 0
net.wlan.addba_maxtries: 3
net.wlan.addba_backoff: 10000
net.wlan.addba_timeout: 250
net.wlan.recv_bar: 1
net.wlan.ampdu_age: 500
net.wlan.debug: 0
net.wlan.cac_timeout: 60
net.wlan.nol_timeout: 1800
root at g1-254:/tmp # sysctl net.wlan[15Dwlandebug +scan[15Duname -a[K[8Dsysctl dev.iwn.0.debug=0x1[10D[K[K[K | sort
dev.iwn.%parent:
dev.iwn.0.%desc: Intel WiFi Link 5100
dev.iwn.0.%driver: iwn
dev.iwn.0.%location: pci0:3:0:0 handle=\_SB_.PCI0.RP03.PXSX
dev.iwn.0.%parent: pci3
dev.iwn.0.%pnpinfo: vendor=0x8086 device=0x4232 subvendor=0x8086 subdevice=0x1321 class=0x028000
dev.iwn.0.wake: 0
root at g1-254:/tmp # sysctl dev.iwn | sort[14Dnet.wlan[K | sort
net.wlan.addba_backoff: 10000
net.wlan.addba_maxtries: 3
net.wlan.addba_timeout: 250
net.wlan.ampdu_age: 500
net.wlan.cac_timeout: 60
net.wlan.debug: 0
net.wlan.hwmp.inact: 5000
net.wlan.hwmp.maxpreq_retries: 3
net.wlan.hwmp.net_diameter_traversal_time: 512
net.wlan.hwmp.pathlifetime: 5000
net.wlan.hwmp.rannint: 1000
net.wlan.hwmp.rootconfint: 2000
net.wlan.hwmp.rootint: 2000
net.wlan.hwmp.roottimeout: 5000
net.wlan.hwmp.targetonly: 0
net.wlan.mesh.backofftimeout: 5000
net.wlan.mesh.confirmtimeout: 40
net.wlan.mesh.gateint: 10000
net.wlan.mesh.holdingtimeout: 40
net.wlan.mesh.maxholding: 2
net.wlan.mesh.maxretries: 2
net.wlan.mesh.retrytimeout: 40
net.wlan.nol_timeout: 1800
net.wlan.recv_bar: 1
root at g1-254:/tmp # sysctl net.wlan.debug=1
net.wlan.debug: 0 -> 1
root at g1-254:/tmp # wlandebug +scan
wlandebug: sysctl-get(net.wlan.0.debug): No such file or directory
root at g1-254:/tmp # wlandebug +scan[15Dsysctl net.wlan.debug=1[1 at 0[1 at .
sysctl: unknown oid 'net.wlan.0.debug': No such file or directory
root at g1-254:/tmp # service netif start iwn0
Starting wpa_supplicant.
Starting Network: iwn0.
iwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:24:e8:b5:85:46
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
status: associated
root at g1-254:/tmp # ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:24:e8:b5:85:46
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
status: associated
ssid lmdhw-net channel 1 (2412 MHz 11g ht/20) bssid 04:18:d6:22:22:1f
country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
AES-CCM 2:128-bit txpower 15 bmiss 10 scanvalid 60 bgscan
bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 64 protmode CTS
ampdulimit 64k ampdudensity 8 -amsdutx amsdurx shortgi wme
roaming MANUAL
groups: wlan
root at g1-254:/tmp # ^Dexit
Script done on Thu Mar 26 04:41:05 2015
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20150326/bfbda197/attachment.sig>
More information about the freebsd-net
mailing list