From owner-freebsd-current@FreeBSD.ORG Mon Nov 19 06:32:10 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17DF616A418 for ; Mon, 19 Nov 2007 06:32:10 +0000 (UTC) (envelope-from rmgls@free.fr) Received: from smtp7-g19.free.fr (smtp7-g19.free.fr [212.27.42.64]) by mx1.freebsd.org (Postfix) with ESMTP id A9F8413C442 for ; Mon, 19 Nov 2007 06:32:09 +0000 (UTC) (envelope-from rmgls@free.fr) Received: from smtp7-g19.free.fr (localhost [127.0.0.1]) by smtp7-g19.free.fr (Postfix) with ESMTP id 2AAA832280C; Mon, 19 Nov 2007 07:32:03 +0100 (CET) Received: from free.fr (evr27-1-88-172-40-194.fbx.proxad.net [88.172.40.194]) by smtp7-g19.free.fr (Postfix) with ESMTP id CC59232280A; Mon, 19 Nov 2007 07:32:02 +0100 (CET) To: "Kevin Oberman" From: rmgls@free.fr Date: Mon, 19 Nov 2007 07:31:58 +0100 Sender: rmgls@free.fr Message-Id: <20071119063202.CC59232280A@smtp7-g19.free.fr> Cc: freebsd-current@freebsd.org Subject: Re: wpa_supplicant in head X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2007 06:32:10 -0000 >> Date: Sun, 18 Nov 2007 16:53:56 +0100 >> >> >> Hi all, >> >> I investigated a little more, with my connection problem. >> in fact, even with a world and a kernel of this morning, i cannot connect >> to my AP, because this one is hidden, (the ssid is not transmitted in his frames). >> and wpa_supplicant does not recognize it even indicating his bssid. >> when it is not hidden, all works fine with all machines. >> the problem occurs only when the AP is hidden. >> Something has changed between the 30-9-2007 and the 27-10, date of my update. >> i can confirm that world and kernel of 30-9 connected quite well even >> with a hidden AP. >> >> Here is the config: >> >> Current, on two machines, (one laptop with the iwi driver, >> and one smp with ath builtin on the motherboard. >> i use wpa_supplicant with both, and nothing has changed in the config. >> of course the config_file points to the ssid and psk is correct. >> wpa_supplicant -d see the mac address but reports a bad ssid "" (hidden), >> but the ssid of the AP is present. >> >> With some help perhaps i can investigate furthermore and solve the problem. >> Thanks in advance. > >This looks just too obvious, so it is probably not the answer. Do you >have "scan_ssid=1" in the network definition in >/etc/wpa_supplicant.conf? It is required for unadvertised APs, even if >the ssid is specified. > >Here is the (sanitized) entry for my home net which does not advertise >(WEP, not WPA): >network={ > ssid="xyz1234" > scan_ssid=1 > key_mgmt=NONE > wep_key0=0123456789ABCDEF0123456789 > wep_tx_keyidx=0 >} > R. Kevin Oberman, Network Engineer >Energy Sciences Network (ESnet) >Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) >E-mail: oberman@es.net Phone: +1 510 486-8634 Hi Kevin, Shanks for your answer and Sorry for the late reply, but i tried all conbinations in the config_file... there are two problems in fact, 1 as stated in a similar thread (re wpa_supplicant spam...) the wpa_supplicant of our base system blank the ssid. this one from the port collection does not blank it. 2 no carrier after configuring all. here is my commands and their result: ========= wpa_supplicant -d -iiwi0 -c /etc/wpa_supplicant.conf Initializing interface 'iwi0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A' Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf' Reading configuration file '/etc/wpa_supplicant.conf' Priority group 0 id=0 ssid='HOME' Initializing interface (2) 'iwi0' EAPOL: SUPP_PAE entering state DISCONNECTED EAPOL: KEY_RX entering state NO_KEY_RECEIVE EAPOL: SUPP_BE entering state INITIALIZE EAP: EAP entering state DISABLED EAPOL: External notification - portEnabled=0 EAPOL: External notification - portValid=0 Own MAC address: 00:19:c4:aa:af:6e wpa_driver_bsd_set_wpa: enabled=1 wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1 wpa_driver_bsd_del_key: keyidx=0 wpa_driver_bsd_del_key: keyidx=1 wpa_driver_bsd_del_key: keyidx=2 wpa_driver_bsd_del_key: keyidx=3 wpa_driver_bsd_set_countermeasures: enabled=0 wpa_driver_bsd_set_drop_unencrypted: enabled=1 Setting scan request: 0 sec 100000 usec Added interface iwi0 State: DISCONNECTED -> SCANNING Starting AP scan (specific SSID) Scan SSID - hexdump_ascii(len=7): HOME Trying to get current scan results first without requesting a new scan to speed up initial association Received 0 bytes of scan results (0 BSSes) Scan results: 0 Selecting BSS from priority group 0 Try to find WPA-enabled AP Try to find non-WPA AP No suitable AP found. Setting scan request: 0 sec 0 usec Starting AP scan (broadcast SSID) Received 0 bytes of scan results (5 BSSes) Scan results: 5 Selecting BSS from priority group 0 Try to find WPA-enabled AP 1: c6:18:70:1d:1f:9c ssid='' wpa_ie_len=28 rsn_ie_len=0 caps=0x11 skip - SSID mismatch ========= ifconfig iwi0 iwi0: flags=8843 metric 0 mtu 1500 inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255 media: IEEE 802.11 Wireless Ethernet autoselect status: no carrier ssid HOME channel 11 (2462 Mhz 11g) authmode WPA1+WPA2/802.11i privacy ON deftxkey UNDEF bmiss 10 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5 protmode CTS roaming MANUAL ========== Best regards raoul rmgls@free.fr