qcacld-3.0: Enable 5.9 ghz channels for US
Add new channel 177 to wiphy struct ieee80211_channel hdd_etsi13_srd_ch and rename the struct to hdd_5dot9_ghz_ch. Add a new ini fcc_5dot9_ghz_chan_in_master_mode to enable/disable new 5.9 GHz channels 169, 173 and 177 in master mode. Change-Id: I68dc3be18277ca0e416a579327f406279458899e CRs-Fixed: 2693707
This commit is contained in:

committed by
snandini

parent
00c6081c69
commit
c66e0c9b04
@@ -95,6 +95,30 @@
|
||||
0, \
|
||||
"enable/disable ETSI SRD channels in master mode")
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* fcc_5dot9_ghz_chan_in_master_mode - Enable/disable 5.9 GHz channels in
|
||||
* master mode for US
|
||||
* @Min: 0
|
||||
* @Max: 1
|
||||
* @Default: 0
|
||||
*
|
||||
* fcc_5dot9_ghz_chan_in_master_mode is to enable/disable 5.9 GHz channels
|
||||
* in master mode for FCC reg domain
|
||||
*
|
||||
* Related: None
|
||||
*
|
||||
* Supported Feature: SAP/P2P-GO
|
||||
*
|
||||
* Usage: Internal/External
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_FCC_5DOT9_GHZ_CHAN_IN_MASTER_MODE CFG_INI_BOOL( \
|
||||
"fcc_5dot9_ghz_chan_in_master_mode", \
|
||||
0, \
|
||||
"enable/disable FCC 5.9 GHz channels in master mode")
|
||||
|
||||
#ifdef SAP_AVOID_ACS_FREQ_LIST
|
||||
#define SAP_AVOID_ACS_FREQ_LIST_DEFAULT ""
|
||||
|
||||
@@ -277,6 +301,7 @@
|
||||
CFG(CFG_ENABLE_PENDING_CHAN_LIST_REQ) \
|
||||
CFG(CFG_ENABLE_11D_IN_WORLD_MODE) \
|
||||
CFG(CFG_ETSI13_SRD_CHAN_IN_MASTER_MODE) \
|
||||
CFG(CFG_FCC_5DOT9_GHZ_CHAN_IN_MASTER_MODE) \
|
||||
CFG(CFG_RESTART_BEACONING_ON_CH_AVOID) \
|
||||
CFG(CFG_INDOOR_CHANNEL_SUPPORT) \
|
||||
CFG(CFG_SCAN_11D_INTERVAL) \
|
||||
|
@@ -2138,6 +2138,7 @@ struct wlan_mlme_mwc {
|
||||
* @self_gen_frm_pwr: self-generated frame power in tx chain mask
|
||||
* for CCK rates
|
||||
* @etsi13_srd_chan_in_master_mode: etsi13 srd chan in master mode
|
||||
* @fcc_5dot9_ghz_chan_in_master_mode: fcc 5.9 GHz chan in master mode
|
||||
* @restart_beaconing_on_ch_avoid: restart beaconing on ch avoid
|
||||
* @indoor_channel_support: indoor channel support
|
||||
* @scan_11d_interval: scan 11d interval
|
||||
@@ -2154,6 +2155,7 @@ struct wlan_mlme_mwc {
|
||||
struct wlan_mlme_reg {
|
||||
uint32_t self_gen_frm_pwr;
|
||||
bool etsi13_srd_chan_in_master_mode;
|
||||
bool fcc_5dot9_ghz_chan_in_master_mode;
|
||||
enum restart_beaconing_on_ch_avoid_rule
|
||||
restart_beaconing_on_ch_avoid;
|
||||
bool indoor_channel_support;
|
||||
|
@@ -3773,6 +3773,18 @@ QDF_STATUS
|
||||
ucfg_mlme_get_etsi13_srd_chan_in_master_mode(struct wlan_objmgr_psoc *psoc,
|
||||
bool *value);
|
||||
|
||||
/**
|
||||
* ucfg_mlme_get_5dot9_ghz_chan_in_master_mode - get fcc 5.9 GHz chan
|
||||
* in master mode
|
||||
* @psoc: pointer to psoc object
|
||||
* @value: pointer to the value which will be filled for the caller
|
||||
*
|
||||
* Return: QDF Status
|
||||
*/
|
||||
QDF_STATUS
|
||||
ucfg_mlme_get_5dot9_ghz_chan_in_master_mode(struct wlan_objmgr_psoc *psoc,
|
||||
bool *value);
|
||||
|
||||
#ifdef SAP_AVOID_ACS_FREQ_LIST
|
||||
/**
|
||||
* ucfg_mlme_get_acs_avoid_freq_list - get acs avoid frequency list
|
||||
|
@@ -1502,6 +1502,24 @@ ucfg_mlme_get_etsi13_srd_chan_in_master_mode(struct wlan_objmgr_psoc *psoc,
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
ucfg_mlme_get_5dot9_ghz_chan_in_master_mode(struct wlan_objmgr_psoc *psoc,
|
||||
bool *value)
|
||||
{
|
||||
struct wlan_mlme_psoc_ext_obj *mlme_obj;
|
||||
|
||||
mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
||||
if (!mlme_obj) {
|
||||
*value = cfg_default(CFG_FCC_5DOT9_GHZ_CHAN_IN_MASTER_MODE);
|
||||
mlme_legacy_err("Failed to get MLME Obj");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
*value = mlme_obj->cfg.reg.fcc_5dot9_ghz_chan_in_master_mode;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
#ifdef SAP_AVOID_ACS_FREQ_LIST
|
||||
QDF_STATUS
|
||||
ucfg_mlme_get_acs_avoid_freq_list(struct wlan_objmgr_psoc *psoc,
|
||||
|
Reference in New Issue
Block a user