]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Fix length of Bandwidth Indication subelement
authorShayne Chen <shayne.chen@mediatek.com>
Thu, 5 Sep 2024 05:55:28 +0000 (13:55 +0800)
committerJouni Malinen <j@w1.fi>
Sat, 21 Dec 2024 09:28:39 +0000 (11:28 +0200)
commit982c634accb1c9890902622a0bc82742f69909a6
treec0c0b3a50247cca9b78b27dbfb4c8cb78672a49b
parent290a793b0237a2cc7c4099cc72960b47afd231f2
hostapd: Fix length of Bandwidth Indication subelement

The default length of the Bandwidth Indication subelement should be
equal to the minimum size of ieee80211_bw_ind_element structure. The
previously used value truncated this subelement by one octet.

Fixes: c7e704bdf9c3 ("hostapd: Add Bandwidth Indication subelement support for channel switch")
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Allen Ye <allen.ye@mediatek.com>
src/ap/ieee802_11.c