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>
This commit is contained in:
Jouni Malinen 2012-12-18 15:14:54 +02:00
parent c8d22af88f
commit 77d7b090e0

View 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)