qcacld-3.0: Initialize weight_copy when weight is SAP_ACS_WEIGHT_MAX
When channel 4 is unsafe channel in 2.4g LTE coex ACS case, the weight for channel 4 will be calculated as 0 by function sap_sort_chl_weight_ht40_24_g, it's wrong because weight_copy doesn't be initialized in this case, so acs channel select may choose wrong channel to start sap. Fix is to add initialization for weight_copy when weight is SAP_ACS_WEIGHT_MAX. Change-Id: I4aa0fb133774d9980146a9ceae9b91154bd15bbc CRs-Fixed: 2282371
This commit is contained in:
@@ -1694,8 +1694,10 @@ static void sap_compute_spect_weight(tSapChSelSpectInfo *pSpectInfoParams,
|
||||
if (rssi < SOFTAP_MIN_RSSI)
|
||||
rssi = SOFTAP_MIN_RSSI;
|
||||
|
||||
if (pSpectCh->weight == SAP_ACS_WEIGHT_MAX)
|
||||
if (pSpectCh->weight == SAP_ACS_WEIGHT_MAX) {
|
||||
pSpectCh->weight_copy = pSpectCh->weight;
|
||||
goto debug_info;
|
||||
}
|
||||
|
||||
/* There may be channels in scanlist, which were not sent to
|
||||
* FW for scanning as part of ACS scan list, but they do have an
|
||||
|
Viittaa uudesa ongelmassa
Block a user