aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/notify.c
diff options
context:
space:
mode:
authorNaveen Singh <nasingh@google.com>2016-03-03 18:48:09 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-06 18:44:51 (GMT)
commitc7fb678f3109e62af1ef39be9b12bf8370c35bde (patch)
tree2f7b519a93399db621c5c8dfaf7a2ab415fa8e17 /wpa_supplicant/notify.c
parent2940bf669ab53576bf1028012fcc538989f0df9b (diff)
downloadhostap-c7fb678f3109e62af1ef39be9b12bf8370c35bde.zip
hostap-c7fb678f3109e62af1ef39be9b12bf8370c35bde.tar.gz
hostap-c7fb678f3109e62af1ef39be9b12bf8370c35bde.tar.bz2
D-Bus: Add association response status code property for failure cases
(Re)Association Response frame with status code other than 0 is now notified over DBUS as a part of PropertiesChanged signal. This can be used by application in case AP is denying association with status code 17 (band steering) so that it does not interfere in the BSSID selection logic of wpa_supplicant. Signed-off-by: Naveen Singh <nasingh@google.com>
Diffstat (limited to 'wpa_supplicant/notify.c')
-rw-r--r--wpa_supplicant/notify.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c
index 45d06bf..325883d 100644
--- a/wpa_supplicant/notify.c
+++ b/wpa_supplicant/notify.c
@@ -128,6 +128,15 @@ void wpas_notify_disconnect_reason(struct wpa_supplicant *wpa_s)
}
+void wpas_notify_assoc_status_code(struct wpa_supplicant *wpa_s)
+{
+ if (wpa_s->p2p_mgmt)
+ return;
+
+ wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_ASSOC_STATUS_CODE);
+}
+
+
void wpas_notify_network_changed(struct wpa_supplicant *wpa_s)
{
if (wpa_s->p2p_mgmt)