wpa_supplicant(hidl): Add timedOut param in assoc reject
This is needed to indicate if the association failed due to
a timeout instead of AP explicitly rejecting us.
While there,
Fixed the callback sent for disconnect. This is handled similarly in
framework today, so didn't detect this.
Bug: 34280407
Test: Compiles
Change-Id: If5d1483110bca5b23639c3a4be89b2ee3a2d1638
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 448615e..bc3c90e 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -3806,6 +3806,7 @@
data->assoc_reject.timed_out ? " timeout" : "",
buf);
wpa_s->assoc_status_code = data->assoc_reject.status_code;
+ wpa_s->assoc_timed_out = data->assoc_reject.timed_out;
wpas_notify_assoc_status_code(wpa_s);
if (wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME)
sme_event_assoc_reject(wpa_s, data);