qcacld-3.0: Send proper RCL list to upper layer

Host receives channel list via an event
WMI_ROAM_SCAN_CHANNEL_LIST_EVENTID as
getroamscanchannels command response on disconnection.

Host sorts the channel list in descending order before
sending the list to the supplicant. As per current
logic, the host fills only the value of LSB for the
second channel onward. This results in host respond
the RCL list with an invalid format of frequencies
to the upper layer.

Fix is to make sure the host should respond RCL list
with the correct format of frequencies.

Change-Id: I1670ec4a99a7c9c7c438c430a9476802f8af83ce
CRs-Fixed: 3397397
这个提交包含在:
Abhinav Kumar
2023-02-16 06:39:21 -08:00
提交者 Madan Koyyalamudi
父节点 925d3ebd58
当前提交 ffca2ee19e

查看文件

@@ -3288,7 +3288,8 @@ hdd_dump_roam_scan_ch_list(uint32_t *chan_list, uint16_t num_channels)
static void
hdd_sort_roam_scan_ch_list(uint32_t *chan_list, uint16_t num_channels)
{
uint8_t i, j, swap = 0;
uint8_t i, j;
uint32_t swap = 0;
for (i = 0; i < (num_channels - 1) &&
i < WNI_CFG_VALID_CHANNEL_LIST_LEN; i++) {