summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmarnath Hullur Subramanyam <amarnath@codeaurora.org>2015-09-23 20:29:51 -0700
committerVineeta Srivastava <vsrivastava@google.com>2015-09-24 17:17:52 -0700
commit3a6288afe9317768eef26f1e69e5fdbd97cd396e (patch)
tree2e6c3f171bc829a2272e53d5d9e5004678c21c89
parente99ddb535a7c932891428d84a899497fc50b0f7e (diff)
downloadwlan-android-6.0.1_r27.tar.gz
The commit "Add the fw diag msg hdr" introduced an error while calculating the offset to the next buffer. This caused incorrect firmware log entries in the ring buffer. Change-Id: Iccce94c33a41f62f4e7c3477f603a6c8d33a1efa CRs-Fixed: 913224 Bug: 24350330
-rw-r--r--qcwcn/wifi_hal/wifilogger_diag.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/qcwcn/wifi_hal/wifilogger_diag.cpp b/qcwcn/wifi_hal/wifilogger_diag.cpp
index 17443cf..742bc98 100644
--- a/qcwcn/wifi_hal/wifilogger_diag.cpp
+++ b/qcwcn/wifi_hal/wifilogger_diag.cpp
@@ -904,10 +904,9 @@ static wifi_error process_fw_diag_msg(hal_info *info, u8* buf, u16 length)
case WLAN_DIAG_TYPE_MSG:
{
/* Length field is only one byte for WLAN_DIAG_TYPE_MSG */
- payloadlen = diag_msg_hdr->u.msg_hdr.payload_len +
- sizeof(fw_diag_msg_hdr_t);
+ payloadlen = diag_msg_hdr->u.msg_hdr.payload_len;
process_firmware_prints(info, (u8 *)diag_msg_hdr,
- payloadlen);
+ payloadlen + sizeof(fw_diag_msg_hdr_t));
}
break;
default: