[06/14] WPA: Add a function to get PMKSA cache entry
diff mbox series

Message ID 20200224091529.15259-7-ilan.peer@intel.com
State Deferred
Headers show
Series
  • Support base Pre association Security Negotiation (PASN)
Related show

Commit Message

Peer, Ilan Feb. 24, 2020, 9:15 a.m. UTC
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
---
 src/rsn_supp/wpa.c | 10 ++++++++++
 src/rsn_supp/wpa.h | 14 ++++++++++++++
 2 files changed, 24 insertions(+)

Comments

Jouni Malinen March 1, 2020, 3:07 p.m. UTC | #1
While in theory there would be no issues added patches 6-8 from the view
point of P802.11az stability, I'm not sure this would be of significant
benefit to do before the main PASN changes are ready to go in. As such,
I'm thinking of deferring these patches 6-8 now and same for the
following patches 9-14 that actually do depend on P802.11az being a bit
more ready to be able to expect it to be more or less final on the
technical design side.
Peer, Ilan March 1, 2020, 8:23 p.m. UTC | #2
On Sun, 2020-03-01 at 17:07 +0200, Jouni Malinen wrote:
> While in theory there would be no issues added patches 6-8 from the view
> point of P802.11az stability, I'm not sure this would be of significant
> benefit to do before the main PASN changes are ready to go in. As such,
> I'm thinking of deferring these patches 6-8 now and same for the
> following patches 9-14 that actually do depend on P802.11az being a bit
> more ready to be able to expect it to be more or less final on the
> technical design side.
>  

Agree. There is no much point of adding these without PASN.

Regards,

Ilan.

Patch
diff mbox series

diff --git a/src/rsn_supp/wpa.c b/src/rsn_supp/wpa.c
index 4a64fbb455..c9ed784765 100644
--- a/src/rsn_supp/wpa.c
+++ b/src/rsn_supp/wpa.c
@@ -3580,6 +3580,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)
 {
 	wpa_dbg(sm->ctx->msg_ctx, MSG_DEBUG, "WPA: Clear old PMK and PTK");
diff --git a/src/rsn_supp/wpa.h b/src/rsn_supp/wpa.h
index b9c3cb53f7..07e4072dec 100644
--- a/src/rsn_supp/wpa.h
+++ b/src/rsn_supp/wpa.h
@@ -177,6 +177,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,
 			const void *network_ctx);
 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_installed(struct wpa_sm *sm);
 
@@ -343,6 +348,15 @@  static inline 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)
+{
+	return NULL;
+}
+
 static inline int wpa_sm_has_ptk(struct wpa_sm *sm)
 {
 	return 0;