WNM: Fix build without CONFIG_SME=y
Commit b6668734ab
missed #ifdef CONFIG_SME
protection around wpa_s->sme access.
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b6668734ab
commit
597c7a8dd8
1 changed files with 2 additions and 0 deletions
|
@ -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
|
/* TODO: send keep alive frame - better use some short unicast data
|
||||||
* frame that gets protected if PTK is set */
|
* frame that gets protected if PTK is set */
|
||||||
|
|
||||||
|
#ifdef CONFIG_SME
|
||||||
if (wpa_s->sme.bss_max_idle_period) {
|
if (wpa_s->sme.bss_max_idle_period) {
|
||||||
unsigned int msec;
|
unsigned int msec;
|
||||||
msec = wpa_s->sme.bss_max_idle_period * 1024; /* times 1000 */
|
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,
|
eloop_register_timeout(msec / 1000, msec % 1000 * 1000,
|
||||||
wnm_bss_keep_alive, wpa_s, NULL);
|
wnm_bss_keep_alive, wpa_s, NULL);
|
||||||
}
|
}
|
||||||
|
#endif /* CONFIG_SME */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue