diff options
author | CNSS_WLAN Service <cnssbldsw@qualcomm.com> | 2021-04-02 22:15:13 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2021-04-02 22:15:13 -0700 |
commit | 607099194a327711f68a90da72f91fe1391b1b66 (patch) | |
tree | e436fcb355714b6ac30b329942607a146a90866b | |
parent | 68d06000bf4028987dcbfc1fcdadc8174a2de6bc (diff) | |
parent | d6f61ebd80b698f20610ca466de1c9a03795d7b0 (diff) |
Merge "Type cast to correct data type for comparision in NANTLV_ReadTlv" into wlan-aosp.lnx.6.0
-rw-r--r-- | qcwcn/wifi_hal/nan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qcwcn/wifi_hal/nan.cpp b/qcwcn/wifi_hal/nan.cpp index 2428e1d..e2d493e 100644 --- a/qcwcn/wifi_hal/nan.cpp +++ b/qcwcn/wifi_hal/nan.cpp @@ -1425,7 +1425,7 @@ u16 NANTLV_ReadTlv(u8 *pInTlv, pNanTlv pOutTlv, int inBufferSize) pOutTlv->length |= *pInTlv++ << 8; readLen += 2; - if(pOutTlv->length > inBufferSize - NAN_TLV_HEADER_SIZE) { + if(pOutTlv->length > (u16)(inBufferSize - NAN_TLV_HEADER_SIZE)) { ALOGE("Insufficient length to process TLV header, inBufferSize = %d", inBufferSize); return readLen; |