qcacld-3.0: Define new_ch_width in csa_offload_params as phy_ch_width

Currently sme_switch_channel set new_ch_width as phy_ch_width, while
wma_csa_offload_handler set new_ch_width as raw bit in wide bandwidth
channel switch IE.
Clean up the code. Define new_ch_width in csa_offload_params as
phy_ch_width.

Change-Id: Iadecc7693bf4ffd9f9562405ef18ea9d25d45c9e
CRs-Fixed: 3324762
This commit is contained in:
Bing Sun
2022-10-31 17:02:07 +08:00
committed by Madan Koyyalamudi
parent 2079c4033e
commit 09b25d7556
5 changed files with 35 additions and 5 deletions

View File

@@ -1050,6 +1050,17 @@ QDF_STATUS mlme_update_tgt_he_caps_in_cfg(struct wlan_objmgr_psoc *psoc,
struct wma_tgt_cfg *cfg);
#endif
/**
* wlan_mlme_convert_vht_op_bw_to_phy_ch_width() - convert channel width in VHT
* operation IE to phy_ch_width
* @channel_width: channel width in VHT operation IE. If it is 0, please use HT
* information IE to check whether it is 20MHz or 40MHz.
*
* Return: phy_ch_width
*/
enum phy_ch_width wlan_mlme_convert_vht_op_bw_to_phy_ch_width(
uint8_t channel_width);
#ifdef WLAN_FEATURE_11BE
/**
* mlme_update_tgt_eht_caps_in_cfg() - Update tgt eht cap in mlme component