]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Use consistent ifdef CONFIG_NO_WPA blocks
authorJouni Malinen <j@w1.fi>
Sun, 22 Dec 2024 16:17:19 +0000 (18:17 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 22 Dec 2024 16:17:19 +0000 (18:17 +0200)
This is needed to avoid compiler warnings about unused static functions.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wpas_glue.c

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