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
This commit is contained in:
Nandha Kishore Easwaran
2021-01-20 14:37:59 +05:30
committed by snandini
parent 3e2e6fd4e7
commit a10cd5facf

View File

@@ -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,