]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Fix wrong puncturing bitmap in Bandwidth Indication subelement
authorAllen Ye <allen.ye@mediatek.com>
Thu, 5 Sep 2024 05:55:30 +0000 (13:55 +0800)
committerJouni Malinen <j@w1.fi>
Sat, 21 Dec 2024 09:39:14 +0000 (11:39 +0200)
The Bandwidth Indication subelement should present the puncturing bitmap
of channel switch request, but the bitmap returned by
hostapd_get_punct_bitmap() is the original one.

Co-developed-by: Money Wang <money.wang@mediatek.com>
Signed-off-by: Allen Ye <allen.ye@mediatek.com>
src/ap/ieee802_11.c

index 35e3e710ca21c7712313ad35b648918f194beb14..409f39916b91d04ea8f0f7af7170b64a49ee982f 100644 (file)
@@ -7429,7 +7429,7 @@ static u8 * hostapd_eid_wb_channel_switch(struct hostapd_data *hapd, u8 *eid,
 static u8 * hostapd_eid_bw_indication(struct hostapd_data *hapd, u8 *eid,
                                      u8 chan1, u8 chan2)
 {
-       u16 punct_bitmap = hostapd_get_punct_bitmap(hapd);
+       u16 punct_bitmap = hapd->cs_freq_params.punct_bitmap;
        struct ieee80211_bw_ind_element *bw_ind_elem;
        size_t elen = 4;