aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/wpa.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-08-03 17:17:58 (GMT)
committerJouni Malinen <j@w1.fi>2008-08-03 17:17:58 (GMT)
commitbf98f7f3bcf827f5cdcd2179dfcf3b0c55a8cd16 (patch)
tree62aad7eefae59afe0db75031bcd720bcbac040f4 /hostapd/wpa.c
parent3ff77e070de25ba9c78528906079e54377e61a95 (diff)
downloadhostap-06-bf98f7f3bcf827f5cdcd2179dfcf3b0c55a8cd16.zip
hostap-06-bf98f7f3bcf827f5cdcd2179dfcf3b0c55a8cd16.tar.gz
hostap-06-bf98f7f3bcf827f5cdcd2179dfcf3b0c55a8cd16.tar.bz2
Added support for opportunistic key caching (OKC)
This allows hostapd to share the PMKSA caches internally when multiple BSSes or radios are being controlled by the same hostapd process.
Diffstat (limited to 'hostapd/wpa.c')
-rw-r--r--hostapd/wpa.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hostapd/wpa.c b/hostapd/wpa.c
index 63efce2..4502808 100644
--- a/hostapd/wpa.c
+++ b/hostapd/wpa.c
@@ -151,6 +151,16 @@ int wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth,
}
+int wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth,
+ int (*cb)(struct wpa_authenticator *a, void *ctx),
+ void *cb_ctx)
+{
+ if (wpa_auth->cb.for_each_auth == NULL)
+ return 0;
+ return wpa_auth->cb.for_each_auth(wpa_auth->cb.ctx, cb, cb_ctx);
+}
+
+
void wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr,
logger_level level, const char *txt)
{