mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-26 13:49:35 -05:00
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>