Mark addr argument to storing PTKSA const
This is not being modified, so mark it const to be more flexible for the caller. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
242c3ad990
commit
3f3e356fa0
3 changed files with 3 additions and 3 deletions
|
@ -92,7 +92,7 @@ struct wpa_sm_ctx {
|
||||||
const u8 *pkt, size_t pkt_len);
|
const u8 *pkt, size_t pkt_len);
|
||||||
int (*channel_info)(void *ctx, struct wpa_channel_info *ci);
|
int (*channel_info)(void *ctx, struct wpa_channel_info *ci);
|
||||||
void (*transition_disable)(void *ctx, u8 bitmap);
|
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);
|
u32 life_time, const struct wpa_ptk *ptk);
|
||||||
#ifdef CONFIG_PASN
|
#ifdef CONFIG_PASN
|
||||||
int (*set_ltf_keyseed)(void *ctx, const u8 *own_addr,
|
int (*set_ltf_keyseed)(void *ctx, const u8 *own_addr,
|
||||||
|
|
|
@ -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,
|
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)
|
u32 life_time, struct wpa_ptk *ptk)
|
||||||
{
|
{
|
||||||
if (sm->ctx->store_ptk)
|
if (sm->ctx->store_ptk)
|
||||||
|
|
|
@ -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)
|
u32 life_time, const struct wpa_ptk *ptk)
|
||||||
{
|
{
|
||||||
struct wpa_supplicant *wpa_s = ctx;
|
struct wpa_supplicant *wpa_s = ctx;
|
||||||
|
|
Loading…
Reference in a new issue