wpa_supplicant im ad hoc Modus

asdf

Member
Hi!

Ich habe zwei Rechner (FreeBSD 6.1). Beide haben jeweils eine WLAN-Karte (beide ath0).
Wenn ich WEP benutze, funzt alles :-)

Nun will ich WPA mit wpa_supplicant benutzen -- im ad hoc Modus (IBSS).

Meine wpa.conf:

Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0

eapol_version=1

ap_scan=2

fast_reauth=1

# IBSS/ad-hoc network with WPA-None/TKIP.
network={
        ssid="test adhoc"
        mode=1
        proto=WPA
        key_mgmt=WPA-NONE
        pairwise=NONE
        group=TKIP
        psk="secret passphrase"
}

Jetzt:
Code:
# wpa_supplicant -i ath0 -c ./wpa.conf
Trying to associate with SSID 'test adhoc'
ioctl[SIOCS80211, op 22, len 24]: Invalid argument
Association request to the driver failed
CTRL-EVENT-CONNECTED - Connection to 00:00:00:00:00:00 completed (auth)

Meiner Meinung ist alles drinne, was gebraucht wird:
Code:
# kldstat
Id Refs Address    Size     Name
 1   19 0xc0400000 454ca0   kernel
 2    1 0xc0855000 58554    acpi.ko
 3    1 0xc2cca000 16000    linux.ko
 4    1 0xc308a000 4000     wlan_tkip.ko
 5    4 0xc3159000 a000     netgraph.ko
 6    1 0xc318b000 3000     ng_ether.ko
 7    1 0xc318e000 5000     ng_pppoe.ko
 8    1 0xc3195000 4000     ng_socket.ko
 9    1 0xc34ed000 7000     wlan_ccmp.ko
10    1 0xc373d000 3000     wlan_acl.ko
11    1 0xc3740000 2000     wlan_xauth.ko

Mit ping sehe ich aber den anderen Rechner nicht :-(

Wo ist mein Fehler?
Mein Verdacht: ioctl[SIOCS80211, op 22, len 24]: Invalid argument

Ich habe leider keinen AP zur Verfügung, um BSS mode zu testen.
Hat jemand wpa_supplicant im ad hoc mode laufen? Wenn ja, wie sieht Deine Config aus?


Die Version mit Debug-Messages:
Code:
# wpa_supplicant -d -i ath0 -c ./wpa.conf
Initializing interface 'ath0' conf './wpa.conf' driver 'default' ctrl_interface 'N/A'
Configuration file './wpa.conf' -> '/root/./wpa.conf'
Reading configuration file '/root/./wpa.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0
eapol_version=1
ap_scan=2
fast_reauth=1
Priority group 0
   id=0 ssid='test adhoc'
Initializing interface (2) 'ath0'
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:17:9a:af:52:22
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 ath0
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'test adhoc'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 8 pairwise 1 key_mgmt 16
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK NONE
WPA: using KEY_MGMT WPA-NONE
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 00 01 00 00 50 f2 00
No keys have been configured - skip key clearing
wpa_driver_bsd_set_key: alg=TKIP addr=ff:ff:ff:ff:ff:ff key_idx=0 set_tx=1 seq_len=6 key_len=32
wpa_driver_bsd_set_drop_unencrypted: enabled=1
State: SCANNING -> ASSOCIATING
wpa_driver_bsd_associate: ssid 'test adhoc' wpa ie len 24 pairwise 0 group 2 key mgmt 4
ioctl[SIOCS80211, op 22, len 24]: Invalid argument
Association request to the driver failed
wpa_driver_bsd_set_key: alg=TKIP addr=ff:ff:ff:ff:ff:ff key_idx=0 set_tx=1 seq_len=6 key_len=32
Cancelling authentication timeout
State: ASSOCIATING -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 00:00:00:00:00:00 completed (auth)
EAPOL: External notification - portControl=ForceAuthorized
 
Zurück
Oben