From 81fc6a687e779cce3d0b7a82cb6ec26966971208 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 10 Apr 2019 14:52:30 -0700 Subject: [PATCH] handshake: add flag for FILS support The handshake_state only holds a single AKM value. FILS depends on the AP supporting EAP as well as FILS. The first time IWD connects, it will do a full EAP auth. Subsequent connections (assuming FILS is supported) will use FILS. But if the AP does not support FILS there is no reason to cache the ERP keys. This adds the supp_fils to the handshake_state. Now, station.c can set this flag while building the handshake. This flag can later be checked when caching the ERP keys. --- src/handshake.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/handshake.h b/src/handshake.h index a50529fc..508950fe 100644 --- a/src/handshake.h +++ b/src/handshake.h @@ -108,6 +108,7 @@ struct handshake_state { bool authenticator : 1; bool wait_for_gtk : 1; bool no_rekey : 1; + bool support_fils : 1; uint8_t ssid[32]; size_t ssid_len; char *passphrase;