diff options
author | Amarnath Hullur Subramanyam <amarnath@codeaurora.org> | 2015-09-01 17:56:30 -0700 |
---|---|---|
committer | Vineeta Srivastava <vsrivastava@google.com> | 2015-09-02 18:00:38 -0700 |
commit | 493cffb2f6bc903b941ece9c27907e83119cf89d (patch) | |
tree | a9b37a31fe2e370d41975180cc042f7a75cb273b | |
parent | f1c6382b7f8e3021f6ad308e4bd1fa8289b65516 (diff) | |
download | android_hardware_qcom_wlan-493cffb2f6bc903b941ece9c27907e83119cf89d.tar.gz android_hardware_qcom_wlan-493cffb2f6bc903b941ece9c27907e83119cf89d.tar.bz2 android_hardware_qcom_wlan-493cffb2f6bc903b941ece9c27907e83119cf89d.zip |
Wifi-Hal: Add the fw diag msg hdr
Include the fw diag msg hdr as part of payload being
passed to ring buffer. The firmware logs require
the diag hdr info while parsing the logs collected
as part of the bugreport.
Bug: 23758463
Change-Id: Iacdfc0d380990bb6b1dc7acf8edf95a2302abb63
-rw-r--r-- | qcwcn/wifi_hal/wifilogger_diag.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qcwcn/wifi_hal/wifilogger_diag.cpp b/qcwcn/wifi_hal/wifilogger_diag.cpp index 99a7e26..65d78fd 100644 --- a/qcwcn/wifi_hal/wifilogger_diag.cpp +++ b/qcwcn/wifi_hal/wifilogger_diag.cpp @@ -902,8 +902,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; - process_firmware_prints(info, diag_msg_hdr->payload, + payloadlen = diag_msg_hdr->u.msg_hdr.payload_len + + sizeof(fw_diag_msg_hdr_t); + process_firmware_prints(info, (u8 *)diag_msg_hdr, payloadlen); } break; |