wlan: Consider RSSI while purging scan result
qcacld-2.0 to prima propagation
When scan cache is full and new BSS is added, oldest BSS is
removed. Thus if num of BSS in environment are more than scan
cache size the BSSes which are scanned on initial channels are
removed.
Also low RSSI APs may still be present in scan cache while
APs with good RSSI are removed.
To fix if entry with RSSI less than CSR_PURGE_RSSI_THRESHOLD
remove it. If all entries RSSI is better than
CSR_PURGE_RSSI_THRESHOLD remove the oldest entry.
And thus APs with bad RSS will be removed first.
Change-Id: I795d12aaea28d6acb5103eb25ba3758796643383
CRs-Fixed: 2010211
1 file changed