qcacmn: User country set based on INI config params

Do not allow userspace to configure regulatory country
when below INIs are set as:
gCountryCodePriority=0
g11dSupportEnabled=1

Change-Id: Iaae8e209fb99802f67d906fcd70d2c7c0a2f8f06
CRs-Fixed: 3499558
This commit is contained in:
Vishal Miskin
2023-06-09 15:04:30 +05:30
committed by Rahul Choudhary
부모 e60150599d
커밋 210aad0930
4개의 변경된 파일55개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@@ -768,6 +768,12 @@ QDF_STATUS ucfg_reg_enable_disable_opclass_chans(struct wlan_objmgr_pdev *pdev,
uint8_t *ieee_chan_list,
uint8_t chan_list_size,
bool global_tbl_lookup);
static inline
bool ucfg_reg_is_user_country_set_allowed(struct wlan_objmgr_psoc *psoc)
{
return true;
}
#else
static inline QDF_STATUS
ucfg_reg_enable_disable_opclass_chans(struct wlan_objmgr_pdev *pdev,
@@ -779,6 +785,15 @@ ucfg_reg_enable_disable_opclass_chans(struct wlan_objmgr_pdev *pdev,
{
return QDF_STATUS_E_NOSUPPORT;
}
/**
* ucfg_reg_is_user_country_set_allowed() - Checks whether user country is
* allowed to set
* @psoc: psoc ptr
*
* Return: bool
*/
bool ucfg_reg_is_user_country_set_allowed(struct wlan_objmgr_psoc *psoc);
#endif
#endif

파일 보기

@@ -171,6 +171,11 @@ QDF_STATUS ucfg_reg_set_keep_6ghz_sta_cli_connection(
return reg_set_keep_6ghz_sta_cli_connection(pdev,
keep_6ghz_sta_cli_connection);
}
bool ucfg_reg_is_user_country_set_allowed(struct wlan_objmgr_psoc *psoc)
{
return reg_is_user_country_set_allowed(psoc);
}
#endif
QDF_STATUS ucfg_reg_get_default_country(struct wlan_objmgr_psoc *psoc,