From ca4db85bc27834012e04d3f05865e8bd85cf0729 Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Mon, 11 May 2020 17:22:46 -0700 Subject: [PATCH] qcacld-3.0: Fix issue with OBSS scan cmd send failure OBSS scan enable WMI command is not correctly set for one of the TLV of the command which corrupted the length of the next TLV of the command and lead to command send failure. Correct the buffer offset of the TLV in the OBSS scan WMI command. Change-Id: Ieb9467c52ae9d9dab602485b4b63fc9de48e6924 CRs-Fixed: 2681000 --- core/wma/src/wma_scan_roam.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/wma/src/wma_scan_roam.c b/core/wma/src/wma_scan_roam.c index 3c45d48a8cf1..211be466fbd3 100644 --- a/core/wma/src/wma_scan_roam.c +++ b/core/wma/src/wma_scan_roam.c @@ -6236,6 +6236,7 @@ QDF_STATUS wma_send_ht40_obss_scanind(tp_wma_handle wma, sizeof(uint32_t)); WMITLV_SET_HDR(buf_ptr, WMITLV_TAG_ARRAY_BYTE, qdf_roundup(1, sizeof(uint32_t))); + buf_ptr += WMI_TLV_HDR_SIZE; buf_ptr += qdf_roundup(sizeof(uint8_t) * 1, sizeof(uint32_t));