wpa_supplicant cryptic procedure of access

Dan Williams dcbw
Thu Sep 21 13:02:14 PDT 2006


On Thu, 2006-09-21 at 21:34 +0200, Daniel Dieterle wrote:
> Hi everybody,
> 
> at ouer HighSchool we have a wifi for guests and a hidden wifi for the
> students. I want to the hidden wifi.
> 
> if i set in my config:
>  ap_scan=1
> the outpout ist:
>  Scan results: 4
>  Selecting BSS from priority group 0
>  0: 00:0f:90:55:50:70 ssid='<hidden>' wpa_ie_len=0 rsn_ie_len=0
> caps=0x11
>     skip - no WPA/RSN IE
>  1: 00:0f:90:55:4f:70 ssid='<hidden>' wpa_ie_len=0 rsn_ie_len=0
> caps=0x11
>     skip - no WPA/RSN IE
>  2: 00:12:80:e1:bb:a0 ssid='INVITES' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
>     skip - no WPA/RSN IE
>  3: 00:0f:90:6f:be:10 ssid='INVITES' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
>     skip - no WPA/RSN IE
>  No suitable AP found.
> 
> So, wpa_supplicant doesn't found a AP.
> 
> 
> 
> if i set in my config:
>  ap_scan=2
> and do:
>  wpa_supplicant -ieth1 -Dwext -c/etc/wpa_supplicant.conf
> the output is:
>  Trying to associate with SSID 'ResEl'
>  CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
> 
> Hey great wpa_supplicant sees the the SSID. But can't connect. :-( I
> have tried this very, very often but every time with the same result.
> The outpout repeats if i wate some time.
> 
> 
> 
> So i reset it to:
>  ap_scan=1
> 

You don't reboot or rmmod the driver between the first attempt and the
second, right?  If that's the case, I've observed this behavior to with
ipw2200.  After a connection attempt it seems the driver caches some
stuff about the AP and thereafter, it doesn't matter what the ap_scan
setting is.  Only the first try seems to matter for me.  Removing the
ipw2200 module and reinserting it brings back the first-time behavior
(ie, doesn't connect with ap_scan=1)

Dan

> and do:
>  wpa_supplicant -ieth1 -Dwext -c/etc/wpa_supplicant.conf
> the output is:
>  Trying to associate with 00:0f:90:55:50:70 (SSID='ResEl' freq=0 MHz)
>  CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
>  CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
>  Associated with 00:0f:90:55:50:70
>  CTRL-EVENT-EAP-STARTED EAP authentication started
>  CTRL-EVENT-EAP-METHOD EAP method 21 (TTLS) selected
>  CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully
>  WPA: Key negotiation completed with 00:0f:90:55:50:70 [PTK=TKIP
> GTK=WEP-104]
>  CTRL-EVENT-CONNECTED - Connection to 00:0f:90:55:50:70 completed (auth
> 
> So wpa_supplicant connects.
> Very confusing, isn't it? I have to change my config every time twice.
> Its awful!
> 
> Has anybody a hint for me? Would be very great.
> Thanks.
> 
> Daniel.
> 
> 
> My hw-config:
> intel 2915
> driver ipw2200-1.1.3 (but have to use -iwext as option. "-iipw" doesn't
> work. i thinks thats not new)
> 
> My wpa_supplicant.conf:
> ctrl_interface=/var/run/wpa_supplicant
> ctrl_interface_group=0
> 
> ap_scan=1
> 
> network={
>         ssid="ResEl"
>         scan_ssid=1
>         key_mgmt=WPA-EAP
>         eap=TTLS
>         anonymous_identity="anonymous"
>         identity="**myidentity**"
>         password="***mypassword**"
>         ca_cert="/root/ca.pem"
>         phase2="auth=PAP"
> }
> 
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap





More information about the Hostap mailing list