Ad-Hoc network won´t work ?!

Dan Williams dcbw at redhat.com
Tue Sep 2 09:26:36 EDT 2008


On Mon, 2008-09-01 at 16:45 +0200, Manuel Sahm wrote:
> Hello,
>  
> I have tried the following:
> # Start wpa_supplicant in the background
> wpa_supplicant -g/var/run/wpa_supplicant-global -B
>  
> # Add a new interface (wlan0, no configuration file, driver=wext, and
> # enable control interface)
> wpa_cli -g/var/run/wpa_supplicant-global interface_add wlan0 ""
> wext /var/run/wpa_supplicant
>  
> # Configure a network using the newly added network interface:
> wpa_cli -iwlan0 add_network
> wpa_cli -iwlan0 set_network 0 ssid '"test"'
> wpa_cli -iwlan0 set_network 0 key_mgmt NONE
> wpa_cli -iwlan0 set_network 0 mode 1
> wpa_cli -iwlan0 ap_scan 2
> wpa_cli -iwlan0 enable_network 0
>  
> # At this point, the new network interface should start trying to
> offer an Ad-Hoc Network,
> but in windows xp(another pc), nothing is seen.

What kernel version?  What wireless hardware, and what drivers are being
used?  mac80211-based drivers may not successfully create adhoc BSSes
without some patches I posted to the kernel and wpa_supplicant (which
are in 2.6.26 and wpa_supplicant 0.6.4).

Dan

> I have valid ip address too.
>  
> PS:
> If I use iwconfig, all works fine ????
>  
> iwconfig wlan0 essid "test"
> iwconfig wlan0 mode ad-hoc
>  
>  
> Thank you for your help...
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap



More information about the HostAP mailing list