EHT: Support punct_bitmap overriding in HE element generation

This was already added for VHT, but a similar change is needed for HE as
well.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2024-03-08 10:12:16 +02:00 committed by Jouni Malinen
parent c96c3adc36
commit 131ee59266

View file

@ -225,10 +225,11 @@ u8 * hostapd_eid_he_operation(struct hostapd_data *hapd, u8 *eid)
u8 seg0 = hapd->iconf->he_oper_centr_freq_seg0_idx; u8 seg0 = hapd->iconf->he_oper_centr_freq_seg0_idx;
u8 seg1 = hostapd_get_oper_centr_freq_seg1_idx(hapd->iconf); u8 seg1 = hostapd_get_oper_centr_freq_seg1_idx(hapd->iconf);
u8 control; u8 control;
#ifdef CONFIG_IEEE80211BE #ifdef CONFIG_IEEE80211BE
if (hapd->iconf->punct_bitmap) { u16 punct_bitmap = hostapd_get_punct_bitmap(hapd);
punct_update_legacy_bw(hapd->iconf->punct_bitmap,
if (punct_bitmap) {
punct_update_legacy_bw(punct_bitmap,
hapd->iconf->channel, hapd->iconf->channel,
&oper_chwidth, &seg0, &seg1); &oper_chwidth, &seg0, &seg1);
} }