aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorVidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>2017-03-22 10:40:05 (GMT)
committerJouni Malinen <j@w1.fi>2017-04-07 15:59:12 (GMT)
commitbbe7969d63ce7afc922310bff9eda2d624b6cf36 (patch)
tree79e291f558a353db575f1cc2c7c6cf5b02c6c6dd /wpa_supplicant/events.c
parentf705f41b7fbf914a3e4b076ad1c73555ef89707c (diff)
downloadhostap-bbe7969d63ce7afc922310bff9eda2d624b6cf36.zip
hostap-bbe7969d63ce7afc922310bff9eda2d624b6cf36.tar.gz
hostap-bbe7969d63ce7afc922310bff9eda2d624b6cf36.tar.bz2
FILS: Update cache identifier on association
This is needed when offloading FILS shared key to the drivers. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index fcfd3bc..e6f6b00 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -2653,6 +2653,16 @@ static void wpa_supplicant_event_assoc(struct wpa_supplicant *wpa_s,
if (wpa_s->reassoc_same_bss)
wmm_ac_restore_tspecs(wpa_s);
}
+
+#ifdef CONFIG_FILS
+ if (wpa_key_mgmt_fils(wpa_s->key_mgmt)) {
+ struct wpa_bss *bss = wpa_bss_get_bssid(wpa_s, bssid);
+ const u8 *fils_cache_id = wpa_bss_get_fils_cache_id(bss);
+
+ if (fils_cache_id)
+ wpa_sm_set_fils_cache_id(wpa_s->wpa, fils_cache_id);
+ }
+#endif /* CONFIG_FILS */
}