Prechádzať zdrojové kódy

qcacmn: Update the config variable for LPI/SP mode

For enabling LPI/SP mode host service flag bit is expected
to be enabled. Updated the variable name appropriately to
correctly reflect interpretation of the Host service flag.

CRs-fixed: 3024535
Change-Id: Ie5fa2b4036074bf5304c17984007401f821d6d04
Rhythm Patwa 3 rokov pred
rodič
commit
d3d6af4357
2 zmenil súbory, kde vykonal 8 pridanie a 4 odobranie
  1. 7 3
      wmi/inc/wmi_unified_param.h
  2. 1 1
      wmi/src/wmi_unified_tlv.c

+ 7 - 3
wmi/inc/wmi_unified_param.h

@@ -5410,8 +5410,12 @@ struct wmi_host_fw_abi_ver {
  * @is_sap_connected_d3wow_enabled: is sap d3wow with connected client supported
  * @is_go_connected_d3wow_enabled: is go d3wow with connected client supported
  * @dynamic_pcie_gen_speed_change: is dynamic pcie gen speed change enabled
- * @lpi_only_mode: Indicates whether AP is capable of operating in LPI only
- *                 mode or both LPI/SP mode
+ * @is_6ghz_sp_pwrmode_supp_enabled: Indicates whether AP is capable of
+ *                                   operating in SP Power mode in 6GHz.
+ *                                   0 - AP can operate in non-SP power mode.
+ *                                       Eg: LPI mode
+ *                                   1 - AP can operate in all power modes,
+ *                                       inclusive of SP power mode.
  * @afc_timer_check_disable: Disables AFC Timer related checks in FW
  * @afc_req_id_check_disable: Disables AFC Request ID check in FW
  */
@@ -5530,7 +5534,7 @@ typedef struct {
 	bool twt_ack_support_cap;
 	uint32_t ema_init_config;
 	uint32_t target_cap_flags;
-	bool lpi_only_mode;
+	bool is_6ghz_sp_pwrmode_supp_enabled;
 	bool afc_timer_check_disable;
 	bool afc_req_id_check_disable;
 } target_resource_config;

+ 1 - 1
wmi/src/wmi_unified_tlv.c

@@ -7712,7 +7712,7 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
 
 	WMI_RSRC_CFG_HOST_SERVICE_FLAG_LPI_SP_MODE_SUPPORT_SET(
 		resource_cfg->host_service_flags,
-		tgt_res_cfg->lpi_only_mode);
+		tgt_res_cfg->is_6ghz_sp_pwrmode_supp_enabled);
 
 	WMI_RSRC_CFG_HOST_SERVICE_FLAG_REG_DISCARD_AFC_TIMER_CHECK_SET(
 		resource_cfg->host_service_flags,