Explorar o código

qcacmn: New HTT H2T msg support

Current HTT_H2T messages from host driver does not have
consistency in message length set by host driver. Some
message types include HTC header length also within the
message length, while other types have message length
itself only, which causes difficulty in handling message
length in FW.

Change-Id: I885a21530a2d8f852387ae54cf7ee0751aad2516
CRs-Fixed: 2345075
jitiphil %!s(int64=6) %!d(string=hai) anos
pai
achega
58804cf052
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      wmi_unified_tlv.c

+ 7 - 0
wmi_unified_tlv.c

@@ -6274,6 +6274,10 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
 				tgt_res_cfg->eapol_minrate_ac_set);
 		}
 	}
+	if (tgt_res_cfg->new_htt_msg_format) {
+		WMI_RSRC_CFG_FLAG_HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN_SET(
+			resource_cfg->flag1, 1);
+	}
 
 	wmi_copy_twt_resource_config(resource_cfg, tgt_res_cfg);
 	resource_cfg->peer_map_unmap_v2_support =
@@ -11856,6 +11860,9 @@ static void populate_tlv_service(uint32_t *wmi_service)
 			WMI_SERVICE_OBSS_SPATIAL_REUSE;
 	wmi_service[wmi_service_per_vdev_chain_support] =
 			WMI_SERVICE_PER_VDEV_CHAINMASK_CONFIG_SUPPORT;
+	wmi_service[wmi_service_new_htt_msg_format] =
+			WMI_SERVICE_HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN;
+
 }
 
 #ifndef CONFIG_MCL