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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user