Problem with disconnect and reconnect
Marlon Smith
marlon.smith10
Mon Apr 27 12:44:13 PDT 2015
Hi everyone,
I'm using wpa_supplicant with nl80211 and the rt2800usb driver in my
application, which allows user to connect to a network or create an
access point. I'm using the dbus interface of wpa_supplicant to control
the connection.
The user is able to enable/disable the connection via a menu, and when
they do I use AddNetwork and SelectNetwork to connect, and RemoveNetwork
to disconnect. This works until the user tries to connect a second
time, at which point I get one of two errors, depending on whether it's
an access point or connected to a network:
In AP mode, I see this error: "wlan0: Skip scan - interface
disabled" (and when I use dbus to get the state it returns
interface_disabled)
If connecting to a network, I see errors like this: "nl80211: Station
flush failed: ret=-100 (Network is down)"
It seems like when I ask wpa_supplicant to disconnect, it somehow
disables things to the point where it can't enable them again? If I
kill wpa_supplicant and restart it, I can connect again.
Any idea what could be causing this? Is there a way for me to force
wpa_supplicant to reset everything without killing it?
Thanks!
Marlon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20150427/8d0b229a/attachment.htm>
More information about the Hostap
mailing list