]> git.ipfire.org Git - thirdparty/hostap.git/commit
WNM: Ignore WNM-Sleep Mode Request in wnm_sleep_mode=0 case
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 20 Oct 2017 14:39:42 +0000 (17:39 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 20 Oct 2017 14:39:42 +0000 (17:39 +0300)
commit114f2830d2c2aee6db23d48240e93415a256a37c
tree0ce0089f82d6bb30e29b26e21eb36e4d441fc8fd
parentc9dc89968d3790f125b9c3ca5d9431d654738cf9
WNM: Ignore WNM-Sleep Mode Request in wnm_sleep_mode=0 case

The hostapd wnm_sleep_mode parameter was previously used to control
advertisement of WNM-Sleep Mode support, but it was not used when
processing a request to use WNM-Sleep Mode. Add an explicit check during
request processing as well so that any misbehaving station is ignored.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/wnm_ap.c