]> git.ipfire.org Git - thirdparty/hostap.git/commit
Clean up hostapd_get_he_twt_responder() processing
authorJouni Malinen <j@w1.fi>
Sun, 8 Mar 2020 14:28:03 +0000 (16:28 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 8 Mar 2020 14:28:03 +0000 (16:28 +0200)
commit15d63c6043f6e30b73054510ce22343783b895fb
tree57429d2f237012f2ab04d5a39bb68755af075105
parent7aa47fe5fc9660c280f3afb65fa7cfac83106fcd
Clean up hostapd_get_he_twt_responder() processing

mode->he_capab is an array and as such, there is no point in checking
whether it is NULL since that cannot be the case. Check for the
he_supported flag instead. In addition, convert the TWT responder
capability bit into a fixed value 1 to avoid any surprising to the
callers. In practice, neither of these changes results in different
behavior in the current implementation, but this is more robust.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/ieee802_11_he.c