Explorar o código

qcacmn: Add SAWF to init resource config

Add SAWf to init resource config to communicate
to the FW to either enable or disable Service Aware Wifi

Change-Id: I8285e383cb464c506e98e3a88dd267dae4b96558
CRs-Fixed: 3101373
Vivek %!s(int64=3) %!d(string=hai) anos
pai
achega
3e7c64225c
Modificáronse 2 ficheiros con 7 adicións e 0 borrados
  1. 1 0
      wmi/inc/wmi_unified_param.h
  2. 6 0
      wmi/src/wmi_unified_tlv.c

+ 1 - 0
wmi/inc/wmi_unified_param.h

@@ -5778,6 +5778,7 @@ typedef struct {
 	bool afc_timer_check_disable;
 	bool afc_req_id_check_disable;
 	uint32_t carrier_profile_config;
+	bool sawf;
 } target_resource_config;
 
 /**

+ 6 - 0
wmi/src/wmi_unified_tlv.c

@@ -7920,6 +7920,12 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
 		WMI_SET_BITS(resource_cfg->flags2, 0, 4,
 			     tgt_res_cfg->re_ul_resp);
 
+	/*
+	 * Enable Service Aware Wifi
+	 */
+	if (tgt_res_cfg->sawf)
+		WMI_RSRC_CFG_FLAGS2_SAWF_CONFIG_ENABLE_SET(resource_cfg->flags2,
+							   tgt_res_cfg->sawf);
 
 	/*
 	 * Enable ast flow override per peer