]> git.ipfire.org Git - thirdparty/hostap.git/commit
HE: Fix HE Capabilities element variable length encoding
authorJohn Crispin <john@phrozen.org>
Mon, 20 May 2019 07:55:10 +0000 (09:55 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 27 May 2019 13:30:23 +0000 (16:30 +0300)
commit8f5fc369e2638bc83fcf285fa440b56deaab48b1
tree394f341b7188bcfd3b41005c6ed93692f43cb657
parent0dbc894f466e6f35fb6b5c1bf673cc65c12a154a
HE: Fix HE Capabilities element variable length encoding

The HE Capibilities element has dynamic size due to the variable length
and optional fields at the end. Mask out the channel width capabilities
that are less than the configured. Only add the MCS/NSS sets for the
announced channel widths and also add the PPET elements.

Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com>
Signed-off-by: John Crispin <john@phrozen.org>
src/ap/ieee802_11_he.c
src/common/ieee802_11_defs.h