wpa_suppliccant complains about " Name not unique on network"
Sergio Belkin
sebelk
Sat Dec 17 10:46:58 PST 2011
Hi,
I've trying to simulate a few of stations associating to an AP, so
added a virtual interface with:
sudo iw dev wlan0 interface add sta0 type managed
And then I run:
sudo ./wpa_supplicant -dd -c /tmp/wpa-psk-tkip.conf -iwlan0 -N -c
/tmp/wpa-psk-tkip-2.conf -ista0
But it fails, the output is as follows
Initializing interface 'wlan0' conf '/tmp/wpa-psk-tkip.conf' driver
'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/tmp/wpa-psk-tkip.conf' -> '/tmp/wpa-psk-tkip.conf'
Reading configuration file '/tmp/wpa-psk-tkip.conf'
ctrl_interface='/var/run/wpa_supplicant_wlan0'
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=6):
64 64 2d 77 72 74 dd-wrt
key_mgmt: 0x2
proto: 0x1
pairwise: 0x8
group: 0x8
PSK (ASCII passphrase) - hexdump_ascii(len=12): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
id=0 ssid='dd-wrt'
WEXT: cfg80211-based driver detected
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf flags 0x0
netlink: Operstate: linkmode=1, operstate=5
Own MAC address: 68:a3:c4:32:51:b9
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
Added interface wlan0
Initializing interface 'sta0' conf '/tmp/wpa-psk-tkip-2.conf' driver
'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/tmp/wpa-psk-tkip-2.conf' -> '/tmp/wpa-psk-tkip-2.conf'
Reading configuration file '/tmp/wpa-psk-tkip-2.conf'
ctrl_interface='/var/run/wpa_supplicant_sta0'
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=6):
64 64 2d 77 72 74 dd-wrt
key_mgmt: 0x2
proto: 0x1
pairwise: 0x8
group: 0x8
PSK (ASCII passphrase) - hexdump_ascii(len=12): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
id=0 ssid='dd-wrt'
WEXT: cfg80211-based driver detected
Could not set interface sta0 flags: Name not unique on network
Failed to initialize driver interface
Failed to add interface sta0
Cancelling scan request
Cancelling authentication timeout
Removing interface wlan0
No keys have been configured - skip key clearing
State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portValid=0
EAPOL: Supplicant port status: Unauthorized
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
netlink: Operstate: linkmode=0, operstate=6
End of ouput
Please could you help me, am I doing something wrong?
Thanks in advance!
--
--
Sergio Belkin ?http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
LPIC-2 Certified - http://www.lpi.org
More information about the Hostap
mailing list