Ad-Hoc network won´t work ?!

Manuel Sahm Manuel.Sahm
Mon Sep 1 07:45:52 PDT 2008


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.
 
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...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20080901/215453e4/attachment.htm 



More information about the Hostap mailing list