aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-05-28 01:17:41 (GMT)
committerJouni Malinen <j@w1.fi>2012-05-28 01:17:41 (GMT)
commit597c7a8dd8e15793a9961482c9e8022794c65605 (patch)
tree8567c238dc3fa705256cbe226419d5259807ca8b /wpa_supplicant/events.c
parentb6668734ab8ac235f129d1cd0aff4c4e1c922b41 (diff)
downloadhostap-597c7a8dd8e15793a9961482c9e8022794c65605.zip
hostap-597c7a8dd8e15793a9961482c9e8022794c65605.tar.gz
hostap-597c7a8dd8e15793a9961482c9e8022794c65605.tar.bz2
WNM: Fix build without CONFIG_SME=y
Commit b6668734ab8ac235f129d1cd0aff4c4e1c922b41 missed #ifdef CONFIG_SME protection around wpa_s->sme access. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 3e2fe18..61db038 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1216,6 +1216,7 @@ static void wnm_bss_keep_alive(void *eloop_ctx, void *sock_ctx)
/* TODO: send keep alive frame - better use some short unicast data
* frame that gets protected if PTK is set */
+#ifdef CONFIG_SME
if (wpa_s->sme.bss_max_idle_period) {
unsigned int msec;
msec = wpa_s->sme.bss_max_idle_period * 1024; /* times 1000 */
@@ -1224,6 +1225,7 @@ static void wnm_bss_keep_alive(void *eloop_ctx, void *sock_ctx)
eloop_register_timeout(msec / 1000, msec % 1000 * 1000,
wnm_bss_keep_alive, wpa_s, NULL);
}
+#endif /* CONFIG_SME */
}