From b489e6be130a4791be1abc965438303d9c6eef39 Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Thu, 26 Mar 2020 00:48:05 -0700 Subject: [PATCH] qcacld-3.0: Fix issue with 6GHz band cap configuration to FW HE 6GHz band capabilities are copied from wrong byte offset hence incorrect capabilities are configured to FW. Fix the 6GHz band capability offset and size values while configuring it to FW. Change-Id: I0cc97610e32f3e5fbd64c6ed72d3591ae5127471 CRs-Fixed: 2645844 --- core/wma/src/wma_he.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/wma/src/wma_he.c b/core/wma/src/wma_he.c index b154f4160c..affbb4f6e8 100644 --- a/core/wma/src/wma_he.c +++ b/core/wma/src/wma_he.c @@ -1328,8 +1328,9 @@ void wma_populate_peer_he_cap(struct peer_assoc_params *peer, wma_print_he_ppet(&peer->peer_ppet); qdf_mem_copy(&peer->peer_he_caps_6ghz, - ((uint16_t *)¶ms->he_6ghz_band_caps) + 1, - sizeof(peer->peer_he_caps_6ghz)); + ((uint8_t *)¶ms->he_6ghz_band_caps) + 1, + DOT11F_IE_HE_6GHZ_BAND_CAP_MAX_LEN); + WMA_LOGD(FL("HE 6GHz band caps: %0x"), peer->peer_he_caps_6ghz); return; }