qcacld-3.0: Generate puncture bitmap for STA based on bandwidth

Puncture bitmap is binding with channel bandwidth. If the STA can't
support bandwidth as AP broadcasts, STA need extract puncture bitmap
based on the negotiated bandwidth.

Generate puncture bitmap for STA based on negotiated bandwidth.

Change-Id: Iad303b220fc2e2c5a1b8c125f06300e414bf1fbd
CRs-Fixed: 3207676
Šī revīzija ir iekļauta:
Bing Sun
2022-05-27 17:25:37 +08:00
revīziju iesūtīja Madan Koyyalamudi
vecāks 6b856c0419
revīzija d602cb94cf
3 mainīti faili ar 70 papildinājumiem un 7 dzēšanām

Parādīt failu

@@ -981,6 +981,16 @@ QDF_STATUS mlme_update_tgt_he_caps_in_cfg(struct wlan_objmgr_psoc *psoc,
*/
QDF_STATUS mlme_update_tgt_eht_caps_in_cfg(struct wlan_objmgr_psoc *psoc,
struct wma_tgt_cfg *cfg);
/**
* wlan_mlme_convert_eht_op_bw_to_phy_ch_width() - convert channel width in eht
* operation IE to phy_ch_width
* @channel_width: channel width in eht operation IE
*
* Return: phy_ch_width
*/
enum phy_ch_width wlan_mlme_convert_eht_op_bw_to_phy_ch_width(
uint8_t channel_width);
#endif
/**

Parādīt failu

@@ -1042,6 +1042,23 @@ QDF_STATUS mlme_update_tgt_eht_caps_in_cfg(struct wlan_objmgr_psoc *psoc,
}
return QDF_STATUS_SUCCESS;
}
enum phy_ch_width wlan_mlme_convert_eht_op_bw_to_phy_ch_width(
uint8_t channel_width)
{
enum phy_ch_width phy_bw = CH_WIDTH_20MHZ;
if (channel_width == WLAN_EHT_CHWIDTH_320)
phy_bw = CH_WIDTH_320MHZ;
else if (channel_width == WLAN_EHT_CHWIDTH_160)
phy_bw = CH_WIDTH_160MHZ;
else if (channel_width == WLAN_EHT_CHWIDTH_80)
phy_bw = CH_WIDTH_80MHZ;
else if (channel_width == WLAN_EHT_CHWIDTH_40)
phy_bw = CH_WIDTH_40MHZ;
return phy_bw;
}
#endif
#ifdef WLAN_FEATURE_11BE_MLO