aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_supplicant_i.h
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/wpa_supplicant_i.h
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/wpa_supplicant_i.h')
-rw-r--r--wpa_supplicant/wpa_supplicant_i.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant_i.h b/wpa_supplicant/wpa_supplicant_i.h
index 2b0b088..46c4715 100644
--- a/wpa_supplicant/wpa_supplicant_i.h
+++ b/wpa_supplicant/wpa_supplicant_i.h
@@ -1024,6 +1024,10 @@ struct wpa_supplicant {
/* WLAN_REASON_* reason codes. Negative if locally generated. */
int disconnect_reason;
+ /* WLAN_STATUS_* status codes from last received Authentication frame
+ * from the AP. */
+ u16 auth_status_code;
+
/* WLAN_STATUS_* status codes from (Re)Association Response frame. */
u16 assoc_status_code;