qcacld-3.0: Rename moderate latency level to XR latency level

Currently moderate latency level is not used. Rename moderate
latency level to XR latency level to be used in XR applications.

Change-Id: Ia7f65c3565f6704b9571161aabefb3a8b47cce1e
CRs-Fixed: 3116839
This commit is contained in:
Nirav Shah
2022-01-24 23:29:42 +05:30
committed by Madan Koyyalamudi
parent 74dc28f123
commit e398b7e48d
4 changed files with 14 additions and 14 deletions

View File

@@ -2270,16 +2270,16 @@ static void mlme_init_fe_wlm_in_cfg(struct wlan_objmgr_psoc *psoc,
wlm_config->latency_flags[0], wlm_config->latency_flags[0],
wlm_config->latency_host_flags[0]); wlm_config->latency_host_flags[0]);
status = qdf_uint64_parse(cfg_get(psoc, CFG_LATENCY_FLAGS_MOD), status = qdf_uint64_parse(cfg_get(psoc, CFG_LATENCY_FLAGS_XR),
&flags); &flags);
if (status != QDF_STATUS_SUCCESS) { if (status != QDF_STATUS_SUCCESS) {
flags = 0; flags = 0;
mlme_legacy_err("moderate latency flags parsing failed"); mlme_legacy_err("xr latency flags parsing failed");
} }
wlm_config->latency_flags[1] = flags & 0xFFFFFFFF; wlm_config->latency_flags[1] = flags & 0xFFFFFFFF;
wlm_config->latency_host_flags[1] = flags >> 32; wlm_config->latency_host_flags[1] = flags >> 32;
mlme_legacy_debug("moderate latency flags 0x%x host flags 0x%x", mlme_legacy_debug("xr latency flags 0x%x host flags 0x%x",
wlm_config->latency_flags[1], wlm_config->latency_flags[1],
wlm_config->latency_host_flags[1]); wlm_config->latency_host_flags[1]);

View File

@@ -93,7 +93,7 @@
* @defalut: 0 * @defalut: 0
* *
* 0 - normal * 0 - normal
* 1 - moderate * 1 - xr
* 2 - low * 2 - low
* 3 - ultralow * 3 - ultralow
* *
@@ -168,7 +168,7 @@
/* /*
* <ini> * <ini>
* wlm_latency_flags_moderate - WLM flags setting for moderate level * wlm_latency_flags_xr - WLM flags setting for XR level
* *
* @min: 0x0 * @min: 0x0
* @max: 0xffffffffffffffff * @max: 0xffffffffffffffff
@@ -217,13 +217,13 @@
* *
* </ini> * </ini>
*/ */
#define CFG_DEFAULT_MODERATE_FLAGS "0x3000100000083" #define CFG_DEFAULT_XR_FLAGS "0x3000100000083"
#define CFG_LATENCY_FLAGS_MOD \ #define CFG_LATENCY_FLAGS_XR \
CFG_INI_STRING("wlm_latency_flags_moderate",\ CFG_INI_STRING("wlm_latency_flags_xr",\
0, \ 0, \
sizeof(CFG_MAX_LATENCY_FLAGS) - 1,\ sizeof(CFG_MAX_LATENCY_FLAGS) - 1,\
CFG_DEFAULT_MODERATE_FLAGS, \ CFG_DEFAULT_XR_FLAGS, \
"WLM flags for moderate level") "WLM flags for XR level")
/* /*
@@ -349,7 +349,7 @@
CFG(CFG_LATENCY_RESET) \ CFG(CFG_LATENCY_RESET) \
CFG(CFG_LATENCY_LEVEL) \ CFG(CFG_LATENCY_LEVEL) \
CFG(CFG_LATENCY_FLAGS_NORMAL) \ CFG(CFG_LATENCY_FLAGS_NORMAL) \
CFG(CFG_LATENCY_FLAGS_MOD) \ CFG(CFG_LATENCY_FLAGS_XR) \
CFG(CFG_LATENCY_FLAGS_LOW) \ CFG(CFG_LATENCY_FLAGS_LOW) \
CFG(CFG_LATENCY_FLAGS_ULTLOW) CFG(CFG_LATENCY_FLAGS_ULTLOW)

View File

@@ -1231,7 +1231,7 @@ struct hdd_context;
* @gpio_tsf_sync_work: work to sync send TSF CAP WMI command * @gpio_tsf_sync_work: work to sync send TSF CAP WMI command
* @cache_sta_count: number of currently cached stations * @cache_sta_count: number of currently cached stations
* @acs_complete_event: acs complete event * @acs_complete_event: acs complete event
* @latency_level: 0 - normal, 1 - moderate, 2 - low, 3 - ultralow * @latency_level: 0 - normal, 1 - xr, 2 - low, 3 - ultralow
* @last_disconnect_reason: Last disconnected internal reason code * @last_disconnect_reason: Last disconnected internal reason code
* as per enum qca_disconnect_reason_codes * as per enum qca_disconnect_reason_codes
* @connect_req_status: Last disconnected internal status code * @connect_req_status: Last disconnected internal status code

View File

@@ -8692,7 +8692,7 @@ static int hdd_config_latency_level(struct hdd_adapter *adapter,
latency_level = nla_get_u16(attr); latency_level = nla_get_u16(attr);
switch (latency_level) { switch (latency_level) {
case QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL: case QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
case QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE: case QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
case QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW: case QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
case QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW: case QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
/* valid values */ /* valid values */
@@ -8705,7 +8705,7 @@ static int hdd_config_latency_level(struct hdd_adapter *adapter,
wlan_hdd_set_wlm_mode(hdd_ctx, latency_level); wlan_hdd_set_wlm_mode(hdd_ctx, latency_level);
/* Map the latency value to the level which fw expected /* Map the latency value to the level which fw expected
* 0 - normal, 1 - moderate, 2 - low, 3 - ultralow * 0 - normal, 1 - xr, 2 - low, 3 - ultralow
*/ */
adapter->latency_level = latency_level - 1; adapter->latency_level = latency_level - 1;