DIS/CONNECT event not triggerd ?!

Manuel Sahm Manuel.Sahm at feig.de
Fri Aug 29 03:53:34 EDT 2008


Hello,
 
I want to receive the following sequence:
 
If plug in my usb wlan stick wpa_supplicant should start making a
connction with given parameters.
If I unplug my usb stick wpa_supplicant should close this connection
and reconnect if the usb stick is plugged in again.
 
I have tried the following:
 
(Once at startup:) wpa_supplicant -g/var/run/wpa_supplicant-global -B
 
Now, when I enter:(later this should be automaticalley done, when a usb
wlan stick is inserted right ?)
 
wpa_cli -g/var/run/wpa_supplicant-global interface_add wlan0 "" wext
/var/run/wpa_supplican
 
wpa_cli -a/etc/wpa_supplicant/detect.h -B
wpa_cli -iwlan0 add_network
wpa_cli -iwlan0 set_network 0 ssid '"obid3"'
wpa_cli -iwlan0 set_network 0 key_mgmt NONE
wpa_cli -iwlan0 enable_network 0
 
 
A connection is established, but the script detect.sh isn´t executed
?!
If I unplug my usb-stick and plug it again - no connection .....
 
what´s wrong ?
Thank you
 
Manuel Sahm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20080829/515db5e6/attachment.htm 


More information about the HostAP mailing list