]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove compiler warning on CONFIG_NO_WPA build
authorJouni Malinen <j@w1.fi>
Tue, 18 Dec 2012 13:14:54 +0000 (15:14 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 18 Dec 2012 13:14:54 +0000 (15:14 +0200)
wpa_supplicant_set_rekey_offload() is used only if CONFIG_NO_WPA is not
defined.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/wpas_glue.c

index 1ba4c92bcaf433843fac1958779786d0498ecdde..6f69ddb42291be9935027e2d25ec63de47988684 100644 (file)
@@ -806,6 +806,7 @@ int wpa_supplicant_init_eapol(struct wpa_supplicant *wpa_s)
 }
 
 
+#ifndef CONFIG_NO_WPA
 static void wpa_supplicant_set_rekey_offload(void *ctx, const u8 *kek,
                                             const u8 *kck,
                                             const u8 *replay_ctr)
@@ -814,6 +815,7 @@ static void wpa_supplicant_set_rekey_offload(void *ctx, const u8 *kek,
 
        wpa_drv_set_rekey_info(wpa_s, kek, kck, replay_ctr);
 }
+#endif /* CONFIG_NO_WPA */
 
 
 int wpa_supplicant_init_wpa(struct wpa_supplicant *wpa_s)