qcacld-3.0: Cleanup instances of CFG_MAX_TX_POWER

Remove max_tx_power from wlan_mlme_power struct
and ini_tx_power from lim_max_tx_pwr_attr struct
and all their instances.

Change-Id: I982a15b71b64d368b623128e04f09a8f3bf4f5ec
CRs-Fixed: 2645922
Цей коміт міститься в:
Gururaj Pandurangi
2020-03-19 16:41:55 -07:00
зафіксовано nshrivas
джерело c257f188fc
коміт 71a63998bf
10 змінених файлів з 11 додано та 58 видалено

Переглянути файл

@@ -1760,7 +1760,6 @@ static void mlme_init_power_cfg(struct wlan_objmgr_psoc *psoc,
power->power_usage.len = CFG_POWER_USAGE_MAX_LEN;
qdf_mem_copy(power->power_usage.data, cfg_get(psoc, CFG_POWER_USAGE),
power->power_usage.len);
power->max_tx_power = cfg_get(psoc, CFG_MAX_TX_POWER);
power->current_tx_power_level =
(uint8_t)cfg_default(CFG_CURRENT_TX_POWER_LEVEL);
power->local_power_constraint =

Переглянути файл

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -116,31 +116,6 @@
CFG_VALUE_OR_DEFAULT, \
"power limit 5g")
/*
* <ini>
* gTxPowerCap - WLAN max tx power
* @Min: 0
* @Max: 128
* @Default: 128
*
* This ini is used to configure the device max tx power.
*
* Related: None.
*
* Supported Feature: Concurrency
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_MAX_TX_POWER CFG_INI_UINT( \
"gTxPowerCap", \
0, \
128, \
128, \
CFG_VALUE_OR_DEFAULT, \
"WLAN max tx power")
/*
* <cfg>
* current_tx_power_level - current tx power level
@@ -177,7 +152,6 @@
CFG(CFG_POWER_USAGE) \
CFG(CFG_SET_TXPOWER_LIMIT2G) \
CFG(CFG_SET_TXPOWER_LIMIT5G) \
CFG(CFG_MAX_TX_POWER) \
CFG(CFG_CURRENT_TX_POWER_LEVEL) \
CFG(CFG_LOCAL_POWER_CONSTRAINT)

Переглянути файл

@@ -1980,7 +1980,6 @@ struct mlme_power_usage {
* @power_usage: power usage mode, min, max, mod
* @tx_power_2g: limit tx power in 2.4 ghz
* @tx_power_5g: limit tx power in 5 ghz
* @max_tx_power: WLAN max tx power
* @current_tx_power_level: current tx power level
* @local_power_constraint: local power constraint
*/
@@ -1992,7 +1991,6 @@ struct wlan_mlme_power {
struct mlme_power_usage power_usage;
uint8_t tx_power_2g;
uint8_t tx_power_5g;
uint8_t max_tx_power;
uint8_t current_tx_power_level;
uint8_t local_power_constraint;
};