summaryrefslogtreecommitdiff
path: root/qcwcn/wifi_hal/nan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qcwcn/wifi_hal/nan.cpp')
-rw-r--r--qcwcn/wifi_hal/nan.cpp2
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;