aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.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/events.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/events.c')
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index c39315d..ac3c118 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -3501,6 +3501,8 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_ASSOC_REJECT
"status_code=%u",
data->assoc_reject.status_code);
+ wpa_s->assoc_status_code = data->assoc_reject.status_code;
+ wpas_notify_assoc_status_code(wpa_s);
if (wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME)
sme_event_assoc_reject(wpa_s, data);
else {