]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Mark wpa_auth_remove_ptksa() static
authorJouni Malinen <quic_jouni@quicinc.com>
Tue, 21 Feb 2023 15:10:40 +0000 (17:10 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 21 Feb 2023 15:21:52 +0000 (17:21 +0200)
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 <quic_jouni@quicinc.com>
src/ap/wpa_auth.c

index b048f0e25189dfe04414f5df0d400900b5f372f5..c4fc3c5ad4dec2961c1d03a40a23a0c765f29584 100644 (file)
@@ -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)
 {