WPA: Add a function to get PMKSA cache entry
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
6709b4ceb8
commit
a84ba92fa0
2 changed files with 22 additions and 0 deletions
|
@ -3786,6 +3786,16 @@ int wpa_sm_pmksa_exists(struct wpa_sm *sm, const u8 *bssid,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
struct rsn_pmksa_cache_entry * wpa_sm_pmksa_cache_get(struct wpa_sm *sm,
|
||||||
|
const u8 *aa,
|
||||||
|
const u8 *pmkid,
|
||||||
|
const void *network_ctx,
|
||||||
|
int akmp)
|
||||||
|
{
|
||||||
|
return pmksa_cache_get(sm->pmksa, aa, pmkid, network_ctx, akmp);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void wpa_sm_drop_sa(struct wpa_sm *sm)
|
void wpa_sm_drop_sa(struct wpa_sm *sm)
|
||||||
{
|
{
|
||||||
wpa_dbg(sm->ctx->msg_ctx, MSG_DEBUG, "WPA: Clear old PMK and PTK");
|
wpa_dbg(sm->ctx->msg_ctx, MSG_DEBUG, "WPA: Clear old PMK and PTK");
|
||||||
|
|
|
@ -190,6 +190,11 @@ void wpa_sm_pmksa_cache_add(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
|
||||||
int wpa_sm_pmksa_exists(struct wpa_sm *sm, const u8 *bssid,
|
int wpa_sm_pmksa_exists(struct wpa_sm *sm, const u8 *bssid,
|
||||||
const void *network_ctx);
|
const void *network_ctx);
|
||||||
void wpa_sm_drop_sa(struct wpa_sm *sm);
|
void wpa_sm_drop_sa(struct wpa_sm *sm);
|
||||||
|
struct rsn_pmksa_cache_entry * wpa_sm_pmksa_cache_get(struct wpa_sm *sm,
|
||||||
|
const u8 *aa,
|
||||||
|
const u8 *pmkid,
|
||||||
|
const void *network_ctx,
|
||||||
|
int akmp);
|
||||||
int wpa_sm_has_ptk(struct wpa_sm *sm);
|
int wpa_sm_has_ptk(struct wpa_sm *sm);
|
||||||
int wpa_sm_has_ptk_installed(struct wpa_sm *sm);
|
int wpa_sm_has_ptk_installed(struct wpa_sm *sm);
|
||||||
|
|
||||||
|
@ -366,6 +371,13 @@ static inline void wpa_sm_drop_sa(struct wpa_sm *sm)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline struct rsn_pmksa_cache_entry *
|
||||||
|
wpa_sm_pmksa_cache_get(struct wpa_sm *sm, const u8 *aa, const u8 *pmkid,
|
||||||
|
const void *network_ctx, int akmp)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
static inline int wpa_sm_has_ptk(struct wpa_sm *sm)
|
static inline int wpa_sm_has_ptk(struct wpa_sm *sm)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue