Re: Intel Centrino Wireless-N 1000 can't connect to AP

From: Adrian Chadd <adrian_at_freebsd.org>
Date: Sat, 7 Dec 2013 19:28:20 -0800
Hi.

Can you paste the whole dmesg log from the time you start WPA supplicant up
to when it crashes? I'd like to see what commands lead to the firmware
crash.

Thanks!

Adrian
On Dec 7, 2013 7:13 PM, "乔楚" <honestqiao_at_gmail.com> wrote:

> 1.
> # uname -a
> FreeBSD x201i.honestqiao.com 11.0-CURRENT FreeBSD 11.0-CURRENT #2
> r259057M: Sun Dec  8 08:27:41 CST 2013
> root_at_x201i.honestqiao.com:/usr/obj/usr/src/sys/HonestQiaoKernel11
> amd64
>
> # pciconf -lv
> iwn0_at_pci0:2:0:0:        class=0x028000 card=0x13158086 chip=0x00848086
> rev=0x00 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'Centrino Wireless-N 1000 [Condor Peak]'
>     class      = network
>
> # sysctl dev.iwn.0.debug=0x13ff
> iwn_rx_phy: received PHY stats
> iwn_notif_intr: cur=19; qid 9 idx 111 flags 0 type 193(MPDU_RX_DONE) len
> 216
> iwn5000_get_rssi: agc 63 rssi 4114 5655 0 result -84
> interrupt reg1=0x10000000 reg2=0x00000000
> interrupt reg1=0x80000000 reg2=0x00000000
> iwn_notif_intr: cur=20; qid 9 idx 112 flags 0 type 192(RX_PHY) len 68
> iwn_rx_phy: received PHY stats
> iwn_notif_intr: cur=21; qid 9 idx 113 flags 0 type 193(MPDU_RX_DONE) len
> 216
> iwn5000_get_rssi: agc 62 rssi 4370 5143 0 result -83
> interrupt reg1=0x10000000 reg2=0x00000000
> interrupt reg1=0x80000000 reg2=0x00000000
> iwn_notif_intr: cur=22; qid 9 idx 115 flags 0 type 192(RX_PHY) len 68
> iwn_rx_phy: received PHY stats
> iwn_notif_intr: cur=23; qid 9 idx 116 flags 0 type 193(MPDU_RX_DONE) len
> 288
> iwn5000_get_rssi: agc 63 rssi 4371 3343 0 result -88
> interrupt reg1=0x10000000 reg2=0x00000000
>
> wlan configure in /etc/rc.conf:
> ifconfig_iwn0="ether f0:de:f1:52:cf:17"
> wlans_iwn0="wlan0"
> ifconfig_wlan0="mode 11n WPA DHCP"
> #wlandebug_wlan0="scan+auth+assoc"
> wpa_supplicant_program="/usr/sbin/wpa_supplicant"
> wpa_supplicant_flags="-s"       # Extra flags to pass to wpa_supplicant
> wpa_supplicant_conf_file="/etc/wpa_supplicant.conf"
> #background_dhclient="YES"
>
> 2.
> When I run /etc/rc.d/netif restart, I see wlan0 connect to My AP.
> #ifconfig
> iwn0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
>         ether f0:de:f1:52:cf:17
>         nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
>         media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng
>         status: associated
> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>         ether f0:de:f1:52:cf:17
>         inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
>         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>         media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
>         status: associated
>         ssid OpenBSD channel 11 (2462 MHz 11g ht/20) bssid
> 8c:21:0a:43:ef:d4
>         country US authmode WPA2/802.11i privacy ON deftxkey UNDEF txpower
> 14
>         bmiss 10 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250
>         roam:rssi 7 roam:rate 64 protmode CTS ampdulimit 64k -amsdutx
> amsdurx
>         shortgi wme roaming MANUAL
>
> But after amoment, it's disconnect.
> #ifconfig
> iwn0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
>         ether f0:de:f1:52:cf:17
>         nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
>         media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng
>         status: associated
> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>         ether f0:de:f1:52:cf:17
>         inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
>         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>         media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
>         status: no carrier
>         ssid "" channel 11 (2462 MHz 11g ht/20)
>         country US authmode WPA1+WPA2/802.11i privacy ON deftxkey UNDEF
>         txpower 14 bmiss 10 scanvalid 60 bgscan bgscanintvl 300 bgscanidle
> 250
>         roam:rssi 7 roam:rate 64 protmode CTS ampdulimit 8k -amsdutx
> amsdurx
>         shortgi wme roaming MANUAL
>
> 3.
> Remove wlan configure in /etc/rc.conf, and recreate wlan0 interface.
> #ifconfig wlan0 destroy
> #ifconfig wlan0 create wlandev iwn0
> Dec  8 11:04:49 x201i kernel: wlan0: Ethernet address: f0:de:f1:52:cf:17
> # ifconfig wlan0 up scan
> SSID/MESH ID    BSSID              CHAN RATE   S:N     INT CAPS
> OpenBSD         8c:21:0a:43:ef:d4   11   54M -68:-95  100 EPS  RSN
> HTCAP WME ATH WPS
>
>
> 4.
> Reback wlan configure in /etc/rc.conf,  and recreate wlan0 interface.
> Dec  8 11:11:42 x201i kernel: wlan0: Ethernet address: f0:de:f1:52:cf:17
> Dec  8 11:11:42 x201i wpa_supplicant[10681]: Successfully initialized
> wpa_supplicant
> Dec  8 11:11:43 x201i wpa_supplicant[10682]: wlan0: Trying to
> associate with 8c:21:0a:43:ef:d4 (SSID='OpenBSD' freq=2462 MHz)
> Dec  8 11:11:43 x201i kernel: wlan0: link state changed to UP
> Dec  8 11:11:43 x201i wpa_supplicant[10682]: wlan0: Associated with
> 8c:21:0a:43:ef:d4
> Dec  8 11:11:43 x201i kernel: iwn0: iwn_intr: fatal firmware error
> Dec  8 11:11:43 x201i kernel: firmware error log:
> Dec  8 11:11:43 x201i kernel: error type      = "SYSASSERT" (0x00000005)
> Dec  8 11:11:43 x201i kernel: program counter = 0x00018DBC
> Dec  8 11:11:43 x201i kernel: source line     = 0x00000032
> Dec  8 11:11:43 x201i kernel: error data      = 0x0000000100000000
> Dec  8 11:11:43 x201i kernel: branch link     = 0x00018D6E00018D6E
> Dec  8 11:11:43 x201i kernel: interrupt link  = 0x0000082600000000
> Dec  8 11:11:43 x201i kernel: time            = 1876630549
> Dec  8 11:11:43 x201i kernel: driver status:
> Dec  8 11:11:43 x201i kernel: tx ring  0: qid=0  cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring  1: qid=1  cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring  2: qid=2  cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring  3: qid=3  cur=2   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring  4: qid=4  cur=57  queued=0
> Dec  8 11:11:43 x201i kernel: tx ring  5: qid=5  cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring  6: qid=6  cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring  7: qid=7  cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring  8: qid=8  cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring  9: qid=9  cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring 10: qid=10 cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring 11: qid=11 cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring 12: qid=12 cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring 13: qid=13 cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring 14: qid=14 cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring 15: qid=15 cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring 16: qid=16 cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring 17: qid=17 cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring 18: qid=18 cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: tx ring 19: qid=19 cur=0   queued=0
> Dec  8 11:11:43 x201i kernel: rx ring: cur=15
> Dec  8 11:11:43 x201i dhclient[10805]: send_packet: Invalid argument
> Dec  8 11:11:49 x201i dhclient[10805]: send_packet: Invalid argument
> Dec  8 11:11:53 x201i wpa_supplicant[10682]: wlan0: Authentication
> with 8c:21:0a:43:ef:d4 timed out.
> Dec  8 11:11:53 x201i kernel: wlan0: link state changed to DOWN
> Dec  8 11:11:53 x201i wpa_supplicant[10682]: wlan0:
> CTRL-EVENT-DISCONNECTED bssid=8c:21:0a:43:ef:d4 reason=3
> locally_generated=1
> Dec  8 11:11:53 x201i wpa_supplicant[10682]: ioctl[SIOCS80211, op=20,
> val=0, arg_len=7]: Can't assign requested address
> Dec  8 11:11:54 x201i wpa_supplicant[10682]: ioctl[SIOCS80211, op=103,
> val=0, arg_len=128]: Device not configured
> Dec  8 11:11:54 x201i wpa_supplicant[10682]: wlan0: Failed to initiate AP
> scan
> Dec  8 11:11:55 x201i dhclient[10805]: send_packet: Invalid argument
> Dec  8 11:11:55 x201i wpa_supplicant[10682]: ioctl[SIOCS80211, op=103,
> val=0, arg_len=128]: Device not configured
> Dec  8 11:11:55 x201i wpa_supplicant[10682]: wlan0: Failed to initiate AP
> scan
>
>
> 5.
> I could not quickly return to 10b3 or -head.
> My root fs is ZFS. After upgraded to -current, I have executed zfs upgrade.
> When I downgrade to 10b3, boot panic at mount root fs.
>
> I'll try reinstall world and kernel of 10b3 or -head.
> But I am a little worried that if it fails, then back to -current is
> too much trouble.
>
>
> 2013/12/8, Adrian Chadd <adrian_at_freebsd.org>:
> > A lot of work has gone on in -current with the iwn driver. It's quite
> > possible that the recent changes has broken things.
> >
> > Would you please do this:
> >
> > * recompile with IWN_DEBUG defined in your kernel cofig
> > * sysctl dev.iwn.0.debug=0x13ff
> >
> > (That turns on command debugging, tx/rx debugging, interrupt debugging
> > and calibration debugging.)
> >
> > If you do that for both 10b3 and -head I can compare the two.
> >
> > Also, please post the output of pciconf -lv. I'd like to see which
> > centrino-100 you're using.
> >
> > I thought I had tested it out on the Centrino 100 (I have a couple
> > here) but there may be more variants that I haven't yet tested on.
> >
> > Thanks!
> >
> >
> >
> > -a
> >
> >
> > On 7 December 2013 05:34, 乔楚 <honestqiao_at_gmail.com> wrote:
> >> Today ,I upgrade my freebsd from 10-beta4 to current.
> >> Now, my freebsd can't connect to wireless AP. Wireless LAN strike.
> >>
> >> iwn0 in /var/log/message:
> >> Dec  7 08:02:00 x201i kernel: iwn0: <Intel Centrino Wireless-N 1000> mem
> >> 0xf2400000-0xf2401fff irq 16 at device 0.0 on pci2
> >>
> >> Dec  7 08:02:00 x201i kernel: iwn0: attempting to allocate 1 MSI vectors
> >> (1
> >> supported)
> >> Dec  7 08:02:00 x201i kernel: msi: routing MSI IRQ 266 to local APIC 0
> >> vector 62
> >> Dec  7 08:02:00 x201i kernel: iwn0: using IRQ 266 for MSI
> >> Dec  7 08:02:00 x201i kernel: iwn0: MIMO 1T2R, BGS, address
> >> 8c:a9:82:5a:41:58
> >> Dec  7 08:02:00 x201i kernel: iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps
> 11Mbps
> >> Dec  7 08:02:00 x201i kernel: iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps
> 11Mbps
> >> 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
> >> Dec  7 08:02:00 x201i kernel: iwn0: 1T2R
> >> Dec  7 08:02:00 x201i kernel: iwn0: 11ng MCS 20MHz
> >> Dec  7 08:02:00 x201i kernel: iwn0: MCS 0-7: 6.5Mbps - 65Mbps
> >> Dec  7 08:02:00 x201i kernel: iwn0: 11ng MCS 20MHz SGI
> >> Dec  7 08:02:00 x201i kernel: iwn0: MCS 0-7: 7Mbps - 72Mbps
> >> Dec  7 08:02:00 x201i kernel: iwn0: 11ng MCS 40MHz:
> >> Dec  7 08:02:00 x201i kernel: iwn0: MCS 0-7: 13.5Mbps - 135Mbps
> >> Dec  7 08:02:00 x201i kernel: iwn0: 11ng MCS 40MHz SGI:
> >> Dec  7 08:02:00 x201i kernel: iwn0: MCS 0-7: 15Mbps - 150Mbps
> >> ......
> >> Dec  7 08:02:00 x201i kernel: wlan0: Ethernet address: f0:de:f1:52:cf:16
> >> Dec  7 08:02:00 x201i kernel: iwn0: iwn_intr: fatal firmware error
> >> Dec  7 08:02:00 x201i kernel: firmware error log:
> >> Dec  7 08:02:00 x201i kernel: error type      = "SYSASSERT" (0x00000005)
> >> Dec  7 08:02:00 x201i kernel: program counter = 0x00018DBC
> >> Dec  7 08:02:00 x201i kernel: source line     = 0x00000032
> >> Dec  7 08:02:00 x201i kernel: error data      = 0x0000000100000000
> >> Dec  7 08:02:00 x201i kernel: branch link     = 0x00018D6E00018D6E
> >> Dec  7 08:02:00 x201i kernel: interrupt link  = 0x0000082600000000
> >> Dec  7 08:02:00 x201i kernel: time            = 1538064582
> >> Dec  7 08:02:00 x201i kernel: driver status:
> >> Dec  7 08:02:00 x201i kernel: tx ring  0: qid=0  cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring  1: qid=1  cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring  2: qid=2  cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring  3: qid=3  cur=2   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring  4: qid=4  cur=57  queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring  5: qid=5  cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring  6: qid=6  cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring  7: qid=7  cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring  8: qid=8  cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring  9: qid=9  cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring 10: qid=10 cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring 11: qid=11 cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring 12: qid=12 cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring 13: qid=13 cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring 14: qid=14 cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring 15: qid=15 cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring 16: qid=16 cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring 17: qid=17 cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring 18: qid=18 cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: tx ring 19: qid=19 cur=0   queued=0--
> >> Dec  7 08:02:00 x201i kernel: rx ring: cur=29
> >> ......
> >> Dec  7 08:02:01 x201i wpa_supplicant[667]: ioctl[SIOCS80211, op=103,
> >> val=0,
> >> arg_len=128]: Device not configured
> >> Dec  7 08:02:01 x201i wpa_supplicant[667]: wlan0: Failed to initiate AP
> >> scan
> >>
> >> I do not know where the problem is?
> >> If necessary, I can tie debugging.
> >> _______________________________________________
> >> freebsd-current_at_freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> >> To unsubscribe, send any mail to
> >> "freebsd-current-unsubscribe_at_freebsd.org"
> >
>
Received on Sun Dec 08 2013 - 02:28:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:45 UTC