<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
Hi everyone,<BR>
<BR>
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.&nbsp; I'm using the dbus interface of wpa_supplicant to control the connection.<BR>
<BR>
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.&nbsp; 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:<BR>
<BR>
In AP mode, I see this error: &quot;wlan0: Skip scan - interface disabled&quot; (and when I use dbus to get the state it returns interface_disabled)<BR>
<BR>
If connecting to a network, I see errors like this: &quot;nl80211: Station flush failed: ret=-100 (Network is down)&quot;<BR>
<BR>
It seems like when I ask wpa_supplicant to disconnect, it somehow disables things to the point where it can't enable them again?&nbsp; If I kill wpa_supplicant and restart it, I can connect again.<BR>
<BR>
Any idea what could be causing this?&nbsp; Is there a way for me to force wpa_supplicant to reset everything without killing it?<BR>
<BR>
Thanks!<BR>
<BR>
Marlon
</BODY>
</HTML>