qcacmn: Add API to get FCC constraint info

Add API to get FCC constraint info from regulatory pdev private object.

Change-Id: I038f7e35c15d36213d898f349b6c521b2a2360f2
CRs-Fixed: 2431414
此提交包含在:
Rajeev Kumar Sirasanagandla
2019-04-08 17:52:33 +05:30
提交者 nshrivas
父節點 e761764291
當前提交 6dd26922bd
共有 6 個檔案被更改,包括 65 行新增2 行删除

查看文件

@@ -177,6 +177,16 @@ QDF_STATUS wlan_reg_get_channel_list_with_power(struct wlan_objmgr_pdev *pdev,
QDF_STATUS wlan_reg_read_default_country(struct wlan_objmgr_psoc *psoc,
uint8_t *country);
/**
* wlan_reg_get_fcc_constraint() - Check FCC constraint on given frequency
* @pdev: physical dev to get
* @freq: frequency to be checked
*
* Return: If FCC constraint is on applied given frequency return true
* else return false.
*/
bool wlan_reg_get_fcc_constraint(struct wlan_objmgr_pdev *pdev, uint32_t freq);
#ifdef CONFIG_REG_CLIENT
/**
* wlan_reg_read_current_country() - Read the current country for the regdomain