qcacmn: Add API wlan_reg_get_next_lower_bandwidth

Add API wlan_reg_get_next_lower_bandwidth

Change-Id: Iff8f112cc848373ea7b0275b4a8613cd43047166
CRs-Fixed: 3639903
This commit is contained in:
Jianmin Zhu
2023-10-11 21:44:18 +08:00
committed by Rahul Choudhary
parent 55bf01b553
commit 34c894f480
2 changed files with 13 additions and 0 deletions

View File

@@ -529,6 +529,14 @@ qdf_freq_t wlan_reg_ch_to_freq(uint32_t ch_enum);
QDF_STATUS wlan_reg_read_default_country(struct wlan_objmgr_psoc *psoc, QDF_STATUS wlan_reg_read_default_country(struct wlan_objmgr_psoc *psoc,
uint8_t *country); uint8_t *country);
/**
* wlan_get_next_lower_bandwidth() - Get next lower bandwidth
* @ch_width: Channel width
*
* Return: Channel width
*/
enum phy_ch_width wlan_get_next_lower_bandwidth(enum phy_ch_width ch_width);
/** /**
* wlan_reg_get_max_5g_bw_from_country_code() - Get the max 5G * wlan_reg_get_max_5g_bw_from_country_code() - Get the max 5G
* bandwidth from country code * bandwidth from country code

View File

@@ -51,6 +51,11 @@ QDF_STATUS wlan_reg_read_default_country(struct wlan_objmgr_psoc *psoc,
return reg_read_default_country(psoc, country); return reg_read_default_country(psoc, country);
} }
enum phy_ch_width wlan_get_next_lower_bandwidth(enum phy_ch_width ch_width)
{
return get_next_lower_bandwidth(ch_width);
}
QDF_STATUS wlan_reg_read_current_country(struct wlan_objmgr_psoc *psoc, QDF_STATUS wlan_reg_read_current_country(struct wlan_objmgr_psoc *psoc,
uint8_t *country) uint8_t *country)
{ {