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
This commit is contained in:
Kiran Kumar Lokere 2020-03-26 00:48:05 -07:00 committed by nshrivas
parent ce456fe70b
commit b489e6be13

View File

@ -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 *)&params->he_6ghz_band_caps) + 1,
sizeof(peer->peer_he_caps_6ghz));
((uint8_t *)&params->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;
}