]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/rsn_supp/wpa_i.h
STA: Allow PTK rekeying without Ext KeyID to be disabled as a workaround
[thirdparty/hostap.git] / src / rsn_supp / wpa_i.h
index bd44464023bfb5fd333bbe94a253c9735b5bfd6c..7af678dcd93d88578cd811ea400f0a4ab1b2b826 100644 (file)
@@ -63,6 +63,7 @@ struct wpa_sm {
        u8 ssid[32];
        size_t ssid_len;
        int wpa_ptk_rekey;
+       int wpa_deny_ptk0_rekey:1;
        int p2p;
        int wpa_rsc_relaxation;
        int owe_ptk_workaround;
@@ -210,6 +211,12 @@ static inline int wpa_sm_set_key(struct wpa_sm *sm, enum wpa_alg alg,
                                seq, seq_len, key, key_len, key_flag);
 }
 
+static inline void wpa_sm_reconnect(struct wpa_sm *sm)
+{
+       WPA_ASSERT(sm->ctx->reconnect);
+       sm->ctx->reconnect(sm->ctx->ctx);
+}
+
 static inline void * wpa_sm_get_network_ctx(struct wpa_sm *sm)
 {
        WPA_ASSERT(sm->ctx->get_network_ctx);