From ba6954874e60a598a2010e467c03444709c241ad Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 21 Feb 2023 17:10:40 +0200 Subject: [PATCH] Mark wpa_auth_remove_ptksa() static This function is not used outside wpa_auth.c and it is not mentioned in any header file either, so it should have been marked static. Fixes: f2f8e4f45830 ("Add PTKSA cache to hostapd") Signed-off-by: Jouni Malinen --- src/ap/wpa_auth.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c index b048f0e25..c4fc3c5ad 100644 --- a/src/ap/wpa_auth.c +++ b/src/ap/wpa_auth.c @@ -251,13 +251,14 @@ void wpa_auth_store_ptksa(struct wpa_authenticator *wpa_auth, } -void wpa_auth_remove_ptksa(struct wpa_authenticator *wpa_auth, - const u8 *addr, int cipher) +static void wpa_auth_remove_ptksa(struct wpa_authenticator *wpa_auth, + const u8 *addr, int cipher) { if (wpa_auth->cb->clear_ptksa) wpa_auth->cb->clear_ptksa(wpa_auth->cb_ctx, addr, cipher); } + void wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *txt) {