qcacmn: Replace CONFIG_MCL_REGDB with CONFIG_REG_CLIENT

Do not use MCL in the macro. Use feature name to define macro.

This is for CONFIG_MCL_REGDB cleanup.

Change-Id: I5a3f40da74e2c4476dbf2d4d4200502b9b9e9653
CRs-Fixed: 2411991
This commit is contained in:
bings 2019-03-08 10:49:52 +08:00 • committed by nshrivas
commit 17e1cb5cf4
5 changed files with 8 additions and 8 deletions

View file

@ -25,7 +25,7 @@
#ifndef __REG_CALLBKS_H_
#define __REG_CALLBKS_H_
#ifdef CONFIG_MCL_REGDB
#ifdef CONFIG_REG_CLIENT
/**
* reg_register_chan_change_callback() - Register channel change callbacks
* @psoc: Pointer to psoc

View file

@ -281,7 +281,7 @@ enum reg_domain {
WORLD_6C = 0x6C,
};
#ifndef CONFIG_MCL_REGDB
#ifndef CONFIG_REG_CLIENT
const struct country_code_to_reg_domain g_all_countries[] = {
{CTRY_AFGHANISTAN, ETSI1_WORLD, "AF", 40, 160, 0},
{CTRY_ALBANIA, ETSI1_WORLD, "AL", 40, 160, 0},

View file

@ -42,7 +42,7 @@
- REG_CH_TO_FREQ(reg_get_chan_enum(curchan)) \
> REG_SBS_SEPARATION_THRESHOLD)
#ifdef CONFIG_MCL_REGDB
#ifdef CONFIG_REG_CLIENT
/**
* reg_chan_has_dfs_attribute() - check channel has dfs attribue or not
* @ch: channel number.
@ -385,7 +385,7 @@ bool reg_ignore_default_country(struct wlan_regulatory_psoc_priv_obj *soc_reg,
}
#endif
#if defined(WLAN_FEATURE_DSRC) && defined(CONFIG_MCL_REGDB)
#if defined(WLAN_FEATURE_DSRC) && defined(CONFIG_REG_CLIENT)
/**
* reg_is_dsrc_chan () - Checks the channel for DSRC or not
* @chan: channel
@ -411,7 +411,7 @@ reg_is_etsi13_srd_chan_allowed_master_mode(struct wlan_objmgr_pdev *pdev)
{
return true;
}
#elif defined(CONFIG_MCL_REGDB)
#elif defined(CONFIG_REG_CLIENT)
static inline bool reg_is_dsrc_chan(struct wlan_objmgr_pdev *pdev,
uint32_t chan)
{
@ -469,7 +469,7 @@ static inline bool reg_is_etsi13_srd_chan(struct wlan_objmgr_pdev *pdev,
}
#endif
#if defined(DISABLE_CHANNEL_LIST) && defined(CONFIG_MCL_REGDB)
#if defined(DISABLE_CHANNEL_LIST) && defined(CONFIG_REG_CLIENT)
/**
* set_disable_channel_state() - Set disable channel state flag
* @pdev_priv_obj: Pointer to pdev object

View file

@ -177,7 +177,7 @@ 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);
#ifdef CONFIG_MCL_REGDB
#ifdef CONFIG_REG_CLIENT
/**
* wlan_reg_read_current_country() - Read the current country for the regdomain
* @country: pointer to the country code.

View file

@ -116,7 +116,7 @@ QDF_STATUS ucfg_reg_get_current_cc(struct wlan_objmgr_pdev *pdev,
return reg_get_current_cc(pdev, rd);
}
#ifdef CONFIG_MCL_REGDB
#ifdef CONFIG_REG_CLIENT
/**
* ucfg_reg_set_band() - Sets the band information for the PDEV
* @pdev: The physical pdev to set the band for