summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDundi Raviteja <dundi@codeaurora.org>2018-05-08 19:01:56 +0530
committernshrivas <nshrivas@codeaurora.org>2018-05-22 00:45:03 -0700
commitd1379674b3b34d944cd03b1cd7fe5f5f589d4566 (patch)
treee6f6f8edd3fc0ff819169837735ff07fc5a2020a
parent588169cfc4f66332a0ca5d1fa83068747b31d7a1 (diff)
qcacld-3.0: Remove ini and iwpriv support for changing SIFS burst mode
Remove support for enabling/disabling SIFS burst mode, SAP DFS channel SIFS burst and SIFS burst duration through ini parameter as well as through IOCTL Change-Id: I3d43afa3c0c85eef470a29b9e7ad812079666278 CRs-Fixed: 2238175
-rw-r--r--core/hdd/inc/wlan_hdd_cfg.h45
-rw-r--r--core/hdd/inc/wlan_hdd_main.h5
-rw-r--r--core/hdd/src/wlan_hdd_cfg.c23
-rw-r--r--core/hdd/src/wlan_hdd_hostapd.c17
-rw-r--r--core/hdd/src/wlan_hdd_main.c11
-rw-r--r--core/hdd/src/wlan_hdd_nan_datapath.c2
-rw-r--r--core/hdd/src/wlan_hdd_wext.c139
-rw-r--r--core/wma/inc/wma.h5
-rw-r--r--core/wma/src/wma_main.c18
9 files changed, 4 insertions, 261 deletions
diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h
index a89f2e615ae5..8c34c2098411 100644
--- a/core/hdd/inc/wlan_hdd_cfg.h
+++ b/core/hdd/inc/wlan_hdd_cfg.h
@@ -8638,11 +8638,6 @@ enum hdd_link_speed_rpt_type {
#define CFG_IGNORE_CAC_MAX (1)
#define CFG_IGNORE_CAC_DEFAULT (0)
-#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_NAME "gEnableSAPDfsChSifsBurst"
-#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_MIN (0)
-#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_MAX (1)
-#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_DEFAULT (1)
-
#define CFG_DFS_RADAR_PRI_MULTIPLIER_NAME "gDFSradarMappingPriMultiplier"
#define CFG_DFS_RADAR_PRI_MULTIPLIER_DEFAULT (4)
#define CFG_DFS_RADAR_PRI_MULTIPLIER_MIN (0)
@@ -8707,32 +8702,6 @@ enum hdd_link_speed_rpt_type {
#define CFG_WLAN_LOGGING_CONSOLE_SUPPORT_DEFAULT (1)
#endif /* WLAN_LOGGING_SOCK_SVC_ENABLE */
-/*
- * <ini>
- * gEnableSifsBurst - Enables Sifs Burst
- * @Min: 0
- * @Max: 3
- * @Default: 0
- *
- * Sifs burst mode configuration
- * 0) disabled
- * 1) enabled, but disabled for legacy mode
- * 3) enabled
- *
- * Related: None
- *
- * Supported Feature: STA
- *
- * Usage: Internal/External
- *
- * </ini>
- */
-
-#define CFG_ENABLE_SIFS_BURST "gEnableSifsBurst"
-#define CFG_ENABLE_SIFS_BURST_MIN (0)
-#define CFG_ENABLE_SIFS_BURST_MAX (3)
-#define CFG_ENABLE_SIFS_BURST_DEFAULT (0)
-
#ifdef WLAN_FEATURE_LPSS
#define CFG_ENABLE_LPASS_SUPPORT "gEnableLpassSupport"
#define CFG_ENABLE_LPASS_SUPPORT_DEFAULT (0)
@@ -10742,15 +10711,6 @@ enum restart_beaconing_on_ch_avoid_rule {
#define CFG_FILTER_MULTICAST_REPLAY_MAX (1)
#define CFG_FILTER_MULTICAST_REPLAY_DEFAULT (1)
-/*
- * This parameter will control SIFS burst duration in FW from 0 to 12 ms.
- * Default value is set to 8ms.
- */
-#define CFG_SIFS_BURST_DURATION_NAME "g_sifs_burst_duration"
-#define CFG_SIFS_BURST_DURATION_MIN (0)
-#define CFG_SIFS_BURST_DURATION_MAX (12)
-#define CFG_SIFS_BURST_DURATION_DEFAULT (8)
-
/* Optimize channel avoidance indication comming from firmware */
#define CFG_OPTIMIZE_CA_EVENT_NAME "goptimize_chan_avoid_event"
#define CFG_OPTIMIZE_CA_EVENT_DISABLE (0)
@@ -15387,7 +15347,6 @@ struct hdd_config {
uint8_t gMaxConcurrentActiveSessions;
uint8_t ignoreCAC;
- bool IsSapDfsChSifsBurstEnabled;
#ifdef FEATURE_GREEN_AP
bool enableGreenAP;
@@ -15416,8 +15375,6 @@ struct hdd_config {
bool wlanLoggingToConsole;
#endif /* WLAN_LOGGING_SOCK_SVC_ENABLE */
- uint8_t enableSifsBurst;
-
#ifdef WLAN_FEATURE_LPSS
bool enable_lpass_support;
#endif
@@ -15605,8 +15562,6 @@ struct hdd_config {
bool go_force_11n_for_11ac;
uint16_t sap_tx_leakage_threshold;
bool multicast_replay_filter;
- /* parameter for indicating sifs burst duration to fw */
- uint8_t sifs_burst_duration;
bool goptimize_chan_avoid_event;
bool enable_go_cts2self_for_sta;
uint32_t tx_aggregation_size;
diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h
index 11dcc65582f7..3c547b39997f 100644
--- a/core/hdd/inc/wlan_hdd_main.h
+++ b/core/hdd/inc/wlan_hdd_main.h
@@ -287,10 +287,7 @@
#define HDD_MIN_TX_POWER (-100) /* minimum tx power */
#define HDD_MAX_TX_POWER (+100) /* maximum tx power */
-/* FW expects burst duration in 1020*ms */
-#define SIFS_BURST_DUR_MULTIPLIER 1020
-#define SIFS_BURST_DUR_MAX 12240
-
+#define HDD_ENABLE_SIFS_BURST_DEFAULT (0)
/* If IPA UC data path is enabled, target should reserve extra tx descriptors
* for IPA data path.
* Then host data path should allow less TX packet pumping in case
diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c
index cebeb65c34d8..e718441712b0 100644
--- a/core/hdd/src/wlan_hdd_cfg.c
+++ b/core/hdd/src/wlan_hdd_cfg.c
@@ -3297,13 +3297,6 @@ struct reg_table_entry g_registry_table[] = {
CFG_IGNORE_CAC_MIN,
CFG_IGNORE_CAC_MAX),
- REG_VARIABLE(CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_NAME, WLAN_PARAM_Integer,
- struct hdd_config, IsSapDfsChSifsBurstEnabled,
- VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
- CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_DEFAULT,
- CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_MIN,
- CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_MAX),
-
REG_VARIABLE(CFG_DFS_RADAR_PRI_MULTIPLIER_NAME, WLAN_PARAM_Integer,
struct hdd_config, dfsRadarPriMultiplier,
VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
@@ -3362,13 +3355,6 @@ struct reg_table_entry g_registry_table[] = {
CFG_WLAN_LOGGING_CONSOLE_SUPPORT_ENABLE),
#endif /* WLAN_LOGGING_SOCK_SVC_ENABLE */
- REG_VARIABLE(CFG_ENABLE_SIFS_BURST, WLAN_PARAM_Integer,
- struct hdd_config, enableSifsBurst,
- VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
- CFG_ENABLE_SIFS_BURST_DEFAULT,
- CFG_ENABLE_SIFS_BURST_MIN,
- CFG_ENABLE_SIFS_BURST_MAX),
-
#ifdef WLAN_FEATURE_LPSS
REG_VARIABLE(CFG_ENABLE_LPASS_SUPPORT, WLAN_PARAM_Integer,
struct hdd_config, enable_lpass_support,
@@ -4437,13 +4423,6 @@ struct reg_table_entry g_registry_table[] = {
CFG_FILTER_MULTICAST_REPLAY_MIN,
CFG_FILTER_MULTICAST_REPLAY_MAX),
- REG_VARIABLE(CFG_SIFS_BURST_DURATION_NAME, WLAN_PARAM_Integer,
- struct hdd_config, sifs_burst_duration,
- VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
- CFG_SIFS_BURST_DURATION_DEFAULT,
- CFG_SIFS_BURST_DURATION_MIN,
- CFG_SIFS_BURST_DURATION_MAX),
-
REG_VARIABLE(CFG_ENABLE_PHY_REG_NAME, WLAN_PARAM_HexInteger,
struct hdd_config, enable_phy_reg_retention,
VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
@@ -6997,8 +6976,6 @@ void hdd_cfg_print(hdd_context_t *pHddCtx)
hdd_debug("Name = [isRoamOffloadEnabled] Value = [%u]",
pHddCtx->config->isRoamOffloadEnabled);
#endif
- hdd_debug("Name = [gEnableSifsBurst] Value = [%u]",
- pHddCtx->config->enableSifsBurst);
#ifdef WLAN_FEATURE_LPSS
hdd_debug("Name = [gEnableLpassSupport] Value = [%u] ",
diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c
index c5de344d4974..ae56f6f54636 100644
--- a/core/hdd/src/wlan_hdd_hostapd.c
+++ b/core/hdd/src/wlan_hdd_hostapd.c
@@ -1805,21 +1805,6 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
}
}
-
- if ((CHANNEL_STATE_DFS ==
- cds_get_channel_state(pHddApCtx->operatingChannel))
- && (pHddCtx->config->IsSapDfsChSifsBurstEnabled == 0)) {
-
- hdd_debug("Set SIFS Burst disable for DFS channel %d",
- pHddApCtx->operatingChannel);
-
- if (wma_cli_set_command(pHostapdAdapter->sessionId,
- WMI_PDEV_PARAM_BURST_ENABLE,
- 0, PDEV_CMD)) {
- hdd_err("Failed to Set SIFS Burst channel: %d",
- pHddApCtx->operatingChannel);
- }
- }
/* Fill the params for sending IWEVCUSTOM Event
* with SOFTAP.enabled
*/
@@ -6484,7 +6469,7 @@ QDF_STATUS hdd_init_ap_mode(hdd_adapter_t *pAdapter, bool reinit)
ret = wma_cli_set_command(pAdapter->sessionId,
WMI_PDEV_PARAM_BURST_ENABLE,
- pHddCtx->config->enableSifsBurst,
+ HDD_ENABLE_SIFS_BURST_DEFAULT,
PDEV_CMD);
if (0 != ret)
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index 0a48b2b56d55..ea4e5c03b4c2 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -3466,7 +3466,7 @@ QDF_STATUS hdd_init_station_mode(hdd_adapter_t *adapter)
ret_val = sme_cli_set_command(adapter->sessionId,
WMI_PDEV_PARAM_BURST_ENABLE,
- hdd_ctx->config->enableSifsBurst,
+ HDD_ENABLE_SIFS_BURST_DEFAULT,
PDEV_CMD);
if (0 != ret_val) {
@@ -10153,15 +10153,6 @@ static int hdd_features_init(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter)
ENTER();
- if (hdd_ctx->config->sifs_burst_duration) {
- set_value = (SIFS_BURST_DUR_MULTIPLIER) *
- hdd_ctx->config->sifs_burst_duration;
-
- if ((set_value > 0) && (set_value <= SIFS_BURST_DUR_MAX))
- sme_cli_set_command(0, WMI_PDEV_PARAM_BURST_DUR,
- set_value, PDEV_CMD);
- }
-
sme_set_chip_pwr_save_fail_cb(hdd_ctx->hHal,
hdd_chip_pwr_save_fail_detected_cb);
diff --git a/core/hdd/src/wlan_hdd_nan_datapath.c b/core/hdd/src/wlan_hdd_nan_datapath.c
index 90a72a179bc8..912043fff457 100644
--- a/core/hdd/src/wlan_hdd_nan_datapath.c
+++ b/core/hdd/src/wlan_hdd_nan_datapath.c
@@ -2391,7 +2391,7 @@ int hdd_init_nan_data_mode(struct hdd_adapter_s *adapter)
ret_val = wma_cli_set_command((int)adapter->sessionId,
(int)WMI_PDEV_PARAM_BURST_ENABLE,
- (int)hdd_ctx->config->enableSifsBurst,
+ (int)HDD_ENABLE_SIFS_BURST_DEFAULT,
PDEV_CMD);
if (0 != ret_val)
hdd_err("WMI_PDEV_PARAM_BURST_ENABLE set failed %d", ret_val);
diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c
index 2d9ded6dd24f..7e8e60ec96ce 100644
--- a/core/hdd/src/wlan_hdd_wext.c
+++ b/core/hdd/src/wlan_hdd_wext.c
@@ -630,44 +630,6 @@ static const struct ccp_freq_chan_map freq_chan_map[] = {
#define WE_SET_QPOWER_MAX_TX_BEFORE_WAKE 57
#define WE_SET_QPOWER_SPEC_PSPOLL_WAKE_INTERVAL 58
#define WE_SET_QPOWER_SPEC_MAX_SPEC_NODATA_PSPOLL 59
-/*
- * <ioctl>
- * burst_enable - Enables or disables the burst feature
- *
- * @INPUT: 0-Disable, 1-Enable
- *
- * @OUTPUT: None
- *
- * This IOCTL enables or disables the burst feature.
- *
- * @E.g: iwpriv wlan0 burst_enable 0
- *
- * Supported Feature: STA
- *
- * Usage: Internal/External
- *
- * </ioctl>
- */
-#define WE_SET_BURST_ENABLE 60
-/*
- * <ioctl>
- * burst_dur - Enables or disables the burst feature
- *
- * @INPUT: int 1…..int 8191 in microseconds
- *
- * @OUTPUT: None
- *
- * This IOCTL sets the burst duration.
- *
- * @E.g: iwpriv wlan0 burst_dur <value>
- *
- * Supported Feature: STA
- *
- * Usage: Internal/External
- *
- * </ioctl>
- */
-#define WE_SET_BURST_DUR 61
/* GTX Commands */
/*
* <ioctl>
@@ -1496,47 +1458,6 @@ static const struct ccp_freq_chan_map freq_chan_map[] = {
#define WE_GET_QPOWER_MAX_TX_BEFORE_WAKE 42
#define WE_GET_QPOWER_SPEC_PSPOLL_WAKE_INTERVAL 43
#define WE_GET_QPOWER_SPEC_MAX_SPEC_NODATA_PSPOLL 44
-/*
- * <ioctl>
- * get_burst_en - Enables or disables the burst feature
- *
- * @INPUT: None
- *
- * @OUTPUT: Enable/disable of burst feature
- * wlan0 get_burst_en:1
- *
- * This IOCTL enables or disables the burst feature
- *
- * @E.g: iwpriv wlan0 get_burst_en
- *
- * Supported Feature:STA
- *
- * Usage: Internal/External
- *
- * </ioctl>
- */
-#define WE_GET_BURST_ENABLE 45
-/*
- * <ioctl>
- * get_burst_dur - Get the burst duration
- *
- * @INPUT: None
- *
- * @OUTPUT: Duration in microseconds
- * wlan0 get_burst_dur:8160
- *
- * This IOCTL gets the burst duration
- * This command is useful if setting burst enable
- *
- * @E.g: iwpriv wlan0 get_burst_dur
- *
- * Supported Feature: STA
- *
- * Usage: Internal/External
- *
- * </ioctl>
- */
-#define WE_GET_BURST_DUR 46
/* GTX Commands */
/*
* <ioctl>
@@ -7956,29 +7877,6 @@ static int __iw_setint_getnone(struct net_device *dev,
break;
}
- case WE_SET_BURST_ENABLE:
- {
- hdd_debug("SET Burst enable val %d", set_value);
- if ((set_value == 0) || (set_value == 1)) {
- ret = wma_cli_set_command(pAdapter->sessionId,
- WMI_PDEV_PARAM_BURST_ENABLE,
- set_value, PDEV_CMD);
- } else
- ret = -EINVAL;
- break;
- }
- case WE_SET_BURST_DUR:
- {
- hdd_debug("SET Burst duration val %d", set_value);
- if ((set_value > 0) && (set_value <= 102400))
- ret = wma_cli_set_command(pAdapter->sessionId,
- WMI_PDEV_PARAM_BURST_DUR,
- set_value, PDEV_CMD);
- else
- ret = -EINVAL;
- break;
- }
-
case WE_SET_TX_CHAINMASK:
{
hdd_debug("WMI_PDEV_PARAM_TX_CHAIN_MASK val %d",
@@ -9042,23 +8940,6 @@ static int __iw_setnone_getint(struct net_device *dev,
break;
}
- case WE_GET_BURST_ENABLE:
- {
- hdd_debug("GET Burst enable value");
- *value = wma_cli_get_command(pAdapter->sessionId,
- WMI_PDEV_PARAM_BURST_ENABLE,
- PDEV_CMD);
- break;
- }
- case WE_GET_BURST_DUR:
- {
- hdd_debug("GET Burst Duration value");
- *value = wma_cli_get_command(pAdapter->sessionId,
- WMI_PDEV_PARAM_BURST_DUR,
- PDEV_CMD);
- break;
- }
-
case WE_GET_TX_CHAINMASK:
{
hdd_debug("GET WMI_PDEV_PARAM_TX_CHAIN_MASK");
@@ -12741,16 +12622,6 @@ static const struct iw_priv_args we_private_args[] = {
0,
"amsdu"},
- {WE_SET_BURST_ENABLE,
- IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1,
- 0,
- "burst_enable"},
-
- {WE_SET_BURST_DUR,
- IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1,
- 0,
- "burst_dur"},
-
{WE_SET_TXPOW_2G,
IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1,
0,
@@ -13093,16 +12964,6 @@ static const struct iw_priv_args we_private_args[] = {
IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1,
"get_amsdu"},
- {WE_GET_BURST_ENABLE,
- 0,
- IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1,
- "get_burst_en"},
-
- {WE_GET_BURST_DUR,
- 0,
- IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1,
- "get_burst_dur"},
-
{WE_GET_TXPOW_2G,
0,
IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1,
diff --git a/core/wma/inc/wma.h b/core/wma/inc/wma.h
index eee3f93f0ad2..3dd74690d0ce 100644
--- a/core/wma/inc/wma.h
+++ b/core/wma/inc/wma.h
@@ -421,7 +421,6 @@ enum ds_mode {
#define WMA_DEFAULT_QPOWER_MAX_PSPOLL_BEFORE_WAKE 1
#define WMA_DEFAULT_QPOWER_TX_WAKE_THRESHOLD 2
-#define WMA_DEFAULT_SIFS_BURST_DURATION 8160
#define WMA_VHT_PPS_PAID_MATCH 1
#define WMA_VHT_PPS_GID_MATCH 2
@@ -827,8 +826,6 @@ typedef struct {
* @rxchainmask: rx chain mask
* @txpow2g: tx power limit for 2GHz
* @txpow5g: tx power limit for 5GHz
- * @burst_enable: is burst enable/disable
- * @burst_dur: burst duration
*
* This structure stores pdev parameters.
* Some of these parameters are set in fw and some
@@ -846,8 +843,6 @@ typedef struct {
uint32_t rxchainmask;
uint32_t txpow2g;
uint32_t txpow5g;
- uint32_t burst_enable;
- uint32_t burst_dur;
} pdev_cli_config_t;
/**
diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c
index 6f2c77f1db58..a1db7ad3c8f7 100644
--- a/core/wma/src/wma_main.c
+++ b/core/wma/src/wma_main.c
@@ -384,12 +384,6 @@ int wma_cli_get_command(int vdev_id, int param_id, int vpdev)
case WMI_PDEV_PARAM_TXPOWER_LIMIT5G:
ret = wma->pdevconfig.txpow5g;
break;
- case WMI_PDEV_PARAM_BURST_ENABLE:
- ret = wma->pdevconfig.burst_enable;
- break;
- case WMI_PDEV_PARAM_BURST_DUR:
- ret = wma->pdevconfig.burst_dur;
- break;
default:
WMA_LOGE("Invalid cli_get pdev command/Not yet implemented 0x%x",
param_id);
@@ -1504,18 +1498,6 @@ static void wma_process_cli_set_cmd(tp_wma_handle wma,
case WMI_PDEV_PARAM_RX_CHAIN_MASK:
wma->pdevconfig.rxchainmask = privcmd->param_value;
break;
- case WMI_PDEV_PARAM_BURST_ENABLE:
- wma->pdevconfig.burst_enable = privcmd->param_value;
- if ((wma->pdevconfig.burst_enable == 1) &&
- (wma->pdevconfig.burst_dur == 0))
- wma->pdevconfig.burst_dur =
- WMA_DEFAULT_SIFS_BURST_DURATION;
- else if (wma->pdevconfig.burst_enable == 0)
- wma->pdevconfig.burst_dur = 0;
- break;
- case WMI_PDEV_PARAM_BURST_DUR:
- wma->pdevconfig.burst_dur = privcmd->param_value;
- break;
case WMI_PDEV_PARAM_TXPOWER_LIMIT2G:
wma->pdevconfig.txpow2g = privcmd->param_value;
if ((pMac->roam.configParam.bandCapability ==