Selaa lähdekoodia

qcacmn: Swap bytes of ftm data in BE platform

Swap each word of ftm data before sending to FW.
This is needed since copy engine swap is enabled for big endian platform
and ftm data needs to be given to FW in network byte order.

Change-Id: I90b90adf77d92d254478605668efd94972c4129c
Nandha Kishore Easwaran 4 vuotta sitten
vanhempi
sitoutus
a10cd5facf
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      wmi/src/wmi_unified_tlv.c

+ 2 - 1
wmi/src/wmi_unified_tlv.c

@@ -1613,7 +1613,8 @@ send_pdev_utf_cmd_tlv(wmi_unified_t wmi_handle,
 			       (chunk_len + sizeof(segHdrInfo)));
 		cmd += WMI_TLV_HDR_SIZE;
 		memcpy(cmd, &segHdrInfo, sizeof(segHdrInfo));   /* 4 bytes */
-		memcpy(&cmd[sizeof(segHdrInfo)], bufpos, chunk_len);
+		WMI_HOST_IF_MSG_COPY_CHAR_ARRAY(&cmd[sizeof(segHdrInfo)],
+						bufpos, chunk_len);
 
 		wmi_mtrace(WMI_PDEV_UTF_CMDID, NO_SESSION, 0);
 		ret = wmi_unified_cmd_send(wmi_handle, buf,