From: Jouni Malinen Date: Sun, 22 Dec 2024 16:17:19 +0000 (+0200) Subject: Use consistent ifdef CONFIG_NO_WPA blocks X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=631fbbcfc72ad07564a4e57bac1976840f1036fb;p=thirdparty%2Fhostap.git Use consistent ifdef CONFIG_NO_WPA blocks This is needed to avoid compiler warnings about unused static functions. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c index e776d5f92..ec363c9bb 100644 --- a/wpa_supplicant/wpas_glue.c +++ b/wpa_supplicant/wpas_glue.c @@ -1412,8 +1412,6 @@ static void wpa_supplicant_store_ptk(void *ctx, const u8 *addr, int cipher, ptk, NULL, NULL, 0); } -#endif /* CONFIG_NO_WPA */ - #ifdef CONFIG_PASN static int wpa_supplicant_set_ltf_keyseed(void *_wpa_s, const u8 *own_addr, @@ -1448,6 +1446,8 @@ static void wpa_supplicant_ssid_verified(void *_wpa_s) wpa_msg(wpa_s, MSG_INFO, "RSN: SSID matched expected value"); } +#endif /* CONFIG_NO_WPA */ + int wpa_supplicant_init_wpa(struct wpa_supplicant *wpa_s) {