diff --git a/src/rsn_supp/wpa.h b/src/rsn_supp/wpa.h index c79ebfcea..76d603138 100644 --- a/src/rsn_supp/wpa.h +++ b/src/rsn_supp/wpa.h @@ -92,7 +92,7 @@ struct wpa_sm_ctx { const u8 *pkt, size_t pkt_len); int (*channel_info)(void *ctx, struct wpa_channel_info *ci); void (*transition_disable)(void *ctx, u8 bitmap); - void (*store_ptk)(void *ctx, u8 *addr, int cipher, + void (*store_ptk)(void *ctx, const u8 *addr, int cipher, u32 life_time, const struct wpa_ptk *ptk); #ifdef CONFIG_PASN int (*set_ltf_keyseed)(void *ctx, const u8 *own_addr, diff --git a/src/rsn_supp/wpa_i.h b/src/rsn_supp/wpa_i.h index ed43cc153..a3c13b116 100644 --- a/src/rsn_supp/wpa_i.h +++ b/src/rsn_supp/wpa_i.h @@ -477,7 +477,7 @@ static inline void wpa_sm_transition_disable(struct wpa_sm *sm, u8 bitmap) } static inline void wpa_sm_store_ptk(struct wpa_sm *sm, - u8 *addr, int cipher, + const u8 *addr, int cipher, u32 life_time, struct wpa_ptk *ptk) { if (sm->ctx->store_ptk) diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c index e5a4053c8..c4cfca50e 100644 --- a/wpa_supplicant/wpas_glue.c +++ b/wpa_supplicant/wpas_glue.c @@ -1360,7 +1360,7 @@ static void wpa_supplicant_transition_disable(void *_wpa_s, u8 bitmap) } -static void wpa_supplicant_store_ptk(void *ctx, u8 *addr, int cipher, +static void wpa_supplicant_store_ptk(void *ctx, const u8 *addr, int cipher, u32 life_time, const struct wpa_ptk *ptk) { struct wpa_supplicant *wpa_s = ctx;