wpa_supplicant problem in ad-hoc mode with madwifi

Dan Williams dcbw
Tue Sep 25 11:26:16 PDT 2007


On Tue, 2007-09-25 at 11:22 +0200, pierre dubois wrote:
> Here is /etc/wpa_supplicant.conf file:
>  
> eapol_version=1
> ctrl_interface=/var/run/wpa_supplicant
> ctrl_interface_group=0
> ap_scan=2
> network={
>     ssid="myadhoc"
>     mode=1
>     proto=WPA
>     key_mgmt=WPA-NONE
>     pairwise=NONE
>     group=TKIP
>     psk="abcdefgh"
> }
> 
> Notice that i tested also with ipw chipset and the mode is not changed
> automatically like that. When i typed iwconfig, i saw that the
> encryption key length is 128 bits in case of madwifi chipset, and 256
> bits in case of ipw chipset. Could anybody explain me what happens?

Note that with ipw2100, ipw2200, and ipw2915 you must _manually_ set the
channel [1], otherwise the card will not deal with the adhoc mode.  It
does not have a default adhoc channel at all that I can tell.

Because wpa_supplicant doesn't have an option to force a particular
channel in the network block, you have to do this manually when using
wpa_supplicant and configuring it for adhoc operation.  I would like to
modify wpa_supplicant quite soon to have a "frequency" key, but people
haven't yet decided whether they like frequency or channel.

Dan

[1] this may only be the case where there is not already an adhoc
network of the specified SSID.  If you're creating a whole new adhoc
network, you definitely need to set the channel on ipw cards

> Ambedkar R <ambedkar_r at rediffmail.com> a ?crit :
>         Hi,
>         
>         Can you send the wpa-supplicant.conf.
>         
>         Thanks
>         Ambedkar.R  
>         
>         
>         On Thu, 20 Sep 2007 pierre dubois wrote :
>         >Hello,
>         >  I changed my wireless card in "Ad-hoc" mode and tried to
>         run wpa_supplicant in this mode:
>         >  wpa_supplicant -ieth1 -Dmadwifi -c/etc/wpa_supplicant.conf
>         -dd
>         >  After that, i checked the status of card by iwconfig and i
>         saw it is changed automatically in "Managed" mode.
>         >  How can i do now?
>         >
>         >
>         >
>         >---------------------------------
>         >  Ne gardez plus qu'une seule adresse mail ! Copiez vos mails
>         vers Yahoo! Mail
>         >_______________________________________________
>         >HostAP mailing list
>         >HostAP at shmoo.com
>         >http://lists.shmoo.com/mailman/listinfo/hostap
>         
>         
>         
> 
> 
> 
> 
> ______________________________________________________________________
> Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers
> Yahoo! Mail 
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap





More information about the Hostap mailing list