aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_glue.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-12-18 13:14:54 (GMT)
committerJouni Malinen <j@w1.fi>2012-12-18 13:14:54 (GMT)
commit77d7b090e05fda06de6541da600175bcab799025 (patch)
treef91b716a4bd70c24ee4a5a322251fd13c2e5b180 /wpa_supplicant/wpas_glue.c
parentc8d22af88ff93522b4f8edfde40e2aee6a24dc3e (diff)
downloadhostap-77d7b090e05fda06de6541da600175bcab799025.zip
hostap-77d7b090e05fda06de6541da600175bcab799025.tar.gz
hostap-77d7b090e05fda06de6541da600175bcab799025.tar.bz2
Remove compiler warning on CONFIG_NO_WPA build
wpa_supplicant_set_rekey_offload() is used only if CONFIG_NO_WPA is not defined. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/wpas_glue.c')
-rw-r--r--wpa_supplicant/wpas_glue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c
index 1ba4c92..6f69ddb 100644
--- a/wpa_supplicant/wpas_glue.c
+++ b/wpa_supplicant/wpas_glue.c
@@ -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)