Date: Sun, 8 Dec 2013 11:13:57 +0800 From: =?GB2312?B?x8ez/g==?= <honestqiao@gmail.com> To: Adrian Chadd <adrian@freebsd.org> Cc: "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org>, Current FreeBSD <freebsd-current@freebsd.org> Subject: Re: Intel Centrino Wireless-N 1000 can't connect to AP Message-ID: <CAMAY4VipBK-08p=gfpV31dCB%2B9Lz_b-k_FUD-G3ojOxcMFcKmg@mail.gmail.com> In-Reply-To: <CAJ-Vmo=P2O_M876mbitdgC-e5byJZM56R5XSNYoE5K32SH0bUA@mail.gmail.com> References: <CAMAY4VgKjxdrNZHiciTr1keYZVFWkO65u=hkgxtxAmAeHKdiQA@mail.gmail.com> <CAJ-Vmo=P2O_M876mbitdgC-e5byJZM56R5XSNYoE5K32SH0bUA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@x201i.honestqiao.com:/usr/obj/usr/src/sys/HonestQiaoKernel11 amd64 # pciconf -lv iwn0@pci0:2:0:0: class=3D0x028000 card=3D0x13158086 chip=3D0x0084808= 6 rev=3D0x00 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D 'Centrino Wireless-N 1000 [Condor Peak]' class =3D network # sysctl dev.iwn.0.debug=3D0x13ff iwn_rx_phy: received PHY stats iwn_notif_intr: cur=3D19; 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=3D0x10000000 reg2=3D0x00000000 interrupt reg1=3D0x80000000 reg2=3D0x00000000 iwn_notif_intr: cur=3D20; qid 9 idx 112 flags 0 type 192(RX_PHY) len 68 iwn_rx_phy: received PHY stats iwn_notif_intr: cur=3D21; 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=3D0x10000000 reg2=3D0x00000000 interrupt reg1=3D0x80000000 reg2=3D0x00000000 iwn_notif_intr: cur=3D22; qid 9 idx 115 flags 0 type 192(RX_PHY) len 68 iwn_rx_phy: received PHY stats iwn_notif_intr: cur=3D23; 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=3D0x10000000 reg2=3D0x00000000 wlan configure in /etc/rc.conf: ifconfig_iwn0=3D"ether f0:de:f1:52:cf:17" wlans_iwn0=3D"wlan0" ifconfig_wlan0=3D"mode 11n WPA DHCP" #wlandebug_wlan0=3D"scan+auth+assoc" wpa_supplicant_program=3D"/usr/sbin/wpa_supplicant" wpa_supplicant_flags=3D"-s" # Extra flags to pass to wpa_supplicant wpa_supplicant_conf_file=3D"/etc/wpa_supplicant.conf" #background_dhclient=3D"YES" 2. When I run /etc/rc.d/netif restart, I see wlan0 connect to My AP. #ifconfig iwn0: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290 ether f0:de:f1:52:cf:17 nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL> media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: associated wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15= 00 ether f0:de:f1:52:cf:17 inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 nd6 options=3D29<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:d= 4 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 amsdu= rx shortgi wme roaming MANUAL But after amoment, it's disconnect. #ifconfig iwn0: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290 ether f0:de:f1:52:cf:17 nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL> media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: associated wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15= 00 ether f0:de:f1:52:cf:17 inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 nd6 options=3D29<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 amsdur= x 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=3D'OpenBSD' freq=3D2462 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 =3D "SYSASSERT" (0x00000005) Dec 8 11:11:43 x201i kernel: program counter =3D 0x00018DBC Dec 8 11:11:43 x201i kernel: source line =3D 0x00000032 Dec 8 11:11:43 x201i kernel: error data =3D 0x0000000100000000 Dec 8 11:11:43 x201i kernel: branch link =3D 0x00018D6E00018D6E Dec 8 11:11:43 x201i kernel: interrupt link =3D 0x0000082600000000 Dec 8 11:11:43 x201i kernel: time =3D 1876630549 Dec 8 11:11:43 x201i kernel: driver status: Dec 8 11:11:43 x201i kernel: tx ring 0: qid=3D0 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 1: qid=3D1 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 2: qid=3D2 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 3: qid=3D3 cur=3D2 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 4: qid=3D4 cur=3D57 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 5: qid=3D5 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 6: qid=3D6 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 7: qid=3D7 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 8: qid=3D8 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 9: qid=3D9 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 10: qid=3D10 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 11: qid=3D11 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 12: qid=3D12 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 13: qid=3D13 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 14: qid=3D14 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 15: qid=3D15 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 16: qid=3D16 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 17: qid=3D17 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 18: qid=3D18 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: tx ring 19: qid=3D19 cur=3D0 queued=3D0 Dec 8 11:11:43 x201i kernel: rx ring: cur=3D15 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=3D8c:21:0a:43:ef:d4 reason=3D3 locally_generated=3D1 Dec 8 11:11:53 x201i wpa_supplicant[10682]: ioctl[SIOCS80211, op=3D20, val=3D0, arg_len=3D7]: Can't assign requested address Dec 8 11:11:54 x201i wpa_supplicant[10682]: ioctl[SIOCS80211, op=3D103, val=3D0, arg_len=3D128]: Device not configured Dec 8 11:11:54 x201i wpa_supplicant[10682]: wlan0: Failed to initiate AP s= can Dec 8 11:11:55 x201i dhclient[10805]: send_packet: Invalid argument Dec 8 11:11:55 x201i wpa_supplicant[10682]: ioctl[SIOCS80211, op=3D103, val=3D0, arg_len=3D128]: Device not configured Dec 8 11:11:55 x201i wpa_supplicant[10682]: wlan0: Failed to initiate AP s= can 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@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=3D0x13ff > > (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, =C7=C7=B3=FE <honestqiao@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 11Mbp= s >> Dec 7 08:02:00 x201i kernel: iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbp= s >> 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 =3D "SYSASSERT" (0x0000000= 5) >> Dec 7 08:02:00 x201i kernel: program counter =3D 0x00018DBC >> Dec 7 08:02:00 x201i kernel: source line =3D 0x00000032 >> Dec 7 08:02:00 x201i kernel: error data =3D 0x0000000100000000 >> Dec 7 08:02:00 x201i kernel: branch link =3D 0x00018D6E00018D6E >> Dec 7 08:02:00 x201i kernel: interrupt link =3D 0x0000082600000000 >> Dec 7 08:02:00 x201i kernel: time =3D 1538064582 >> Dec 7 08:02:00 x201i kernel: driver status: >> Dec 7 08:02:00 x201i kernel: tx ring 0: qid=3D0 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 1: qid=3D1 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 2: qid=3D2 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 3: qid=3D3 cur=3D2 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 4: qid=3D4 cur=3D57 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 5: qid=3D5 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 6: qid=3D6 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 7: qid=3D7 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 8: qid=3D8 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 9: qid=3D9 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 10: qid=3D10 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 11: qid=3D11 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 12: qid=3D12 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 13: qid=3D13 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 14: qid=3D14 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 15: qid=3D15 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 16: qid=3D16 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 17: qid=3D17 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 18: qid=3D18 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: tx ring 19: qid=3D19 cur=3D0 queued=3D0-= - >> Dec 7 08:02:00 x201i kernel: rx ring: cur=3D29 >> ...... >> Dec 7 08:02:01 x201i wpa_supplicant[667]: ioctl[SIOCS80211, op=3D103, >> val=3D0, >> arg_len=3D128]: 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@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to >> "freebsd-current-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMAY4VipBK-08p=gfpV31dCB%2B9Lz_b-k_FUD-G3ojOxcMFcKmg>