aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-11-05 14:55:30 (GMT)
committerJouni Malinen <j@w1.fi>2012-11-05 14:58:00 (GMT)
commit07783eaaa05c07e2c0071780ed3ebf7d0abfe4b5 (patch)
tree6b4f155be72427fbd8622d132ed04964a27fb9c1 /wpa_supplicant/dbus
parent42d235477f2345003b76e4de1f397e21c2fa5b76 (diff)
downloadhostap-07783eaaa05c07e2c0071780ed3ebf7d0abfe4b5.zip
hostap-07783eaaa05c07e2c0071780ed3ebf7d0abfe4b5.tar.gz
hostap-07783eaaa05c07e2c0071780ed3ebf7d0abfe4b5.tar.bz2
Use deauthentication instead of disassociation if not associated
cfg80211/mac80211 may reject disassociation command if association has not yet been formed. Use deauthentication in cases where it is possible that we are associating at the moment the command is issued. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/dbus')
-rw-r--r--wpa_supplicant/dbus/dbus_new_handlers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c
index 062024f..e100df2 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers.c
@@ -1547,7 +1547,8 @@ static void remove_network(void *arg, struct wpa_ssid *ssid)
}
if (ssid == wpa_s->current_ssid)
- wpa_supplicant_disassociate(wpa_s, WLAN_REASON_DEAUTH_LEAVING);
+ wpa_supplicant_deauthenticate(wpa_s,
+ WLAN_REASON_DEAUTH_LEAVING);
}