mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
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:
parent
bcc8b3abe3
commit
b6441f2c72
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue