qcacmn: Add an API to check if a given channel width is supported
Add an API to check if a given channel width is supported on a given pdev by looking at its wireless modes. CRs-Fixed: 3042932 Change-Id: I7194412b147147eba00dbe860875e46dac602b5b
This commit is contained in:

کامیت شده توسط
Madan Koyyalamudi

والد
29817dce94
کامیت
697dce6937
@@ -1856,4 +1856,17 @@ wlan_reg_set_ap_pwr_and_update_chan_list(struct wlan_objmgr_pdev *pdev,
|
||||
* Return: true if FW supports new command or false otherwise
|
||||
*/
|
||||
bool wlan_reg_is_ext_tpc_supported(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* wlan_reg_is_chwidth_supported() - Check if given channel width is supported
|
||||
* on a given pdev
|
||||
* @pdev: pdev pointer
|
||||
* @ch_width: channel width.
|
||||
* @is_supported: whether the channel width is supported
|
||||
*
|
||||
* Return QDF_STATUS_SUCCESS of operation
|
||||
*/
|
||||
QDF_STATUS wlan_reg_is_chwidth_supported(struct wlan_objmgr_pdev *pdev,
|
||||
enum phy_ch_width ch_width,
|
||||
bool *is_supported);
|
||||
#endif
|
||||
|
@@ -1411,3 +1411,12 @@ bool wlan_reg_is_noaction_on_afc_pwr_evt(struct wlan_objmgr_pdev *pdev)
|
||||
return reg_is_noaction_on_afc_pwr_evt(pdev);
|
||||
}
|
||||
#endif
|
||||
|
||||
QDF_STATUS wlan_reg_is_chwidth_supported(struct wlan_objmgr_pdev *pdev,
|
||||
enum phy_ch_width ch_width,
|
||||
bool *is_supported)
|
||||
{
|
||||
return reg_is_chwidth_supported(pdev, ch_width, is_supported);
|
||||
}
|
||||
|
||||
qdf_export_symbol(wlan_reg_is_chwidth_supported);
|
||||
|
مرجع در شماره جدید
Block a user