Date: Sun, 06 Sep 2009 16:52:51 -0700 From: Sam Leffler <sam@errno.com> To: Borodin Oleg <ziggi@yandex.ru> Cc: freebsd-current@freebsd.org Subject: Re: wpa_supplicant not found AP without SSID in beacon packet Message-ID: <4AA44B53.8060702@errno.com> In-Reply-To: <4AA41025.5080908@yandex.ru> References: <4AA41025.5080908@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Borodin Oleg wrote: > > Hi! > > wpa_supplicant "not found" AP without SSID in beacon packets. With same > device and configuration, but FreeBSD7.2 - work without problems. > > uname: > FreeBSD flashbsd.home 8.0-BETA3 FreeBSD 8.0-BETA3 #4 r196775: Thu Sep 3 > 13:12:37 EEST 2009 > ziggi@eee.home:/usr/obj/usr/src/sys/EEE04 i386 > > wireless device: > ath0: <Atheros 5424/2424> mem 0xfbef0000-0xfbefffff irq 18 at device 0.0 > on pci1 > ath0@pci0:1:0:0: class=0x020000 card=0x10261a3b chip=0x001c168c > rev=0x01 hdr=0x00 > vendor = 'Atheros Communications Inc.' > device = 'AR5006 family 802.11abg Wireless NIC' > class = network > subclass = ethernet > > Access point - Cisco 877w, IOS 12.4T8 > > ----------- Variant 1. SSID not send in beacon packets from Cisco access > point - > Cisco conf fragment : > ! > dot11 mbssid > ! > dot11 ssid WNET1 > vlan 1 > authentication open. > authentication key-management wpa > wpa-psk ascii 7 10682F4857474B2D2A > ! > dot11 ssid WNET2 > vlan 2 > authentication open. > authentication key-management wpa > wpa-psk ascii 7 15342D5D567A72020E > ! > dot11 ssid WNET3 > vlan 3 > authentication open. > authentication key-management wpa > wpa-psk ascii 7 0220220A595656076A > ! > > Result FreeBSD8Beta3 wpa_suplicant & wlandebug: > > Starting AP scan (broadcast SSID) > wlan0: ieee80211_ioctl_scanreq: flags 0x52 duration 0x7fffffff mindwell > 0 maxdwe > ll 0 nssid 0 > wlan0: ieee80211_check_scan: active scan, append, nojoin, once > wlan0: sta_pick_bss: no scan candidate > wlan0: start_scan_locked: active scan, duration 2147483647 mindwell 0 > maxdwell 0 > , desired mode auto, append, nojoin, once > wlan0: scan set 1g, 6g, 11g, 7g, 13g, 2g, 3g, 4g, 5g, 8g, 9g, 10g, 12g, > 14b dwel > l min 20ms max 200ms > wlan0: scan_task: chan 3g -> 1g [active, dwell min 20ms max 200ms] > wlan0: send probe req on channel 1 bssid ff:ff:ff:ff:ff:ff ssid "" > wlan0: received beacon from 00:23:5e:75:f7:c0 rssi 45 > wlan0: [00:23:5e:75:f7:c0] discard unhandled information element, id > 133, len 30 <-------- ???? > > wlan0: [00:23:5e:75:f7:c0] discard beacon frame, for off-channel 3 > wlan0: received beacon from 00:23:5e:75:f7:c2 rssi 44 > wlan0: [00:23:5e:75:f7:c2] discard unhandled information element, id > 133, len 30 > > wlan0: [00:23:5e:75:f7:c0] discard beacon frame, for off-channel 3 > wlan0: received beacon from 00:23:5e:75:f7:c2 rssi 46 > wlan0: [00:23:5e:75:f7:c2] discard unhandled information element, id > 133, len 30 > > wlan0: [00:23:5e:75:f7:c2] discard beacon frame, for off-channel 3 > wlan0: scan_task: chan 1g -> 6g [active, dwell min 20ms max 200ms] > wlan0: send probe req on channel 6 bssid ff:ff:ff:ff:ff:ff ssid "" > wlan0: scan_task: chan 6g -> 11g [active, dwell min 20ms max 200ms] > wlan0: send probe req on channel 11 bssid ff:ff:ff:ff:ff:ff ssid "" > wlan0: scan_task: chan 11g -> 7g [active, dwell min 20ms max 200ms] > wlan0: send probe req on channel 7 bssid ff:ff:ff:ff:ff:ff ssid "" > wlan0: scan_task: chan 7g -> 13g [passive, dwell min 20ms max 200ms] > EAPOL: disable timer tick > wlan0: scan_task: chan 13g -> 2g [active, dwell min 20ms max 200ms] > wlan0: send probe req on channel 2 bssid ff:ff:ff:ff:ff:ff ssid "" > wlan0: received beacon from 00:23:5e:75:f7:c1 rssi 56 > wlan0: [00:23:5e:75:f7:c1] discard unhandled information element, id > 133, len 30 > ... > [00:23:5e:75:f7:c1] new beacon on chan 3 (bss chan 3) 0x00 rssi 55 > [00:23:5e:75:f7:c1] caps 0x431 bintval 100 erp 0x100 > wlan0: received beacon from 00:23:5e:75:f7:c2 rssi 53 > wlan0: [00:23:5e:75:f7:c2] discard unhandled information element, id > 133, len 30 > > [00:23:5e:75:f7:c2] new beacon on chan 3 (bss chan 3) 0x00 rssi 53 > [00:23:5e:75:f7:c2] caps 0x431 bintval 100 erp 0x100 > wlan0: scan_task: chan 3g -> 4g [active, dwell min 20ms max 200ms] > wlan0: send probe req on channel 4 bssid ff:ff:ff:ff:ff:ff ssid "" > wlan0: received beacon from 00:23:5e:75:f7:c2 rssi 52 > wlan0: [00:23:5e:75:f7:c2] discard unhandled information element, id > 133, len 30 > ... > Scan results: 3 > CTRL-EVENT-SCAN-RESULTS > Selecting BSS from priority group 0 > Try to find WPA-enabled AP > 0: 00:23:5e:75:f7:c1 ssid='' wpa_ie_len=24 rsn_ie_len=0 caps=0x31 > skip - SSID mismatch > 1: 00:23:5e:75:f7:c2 ssid='' wpa_ie_len=24 rsn_ie_len=0 caps=0x31 > skip - SSID mismatch > 2: 00:23:5e:75:f7:c0 ssid='' wpa_ie_len=24 rsn_ie_len=0 caps=0x31 > skip - SSID mismatch > Try to find non-WPA AP > 0: 00:23:5e:75:f7:c1 ssid='' wpa_ie_len=24 rsn_ie_len=0 caps=0x31 > skip - SSID mismatch > 1: 00:23:5e:75:f7:c2 ssid='' wpa_ie_len=24 rsn_ie_len=0 caps=0x31 > skip - SSID mismatch > 2: 00:23:5e:75:f7:c0 ssid='' wpa_ie_len=24 rsn_ie_len=0 caps=0x31 > skip - SSID mismatch > No suitable AP found. <--------------------- > Setting scan request: 5 sec 0 usec > > ---------------- 2 On _any_ SSID in beacon packet: > > dot11 ssid WNET1 > vlan 1 > authentication open > authentication key-management wpa > mbssid guest-mode <--------------------------- On SSID sending > wpa-psk ascii 7 10682F4857474B2D2A > ! > dot11 ssid WNET2 > vlan 2 > authentication open > authentication key-management wpa > wpa-psk ascii 7 15342D5D567A72020E > ! > dot11 ssid WNET3 > vlan 3 > authentication open > authentication key-management wpa > wpa-psk ascii 7 0220220A595656076A > ! > > Result wpa_supplicant: > > Received 0 bytes of scan results (3 BSSes) > Scan results: 3 > CTRL-EVENT-SCAN-RESULTS > Selecting BSS from priority group 0 > Try to find WPA-enabled AP > 0: 00:23:5e:75:f7:c1 ssid='' wpa_ie_len=24 rsn_ie_len=0 caps=0x31 > skip - SSID mismatch > 1: 00:23:5e:75:f7:c2 ssid='' wpa_ie_len=24 rsn_ie_len=0 caps=0x31 > skip - SSID mismatch > 2: 00:23:5e:75:f7:c0 ssid='WNET1' wpa_ie_len=24 rsn_ie_len=0 caps=0x31 > selected based on WPA IE > selected WPA AP 00:23:5e:75:f7:c0 ssid='WNET1' > <---------------------------------------- > Trying to associate with 00:23:5e:75:f7:c0 (SSID='WNET1' freq=2422 MHz) > Cancelling scan request > > > > /etc/wpa_upplicant.conf: > # $Id$ > ctrl_interface=/var/run/wpa_supplicant > ctrl_interface_group=wheel > #eapol_version=1 > #ap_scan=1 > fast_reauth=1 > network={ > ssid="WNET1" > # scan_ssid=1 > proto=RSN WPA > key_mgmt=WPA-PSK > pairwise=CCMP TKIP > group=CCMP TKIP > psk=8c23bb58a1a94b3b56b90d8f7422a29b18f495b517f33fc6728ff2a3ad4aae1f > } > #EOF You seem to have disabled scan_ssid in your wpa_supplicant.conf file. It appears this causes wpa_supplicant to not supply the ssid when scanning so the net80211 layer never sends directed ProbeRequest frames and then ap does not respond. Try enabling scan_ssid for WNET1 and verify the directed probe request frames are sent. Sam
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AA44B53.8060702>