diff options
Diffstat (limited to 'src/common/ptksa_cache.h')
-rw-r--r-- | src/common/ptksa_cache.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/common/ptksa_cache.h b/src/common/ptksa_cache.h index 28ef2914..6182215c 100644 --- a/src/common/ptksa_cache.h +++ b/src/common/ptksa_cache.h @@ -23,6 +23,10 @@ struct ptksa_cache_entry { os_time_t expiration; u32 cipher; u8 addr[ETH_ALEN]; + u8 own_addr[ETH_ALEN]; + void (*cb)(struct ptksa_cache_entry *e); + void *ctx; + u32 akmp; }; #ifdef CONFIG_PTKSA_CACHE @@ -35,9 +39,13 @@ struct ptksa_cache_entry * ptksa_cache_get(struct ptksa_cache *ptksa, const u8 *addr, u32 cipher); int ptksa_cache_list(struct ptksa_cache *ptksa, char *buf, size_t len); struct ptksa_cache_entry * ptksa_cache_add(struct ptksa_cache *ptksa, + const u8 *own_addr, const u8 *addr, u32 cipher, u32 life_time, - const struct wpa_ptk *ptk); + const struct wpa_ptk *ptk, + void (*cb) + (struct ptksa_cache_entry *e), + void *ctx, u32 akmp); void ptksa_cache_flush(struct ptksa_cache *ptksa, const u8 *addr, u32 cipher); #else /* CONFIG_PTKSA_CACHE */ @@ -64,8 +72,9 @@ static inline int ptksa_cache_list(struct ptksa_cache *ptksa, } static inline struct ptksa_cache_entry * -ptksa_cache_add(struct ptksa_cache *ptksa, const u8 *addr, u32 cipher, - u32 life_time, const struct wpa_ptk *ptk) +ptksa_cache_add(struct ptksa_cache *ptksa, const u8 *own_addr, const u8 *addr, + u32 cipher, u32 life_time, const struct wpa_ptk *ptk, + void (*cb)(struct ptksa_cache_entry *e), void *ctx, u32 akmp) { return NULL; } |