aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/notify.c
diff options
context:
space:
mode:
authorAlex Khouderchah <akhouderchah@chromium.org>2018-07-05 23:29:09 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-02 22:39:12 (GMT)
commit38b405c8f055fafd3117bee32c108de86f835f94 (patch)
treeac5d19e6b051e911bb1dc309a0c9960e39ad60c3 /wpa_supplicant/notify.c
parent80d06d0ca9f3b2986e89c8169087b7a71487bf95 (diff)
downloadhostap-38b405c8f055fafd3117bee32c108de86f835f94.zip
hostap-38b405c8f055fafd3117bee32c108de86f835f94.tar.gz
hostap-38b405c8f055fafd3117bee32c108de86f835f94.tar.bz2
dbus: Expose authentication status to D-Bus
wpa_supplicant currently logs CTRL-EVENT-AUTH-FAILED errors when authentication fails, but doesn't expose any property to the D-Bus interface related to this. This change adds the "AuthStatusCode" property to the interface, which contains the IEEE 802.11 status code of the last authentication. Signed-off-by: Alex Khouderchah <akhouderchah@chromium.org>
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 530548f..e5e45de 100644
--- a/wpa_supplicant/notify.c
+++ b/wpa_supplicant/notify.c
@@ -140,6 +140,15 @@ void wpas_notify_disconnect_reason(struct wpa_supplicant *wpa_s)
}
+void wpas_notify_auth_status_code(struct wpa_supplicant *wpa_s)
+{
+ if (wpa_s->p2p_mgmt)
+ return;
+
+ wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_AUTH_STATUS_CODE);
+}
+
+
void wpas_notify_assoc_status_code(struct wpa_supplicant *wpa_s)
{
if (wpa_s->p2p_mgmt)