Re: iwi, hidden SSID and wpa_supplicant problem
Hi, Reporting back after a few days with the patch. The connect and switching between accesspoints work but there are still a few down/up events, about once every two hours but that may have somthing to do with the dhcp cleint. At the moment, the number of lease renewals match the number of link down/up events. I leave this to the clever folks. When running from the em interface, I do not see any down/up at all and thet net uses the same DCHP server etc. iwi0: link state changed to DOWN iwi0: link state changed to UP iwi0: link state changed to DOWN iwi0: link state changed to UP iwi0: link state changed to DOWN iwi0: link state changed to UP iwi0: link state changed to DOWN iwi0: link state changed to UP iwi0: link state changed to DOWN iwi0: scan stuck iwi0: link state changed to UP /glz --On Tuesday, October 10, 2006 05:04:46 +0200 Max Laier [EMAIL PROTECTED] wrote: On Monday 09 October 2006 20:26, Max Laier wrote: On Monday 09 October 2006 19:53, Andrew N. Below wrote: Hi. [..] You can try using ap_scan=2 or whatever it is in the wpa_supplicant.conf file. This causes wpa_supplicant to use directed broadcasts msgs to each ap listed in the file. In my case setting ap_scan to 2 doesn't help. BTW, I got successfull connection some time ago when I start to use /etc/rc.d/netif start iwi0 instead of manual running of wpa_supplicant: defanbook# ifconfig iwi0 iwi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet 213.189.198.75 netmask 0xfff0 broadcast 213.189.198.79 ether 00:12:f0:3d:cd:58 media: IEEE 802.11 Wireless Ethernet autoselect mode 11b (DS/11Mbps) status: associated ssid ZENON-RADIO channel 11 bssid 00:07:0e:b8:d8:ee authmode WPA privacy ON deftxkey UNDEF TKIP 2:128-bit TKIP 3:128-bit txpowmax 100 bmiss 10 protmode CTS roaming MANUAL bintval 100 I wrote bssid value to /etc/wpa_supplicant.conf and run /etc/rc.d/netif. Then I drop connection (netif stop iwi0) and tried to start it again. I got associated state in 5-6 minutes. In rc.conf I have: ifconfig_iwi0=ssid MY-SSID channel 11 WPA How can I get -dd output from wpa_supplicant started with netif? It could be interesting. No idea, but a bit more stress testing did reveal a similar problem here. After I associated with the AP w/ hidden SSID I changed the channel via webinterface. The disconnect resulted in the exact problem you were having. Only stopping and restarting wpa_supplicant fixed the issue and I got associated on the new channel. Not sure what happens there yet, but something seems to get stuck in an undefined state. Could you try the attached - untested - patch? It seems - from looking at the linux driver - that we have to remind the firmware of the ESSID before doing a directed scan. That explains why it would sometimes work (whenever we are coming straight from iwi_config) and sometimes not. Let me know if that improves things for you. Thanks. -- /\ Best regards, | [EMAIL PROTECTED] \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | [EMAIL PROTECTED] / \ ASCII Ribbon Campaign | Against HTML Mail and News -- ... the future isMobile Goran Lowkrantz [EMAIL PROTECTED] System Architect, isMobile, Aurorum 2, S-977 75 Lule¥, Sweden Phone: +46(0)920-75559 Mobile: +46(0)70-587 87 82 Fax: +46(0)70-615 87 82 http://www.ismobile.com ... ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: iwi, hidden SSID and wpa_supplicant problem
Hi Max. On Tue, 10 Oct 2006 05:04:46 +0200 Max Laier [EMAIL PROTECTED] wrote: Could you try the attached - untested - patch? It seems - from looking at the linux driver - that we have to remind the firmware of the ESSID before doing a directed scan. That explains why it would sometimes work (whenever we are coming straight from iwi_config) and sometimes not. Let me know if that improves things for you. Thanks. I just tested wireless connection at home with Linksys WAG54G ADSL WiFi router. All works fine with your patch. I plan to repeat test without the patch later. I attached iwi debug output. -- Andrew N. Below Zenon N.S.P., http://www.zenon.net ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
iwi, hidden SSID and wpa_supplicant problem
Hi. I have an Asus V6V (V6800) laptop with Intel wireless adapter: iwi0: Intel(R) PRO/Wireless 2200BG and FreeBSD installed: defanbook# uname -v FreeBSD 6.2-PRERELEASE #3: Mon Oct 9 17:40:59 UTC 2006 I want to connect to access point (cisco 350) with hidden (not broadcasted) SSID using WPA/TKIP authentication but still got no success. Here is my wpa_supplicant.conf: === ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 eapol_version=1 ap_scan=1 fast_reauth=1 network={ ssid=MY-SSID scan_ssid=1 key_mgmt=WPA-PSK proto=WPA pairwise=TKIP group=TKIP psk=PASSPHRASE phase2=auth=MSCHAPV2 } === Here is wpa_supplicant output: defanbook# wpa_supplicant -ddKt -i iwi0 -c /etc/wpa_supplicant.conf Oct 09 18:24:41.247941: Initializing interface 'iwi0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' Oct 09 18:24:41.248083: Configuration file '/etc/wpa_supplicant.conf' - '/etc/wpa_supplicant.conf' Oct 09 18:24:41.248094: Reading configuration file '/etc/wpa_supplicant.conf' Oct 09 18:24:41.248129: ctrl_interface='/var/run/wpa_supplicant' Oct 09 18:24:41.248473: ctrl_interface_group=0 Oct 09 18:24:41.248490: eapol_version=1 Oct 09 18:24:41.248497: ap_scan=1 Oct 09 18:24:41.248503: fast_reauth=1 Oct 09 18:24:41.248510: Line: 7 - start of a new network block Oct 09 18:24:41.248520: ssid - hexdump_ascii(len=11): [..] Oct 09 18:24:41.248535: scan_ssid=1 (0x1) Oct 09 18:24:41.248552: key_mgmt: 0x2 Oct 09 18:24:41.248559: proto: 0x1 Oct 09 18:24:41.248567: pairwise: 0x8 Oct 09 18:24:41.248573: group: 0x8 Oct 09 18:24:41.248586: PSK (ASCII passphrase) - hexdump_ascii(len=9): [..] Oct 09 18:24:41.248601: phase2 - hexdump_ascii(len=13): 61 75 74 68 3d 4d 53 43 48 41 50 56 32auth=MSCHAPV2 Oct 09 18:24:41.269142: PSK (from passphrase) - hexdump(len=32): c4 47 52 5b 8c 7d 47 21 1a bc 2f 75 dd 1d 69 c6 aa c8 33 02 23 70 e1 0a e3 6d be 5b 1f 1f 92 d9 Oct 09 18:24:41.269174: Priority group 0 Oct 09 18:24:41.269181:id=0 ssid='MY-SSID' Oct 09 18:24:41.269190: Initializing interface (2) 'iwi0' Oct 09 18:24:41.271574: EAPOL: SUPP_PAE entering state DISCONNECTED Oct 09 18:24:41.271584: EAPOL: KEY_RX entering state NO_KEY_RECEIVE Oct 09 18:24:41.271590: EAPOL: SUPP_BE entering state INITIALIZE Oct 09 18:24:41.271597: EAP: EAP entering state DISABLED Oct 09 18:24:41.271636: EAPOL: External notification - portEnabled=0 Oct 09 18:24:41.271657: EAPOL: External notification - portValid=0 Oct 09 18:24:41.271918: Own MAC address: 00:12:f0:3d:cd:58 Oct 09 18:24:41.271929: wpa_driver_bsd_set_wpa: enabled=1 Oct 09 18:24:41.271936: wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1 Oct 09 18:24:41.271946: wpa_driver_bsd_del_key: keyidx=0 Oct 09 18:24:41.271954: wpa_driver_bsd_del_key: keyidx=1 Oct 09 18:24:41.271962: wpa_driver_bsd_del_key: keyidx=2 Oct 09 18:24:41.271969: wpa_driver_bsd_del_key: keyidx=3 Oct 09 18:24:41.271977: wpa_driver_bsd_set_countermeasures: enabled=0 Oct 09 18:24:41.271984: wpa_driver_bsd_set_drop_unencrypted: enabled=1 Oct 09 18:24:41.271994: Setting scan request: 0 sec 10 usec Oct 09 18:24:41.272118: Added interface iwi0 Oct 09 18:24:41.372226: State: DISCONNECTED - SCANNING Oct 09 18:24:41.372235: Starting AP scan (specific SSID) Oct 09 18:24:41.372242: Scan SSID - hexdump_ascii(len=11): [MY-SSID] Oct 09 18:24:43.021948: Received 0 bytes of scan results (4 BSSes) Oct 09 18:24:43.021982: Scan results: 4 Oct 09 18:24:43.021992: Selecting BSS from priority group 0 Oct 09 18:24:43.021998: 0: 00:07:0e:b8:d8:ee ssid='' wpa_ie_len=26 rsn_ie_len=0 caps=0x31 Oct 09 18:24:43.022008:skip - SSID mismatch Oct 09 18:24:43.022014: 1: 02:3f:2d:21:0e:c2 ssid='ANY' wpa_ie_len=0 rsn_ie_len=0 caps=0x2 Oct 09 18:24:43.022023:skip - no WPA/RSN IE Oct 09 18:24:43.022029: 2: 00:60:b3:d4:0d:76 ssid='ADSL_Wireless' wpa_ie_len=0 rsn_ie_len=0 caps=0x61 Oct 09 18:24:43.022038:skip - no WPA/RSN IE Oct 09 18:24:43.022044: 3: 00:14:6c:55:24:4a ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x11 Oct 09 18:24:43.022052:skip - no WPA/RSN IE Oct 09 18:24:43.022058: No suitable AP found. Oct 09 18:24:43.022066: Setting scan request: 5 sec 0 usec Oct 09 18:24:48.023226: Starting AP scan (broadcast SSID) Oct 09 18:24:49.501060: Received 0 bytes of scan results (2 BSSes) Oct 09 18:24:49.501070: Scan results: 2 Oct 09 18:24:49.501077: Selecting BSS from priority group 0 Oct 09 18:24:49.501083: 0: 00:07:0e:b8:d8:ee ssid='' wpa_ie_len=26 rsn_ie_len=0 caps=0x31 Oct 09 18:24:49.501092:skip - SSID mismatch Oct 09 18:24:49.501098: 1: 00:14:6c:55:24:4a ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x11 Oct 09 18:24:49.501106:skip - no WPA/RSN IE Oct 09 18:24:49.501112: No suitable AP found. Oct 09 18:24:49.501118: Setting scan request: 5 sec 0 usec ^COct 09 18:24:52.082178: CTRL-EVENT-TERMINATING - signal 2 received Oct 09 18:24:52.082190: Removing interface iwi0 Oct 09 18:24:52.082197: State:
Re: iwi, hidden SSID and wpa_supplicant problem
I have the same problem with an IBM R50 laptop and the iwi driver. From dmesg iwi0: Intel(R) PRO/Wireless 2915ABG mem 0xc0214000-0xc0214fff irq 9 at device 2.0 on pci2 I have never been able to connect to a hidden SSID without giving the BSSID. If I give the BSSID I can get connection but it takes a long time and is not reliable as the driver looses connection and failes to re-connect after a while. When connected to an AP that broadcasts the SSID I still lose connection after a couple of hours and have to stop and restart the connection. Here is the sequiece from the console: iwi0: link state changed to DOWN iwi0: scan stuck iwi0: link state changed to UP iwi0: link state changed to DOWN iwi0: link state changed to UP iwi0: firmware error iwi0: link state changed to DOWN iwi0: scan stuck iwi0: link state changed to UP iwi0: link state changed to DOWN iwi0: link state changed to UP iwi0: firmware error iwi0: link state changed to DOWN iwi0: scan stuck iwi0: could not allocate firmware DMA memory # /etc/rc.d/netif stop iwi0 Stopping network:Stopping wpa_supplicant. Waiting for PIDS: 324. iwi0. # /etc/rc.d/netif start iwi0 Starting wpa_supplicant. DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 interval 7 iwi0: link state changed to UP DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 interval 7 DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 interval 19 DHCPOFFER from 10.255.253.253 DHCPREQUEST on iwi0 to 255.255.255.255 port 67 DHCPACK from 10.255.253.253 bound to 10.255.253.200 -- renewal in 300 seconds. iwi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet6 fe80::216:6fff:fe8b:a21%iwi0 prefixlen 64 scopeid 0x2 inet 10.255.253.200 netmask 0xff00 broadcast 10.255.253.255 ether 00:16:6f:8b:0a:21 media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps) status: associated ssid SSID channel 11 bssid xx:xx:xx:xx:xx:xx authmode WPA privacy ON deftxkey UNDEF TKIP 2:128-bit txpowmax 100 bmiss 10 protmode CTS roaming MANUAL bintval 100 The first couple of times it recovers on it self but after receiving iwi0: could not allocate firmware DMA memory I always have to restart the connection manually. The kernel is built with option INVARIANTS and option INVARIANT_SUPPORT. uname -a FreeBSD viglaf 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #62: Thu Oct 5 10:35:57 CEST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/VIGLAF i386 pkg_info -Ix iwi iwi-firmware-kmod-3.0_1 Intel PRO/Wireless 2200 Firmware Kernel Module dmesg attached. /glz --On Monday, October 09, 2006 18:35:40 +0400 Andrew N. Below [EMAIL PROTECTED] wrote: Hi. I have an Asus V6V (V6800) laptop with Intel wireless adapter: iwi0: Intel(R) PRO/Wireless 2200BG and FreeBSD installed: defanbook# uname -v FreeBSD 6.2-PRERELEASE #3: Mon Oct 9 17:40:59 UTC 2006 I want to connect to access point (cisco 350) with hidden (not broadcasted) SSID using WPA/TKIP authentication but still got no success. Here is my wpa_supplicant.conf: === ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 eapol_version=1 ap_scan=1 fast_reauth=1 network={ ssid=MY-SSID scan_ssid=1 key_mgmt=WPA-PSK proto=WPA pairwise=TKIP group=TKIP psk=PASSPHRASE phase2=auth=MSCHAPV2 } === Here is wpa_supplicant output: defanbook# wpa_supplicant -ddKt -i iwi0 -c /etc/wpa_supplicant.conf Oct 09 18:24:41.247941: Initializing interface 'iwi0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' Oct 09 18:24:41.248083: Configuration file '/etc/wpa_supplicant.conf' - '/etc/wpa_supplicant.conf' Oct 09 18:24:41.248094: Reading configuration file '/etc/wpa_supplicant.conf' Oct 09 18:24:41.248129: ctrl_interface='/var/run/wpa_supplicant' Oct 09 18:24:41.248473: ctrl_interface_group=0 Oct 09 18:24:41.248490: eapol_version=1 Oct 09 18:24:41.248497: ap_scan=1 Oct 09 18:24:41.248503: fast_reauth=1 Oct 09 18:24:41.248510: Line: 7 - start of a new network block Oct 09 18:24:41.248520: ssid - hexdump_ascii(len=11): [..] Oct 09 18:24:41.248535: scan_ssid=1 (0x1) Oct 09 18:24:41.248552: key_mgmt: 0x2 Oct 09 18:24:41.248559: proto: 0x1 Oct 09 18:24:41.248567: pairwise: 0x8 Oct 09 18:24:41.248573: group: 0x8 Oct 09 18:24:41.248586: PSK (ASCII passphrase) - hexdump_ascii(len=9): [..] Oct 09 18:24:41.248601: phase2 - hexdump_ascii(len=13): 61 75 74 68 3d 4d 53 43 48 41 50 56 32auth=MSCHAPV2 Oct 09 18:24:41.269142: PSK (from passphrase) - hexdump(len=32): c4 47 52 5b 8c 7d 47 21 1a bc 2f 75 dd 1d 69 c6 aa c8 33 02 23 70 e1 0a e3 6d be 5b 1f 1f 92 d9 Oct 09 18:24:41.269174: Priority group 0 Oct 09 18:24:41.269181:id=0 ssid='MY-SSID' Oct 09 18:24:41.269190: Initializing interface (2) 'iwi0' Oct 09 18:24:41.271574: EAPOL: SUPP_PAE entering state DISCONNECTED Oct 09 18:24:41.271584: EAPOL: KEY_RX entering state NO_KEY_RECEIVE Oct 09 18:24:41.271590: EAPOL: SUPP_BE
Re: iwi, hidden SSID and wpa_supplicant problem
Have attacehd my output from a connect attampt agains a hidden SSID where I had BSSID in the config. And it didn't connect over the time I looked. Here is the scan for the area: SSIDBSSID CHAN RATE S:N INT CAPS OPERAX 00:0f:cb:9f:de:ee1 54M 37:0 100 ES 0x0000:0f:b5:72:a6:563 54M 52:0 100 EPS WPA 0x0000:09:5b:b8:c4:4d3 54M 61:0 100 EP WPA OPERAX 00:15:e9:60:e8:4c6 54M 53:0 100 ES jonsson200:05:5d:f2:50:2a6 11M 78:0 100 EcP and the wpa_supplicant.conf: ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel network={ ssid=LCLSSID key_mgmt=WPA-PSK scan_ssid=1 psk=iM03x123 bssid=00:0f:b5:72:a6:56 } /glz --On Monday, October 09, 2006 17:12:48 +0200 Goran Lowkrantz [EMAIL PROTECTED] wrote: I have the same problem with an IBM R50 laptop and the iwi driver. From dmesg iwi0: Intel(R) PRO/Wireless 2915ABG mem 0xc0214000-0xc0214fff irq 9 at device 2.0 on pci2 I have never been able to connect to a hidden SSID without giving the BSSID. If I give the BSSID I can get connection but it takes a long time and is not reliable as the driver looses connection and failes to re-connect after a while. When connected to an AP that broadcasts the SSID I still lose connection after a couple of hours and have to stop and restart the connection. Here is the sequiece from the console: iwi0: link state changed to DOWN iwi0: scan stuck iwi0: link state changed to UP iwi0: link state changed to DOWN iwi0: link state changed to UP iwi0: firmware error iwi0: link state changed to DOWN iwi0: scan stuck iwi0: link state changed to UP iwi0: link state changed to DOWN iwi0: link state changed to UP iwi0: firmware error iwi0: link state changed to DOWN iwi0: scan stuck iwi0: could not allocate firmware DMA memory # /etc/rc.d/netif stop iwi0 Stopping network:Stopping wpa_supplicant. Waiting for PIDS: 324. iwi0. # /etc/rc.d/netif start iwi0 Starting wpa_supplicant. DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 interval 7 iwi0: link state changed to UP DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 interval 7 DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 interval 19 DHCPOFFER from 10.255.253.253 DHCPREQUEST on iwi0 to 255.255.255.255 port 67 DHCPACK from 10.255.253.253 bound to 10.255.253.200 -- renewal in 300 seconds. iwi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet6 fe80::216:6fff:fe8b:a21%iwi0 prefixlen 64 scopeid 0x2 inet 10.255.253.200 netmask 0xff00 broadcast 10.255.253.255 ether 00:16:6f:8b:0a:21 media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps) status: associated ssid SSID channel 11 bssid xx:xx:xx:xx:xx:xx authmode WPA privacy ON deftxkey UNDEF TKIP 2:128-bit txpowmax 100 bmiss 10 protmode CTS roaming MANUAL bintval 100 The first couple of times it recovers on it self but after receiving iwi0: could not allocate firmware DMA memory I always have to restart the connection manually. The kernel is built with option INVARIANTS and option INVARIANT_SUPPORT. uname -a FreeBSD viglaf 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #62: Thu Oct 5 10:35:57 CEST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/VIGLAF i386 pkg_info -Ix iwi iwi-firmware-kmod-3.0_1 Intel PRO/Wireless 2200 Firmware Kernel Module dmesg attached. /glz --On Monday, October 09, 2006 18:35:40 +0400 Andrew N. Below [EMAIL PROTECTED] wrote: Hi. I have an Asus V6V (V6800) laptop with Intel wireless adapter: iwi0: Intel(R) PRO/Wireless 2200BG and FreeBSD installed: defanbook# uname -v FreeBSD 6.2-PRERELEASE #3: Mon Oct 9 17:40:59 UTC 2006 I want to connect to access point (cisco 350) with hidden (not broadcasted) SSID using WPA/TKIP authentication but still got no success. Here is my wpa_supplicant.conf: === ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 eapol_version=1 ap_scan=1 fast_reauth=1 network={ ssid=MY-SSID scan_ssid=1 key_mgmt=WPA-PSK proto=WPA pairwise=TKIP group=TKIP psk=PASSPHRASE phase2=auth=MSCHAPV2 } === Here is wpa_supplicant output: defanbook# wpa_supplicant -ddKt -i iwi0 -c /etc/wpa_supplicant.conf Oct 09 18:24:41.247941: Initializing interface 'iwi0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' Oct 09 18:24:41.248083: Configuration file '/etc/wpa_supplicant.conf' - '/etc/wpa_supplicant.conf' Oct 09 18:24:41.248094: Reading configuration file '/etc/wpa_supplicant.conf' Oct 09 18:24:41.248129: ctrl_interface='/var/run/wpa_supplicant' Oct 09 18:24:41.248473: ctrl_interface_group=0 Oct 09 18:24:41.248490: eapol_version=1 Oct 09 18:24:41.248497: ap_scan=1 Oct 09 18:24:41.248503: fast_reauth=1 Oct 09 18:24:41.248510: Line: 7 - start of a new network block Oct 09 18:24:41.248520: ssid - hexdump_ascii(len=11): [..] Oct 09 18:24:41.248535: scan_ssid=1
Re: iwi, hidden SSID and wpa_supplicant problem
Hi. [..] You can try using ap_scan=2 or whatever it is in the wpa_supplicant.conf file. This causes wpa_supplicant to use directed broadcasts msgs to each ap listed in the file. In my case setting ap_scan to 2 doesn't help. BTW, I got successfull connection some time ago when I start to use /etc/rc.d/netif start iwi0 instead of manual running of wpa_supplicant: defanbook# ifconfig iwi0 iwi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet 213.189.198.75 netmask 0xfff0 broadcast 213.189.198.79 ether 00:12:f0:3d:cd:58 media: IEEE 802.11 Wireless Ethernet autoselect mode 11b (DS/11Mbps) status: associated ssid ZENON-RADIO channel 11 bssid 00:07:0e:b8:d8:ee authmode WPA privacy ON deftxkey UNDEF TKIP 2:128-bit TKIP 3:128-bit txpowmax 100 bmiss 10 protmode CTS roaming MANUAL bintval 100 I wrote bssid value to /etc/wpa_supplicant.conf and run /etc/rc.d/netif. Then I drop connection (netif stop iwi0) and tried to start it again. I got associated state in 5-6 minutes. In rc.conf I have: ifconfig_iwi0=ssid MY-SSID channel 11 WPA How can I get -dd output from wpa_supplicant started with netif? It could be interesting. -- Andrew N. Below Zenon N.S.P. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: iwi, hidden SSID and wpa_supplicant problem
Hi. [..] Oct 09 18:24:43.021948: Received 0 bytes of scan results (4 BSSes) Oct 09 18:24:43.021982: Scan results: 4 Oct 09 18:24:43.021992: Selecting BSS from priority group 0 Oct 09 18:24:43.021998: 0: 00:07:0e:b8:d8:ee ssid='' wpa_ie_len=26 rsn_ie_len=0 caps=0x31 Oct 09 18:24:43.022008:skip - SSID mismatch Is any of the above the AP you are looking for? (i.e. right bssid). Yes, 00:07:0e:b8:d8:ee is. Oct 09 18:24:43.022066: Setting scan request: 5 sec 0 usec Oct 09 18:24:48.023226: Starting AP scan (broadcast SSID) Oct 09 18:24:49.501060: Received 0 bytes of scan results (2 BSSes) Oct 09 18:24:49.501070: Scan results: 2 Strange, why would a broadcast SSID scan turn up less BSSes? Can you make sure you have the dev.iwi.0.antenna sysctl set to 0? defanbook# sysctl dev.iwi dev.iwi.0.%desc: Intel(R) PRO/Wireless 2200BG dev.iwi.0.%driver: iwi dev.iwi.0.%location: slot=2 function=0 dev.iwi.0.%pnpinfo: vendor=0x8086 device=0x4220 subvendor=0x8086 subdevice=0x2701 class=0x028000 dev.iwi.0.%parent: pci3 dev.iwi.0.radio: 1 dev.iwi.0.dwell: 100 dev.iwi.0.bluetooth: 0 dev.iwi.0.antenna: 0 dev.iwi.0.softled: 1 dev.iwi.0.ledpin: 32 dev.iwi.0.ledidle: 2700 dev.iwi.0.nictype: 1 iwicontrol? That's no longer useful. If you really have defanbook# uname -v FreeBSD 6.2-PRERELEASE #3: Mon Oct 9 17:40:59 UTC 2006 you should have removed net/iwi-firmware and replaced it with net/iwi-firmware-kmod as stated in UPDATING. Of course, I installed net/iwi-firmware-kmod first. When I found information about iwicontrol utility and get it via net/iwi-firmware port. But I did not install older modules. So, iwicontrol shows incorrect stat for now? Is there any other tool to get statistic from iwi device? On another FreeBSD box with 6.1-release and same version of wpa_supplicant, but with another USB wireless device (ural) all works fine. I reproduced your setup with a Linksys-54abg and a 2915ABG running a recent RELENG_6. Works like a charm - see attached. Thanks for feedback, I'll try to play with my home Linksys WAG54G ADSL WiFi router with the same auth modes. Wireless connection in winxp on this laptop works fine too. Any ideas? If you do have firmware-iwi-kmod and things are still not working properly you should try the following: 1) Disable WPA on AP and see if you can attach w/o wpa_supplicant 2) See if you can attach w/ wpa_supplicant (key_mgmt=NONE) etc. ... to find out which part really is the culprit. Then you should set sysctl debug.iwi=5 and check console output for problems. Let me know how it goes. OK, I'll do these tests ASAP. As you can see in my previous reply, I got successfull connection, but still have strange things while reconnecting, and sometimes it takes a lot of time. :( Thanks for your feedback, anyway. -- Andrew N. Below Zenon N.S.P. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: iwi, hidden SSID and wpa_supplicant problem
On Monday 09 October 2006 19:53, Andrew N. Below wrote: Hi. [..] You can try using ap_scan=2 or whatever it is in the wpa_supplicant.conf file. This causes wpa_supplicant to use directed broadcasts msgs to each ap listed in the file. In my case setting ap_scan to 2 doesn't help. BTW, I got successfull connection some time ago when I start to use /etc/rc.d/netif start iwi0 instead of manual running of wpa_supplicant: defanbook# ifconfig iwi0 iwi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet 213.189.198.75 netmask 0xfff0 broadcast 213.189.198.79 ether 00:12:f0:3d:cd:58 media: IEEE 802.11 Wireless Ethernet autoselect mode 11b (DS/11Mbps) status: associated ssid ZENON-RADIO channel 11 bssid 00:07:0e:b8:d8:ee authmode WPA privacy ON deftxkey UNDEF TKIP 2:128-bit TKIP 3:128-bit txpowmax 100 bmiss 10 protmode CTS roaming MANUAL bintval 100 I wrote bssid value to /etc/wpa_supplicant.conf and run /etc/rc.d/netif. Then I drop connection (netif stop iwi0) and tried to start it again. I got associated state in 5-6 minutes. In rc.conf I have: ifconfig_iwi0=ssid MY-SSID channel 11 WPA How can I get -dd output from wpa_supplicant started with netif? It could be interesting. No idea, but a bit more stress testing did reveal a similar problem here. After I associated with the AP w/ hidden SSID I changed the channel via webinterface. The disconnect resulted in the exact problem you were having. Only stopping and restarting wpa_supplicant fixed the issue and I got associated on the new channel. Not sure what happens there yet, but something seems to get stuck in an undefined state. -- /\ Best regards, | [EMAIL PROTECTED] \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | [EMAIL PROTECTED] / \ ASCII Ribbon Campaign | Against HTML Mail and News pgpbNNM2bWESe.pgp Description: PGP signature
Re: iwi, hidden SSID and wpa_supplicant problem
On Monday 09 October 2006 20:26, Max Laier wrote: On Monday 09 October 2006 19:53, Andrew N. Below wrote: Hi. [..] You can try using ap_scan=2 or whatever it is in the wpa_supplicant.conf file. This causes wpa_supplicant to use directed broadcasts msgs to each ap listed in the file. In my case setting ap_scan to 2 doesn't help. BTW, I got successfull connection some time ago when I start to use /etc/rc.d/netif start iwi0 instead of manual running of wpa_supplicant: defanbook# ifconfig iwi0 iwi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet 213.189.198.75 netmask 0xfff0 broadcast 213.189.198.79 ether 00:12:f0:3d:cd:58 media: IEEE 802.11 Wireless Ethernet autoselect mode 11b (DS/11Mbps) status: associated ssid ZENON-RADIO channel 11 bssid 00:07:0e:b8:d8:ee authmode WPA privacy ON deftxkey UNDEF TKIP 2:128-bit TKIP 3:128-bit txpowmax 100 bmiss 10 protmode CTS roaming MANUAL bintval 100 I wrote bssid value to /etc/wpa_supplicant.conf and run /etc/rc.d/netif. Then I drop connection (netif stop iwi0) and tried to start it again. I got associated state in 5-6 minutes. In rc.conf I have: ifconfig_iwi0=ssid MY-SSID channel 11 WPA How can I get -dd output from wpa_supplicant started with netif? It could be interesting. No idea, but a bit more stress testing did reveal a similar problem here. After I associated with the AP w/ hidden SSID I changed the channel via webinterface. The disconnect resulted in the exact problem you were having. Only stopping and restarting wpa_supplicant fixed the issue and I got associated on the new channel. Not sure what happens there yet, but something seems to get stuck in an undefined state. Could you try the attached - untested - patch? It seems - from looking at the linux driver - that we have to remind the firmware of the ESSID before doing a directed scan. That explains why it would sometimes work (whenever we are coming straight from iwi_config) and sometimes not. Let me know if that improves things for you. Thanks. -- /\ Best regards, | [EMAIL PROTECTED] \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | [EMAIL PROTECTED] / \ ASCII Ribbon Campaign | Against HTML Mail and News Index: if_iwi.c === RCS file: /usr/store/mlaier/fcvs/src/sys/dev/iwi/if_iwi.c,v retrieving revision 1.39 diff -u -r1.39 if_iwi.c --- if_iwi.c 26 Jul 2006 03:09:32 - 1.39 +++ if_iwi.c 10 Oct 2006 02:55:52 - @@ -2699,7 +2699,7 @@ struct ieee80211com *ic = sc-sc_ic; const struct ieee80211_channel *c; struct iwi_scan_ext scan; - int i, ix, start, scan_type; + int i, ix, start, scan_type, error; memset(scan, 0, sizeof scan); @@ -2710,8 +2710,22 @@ scan.full_scan_index = htole32(ic-ic_scan.nt_scangen); - scan_type = (ic-ic_des_esslen != 0) ? IWI_SCAN_TYPE_BDIRECTED : - IWI_SCAN_TYPE_BROADCAST; + if (ic-ic_des_esslen != 0) { + scan_type = IWI_SCAN_TYPE_BDIRECTED; +#ifdef IWI_DEBUG + if (iwi_debug 0) { + printf(Setting desired ESSID to ); + ieee80211_print_essid(ic-ic_des_essid, + ic-ic_des_esslen); + printf(\n); + } +#endif + error = iwi_cmd(sc, IWI_CMD_SET_ESSID, ic-ic_des_essid, + ic-ic_des_esslen); + if (error != 0) + return error; + } else + scan_type = IWI_SCAN_TYPE_BROADCAST; ix = 0; if (ic-ic_modecaps IEEE80211_MODE_5GHZ) { pgpqkiqboHHXg.pgp Description: PGP signature