qcacmn: Implement extract_comb/single_phyerr for tlv

Implement extract_comb_phyerr and extract_single_phyerr for tlv.

Change-Id: Id65809cdd05f11e39d8f5a88a3f47632e9a92b04
CRs-Fixed: 2196835
This commit is contained in:
Arif Hussain
2018-03-01 14:40:59 -08:00
committed by nshrivas
parent 45880bbddc
commit e0eb730b92
2 changed files with 130 additions and 1 deletions

View File

@@ -7285,7 +7285,7 @@ static QDF_STATUS extract_single_phyerr_non_tlv(wmi_unified_t wmi_handle,
*
* If "int" is 64 bits then this becomes a moot point.
*/
if (ev->hdr.buf_len > 0x7f000000) {
if (ev->hdr.buf_len > PHYERROR_MAX_BUFFER_LENGTH) {
qdf_print("%s: buf_len is garbage? (0x%x\n)\n",
__func__,
ev->hdr.buf_len);