wpa_supplicant-0.6.1 IBSS Mode

Dan Williams dcbw at redhat.com
Tue Dec 18 13:41:41 EST 2007


On Tue, 2007-12-18 at 18:43 +0100, Christian Fackroth wrote:
> Hi,
> 
> my task is to implement real IBSS mode in wpa_supplicant. The first step to compile the test_wpa.c I have already finished. Now I will test the WPA-NONE mode of wpa_supplicant but it don't work. I use the madwifi driver and configure two stations as follows:
> 
> wlanconfig ath0 create wlandev wifi0 wlanmode adhoc
> sudo iwconfig ath0 essid test-adhoc channel 6
> sudo ifconfig ath0 192.168.1.x up
> 
> After the cells are merged I can transfer data between the two stations. Now I start wpa_supplicant on the stations with the follow configure file:
> 
> network={
>         ssid="test-adhoc"
>         mode=1
>         frequency=2437
>         proto=WPA
>         key_mgmt=WPA-NONE
>         pairwise=NONE
>         group=CCMP
>         psk="schluessel"
> }
> 
> The connection can't established because wpa_supplicant show the message "... skip - no WPA/RSN IE" when it scanning. So my question is what do I wrong? Also it will be nice if somebody have additional hints for me which make it easier for me to realise my task.

You're probably not setting ap_scan=2:

# Note: IBSS can only be used with key_mgmt NONE (plaintext and static WEP)
# and key_mgmt=WPA-NONE (fixed group key TKIP/CCMP). In addition, ap_scan has
# to be set to 2 for IBSS. WPA-None requires following network block options:
# proto=WPA, key_mgmt=WPA-NONE, pairwise=NONE, group=TKIP (or CCMP, but not
# both), and psk must also be set.

This is the comment in the 'mode' section of the example
wpa_supplicant.conf config file.

> I found in driver_wext.c in line 970 a instruction which makes in my mind no sence.
> 
> "if (wpa_driver_wext_set_mode(drv, 0) < 0) {"
> 
> Why is the driver always configured in managed mode? But I'm sure this is not the reason why WPA-NONE not work. ;-)

That part shouldn't really matter, because it's only set to managed when
the card is initialized.  The _real_ mode you request is set in the
'associate' hook below around line 1946.  That's the only mode set that
really matters.

Dan





More information about the HostAP mailing list