]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix hostapd BSS_TM_REQ handling of bss_term parameter
authorJouni Malinen <jouni@codeaurora.org>
Mon, 15 Apr 2019 18:11:46 +0000 (21:11 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 15 Apr 2019 18:11:46 +0000 (21:11 +0300)
commit2f68051395593f732057b7ae8b0df5281dfd085c
tree7574afa9ab3ba690e5b9da5096093949b96b9006
parente6ac47b47db70c77b2631b7669165a01f4de2ca8
Fix hostapd BSS_TM_REQ handling of bss_term parameter

The TSF field in BSS termination information was not cleared correctly.
It was supposed to be cleared to all zeros, but the memset call did not
point at offset 2; instead, it cleared it with 0x02 octets and also
cleared the subelement header with 0x02 octets while leaving two last
octets uninitialized.

Fixes: a30dff07fb18 ("Add BSS_TM_REQ command to send BSS Transition Management Request")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
hostapd/ctrl_iface.c