qcacmn: Add filter logic according to timestamp in scan

Currently the driver does not have any mechanism to filter
out the scan results according to the age.

Add a logic in the scan filter API, to filter out the scan
result according to the age threshold, so that APs which
are older than a particular value are filtered out.

Change-Id: If3f4b372b28a0f75b1d70915df4e3e1a7e518931
CRs-Fixed: 2447988
This commit is contained in:
gaurank kathpalia
2019-05-07 10:16:53 +05:30
committed by nshrivas
父節點 16ad475315
當前提交 c2dac1c92b
共有 5 個文件被更改,包括 11 次插入7 次删除

查看文件

@@ -566,7 +566,7 @@ struct fils_filter_info {
struct scan_filter {
bool bss_scoring_required;
bool enable_adaptive_11r;
uint32_t age_threshold;
qdf_time_t age_threshold;
uint32_t p2p_results;
uint32_t rrm_measurement_filter;
uint32_t num_of_bssid;

查看文件

@@ -1140,10 +1140,10 @@ util_scan_entry_wmeparam(struct scan_cache_entry *scan_entry)
*
* Return: age in ms
*/
static inline uint32_t
static inline qdf_time_t
util_scan_entry_age(struct scan_cache_entry *scan_entry)
{
unsigned long ts = scan_entry->scan_entry_time;
qdf_time_t ts = scan_entry->scan_entry_time;
return qdf_mc_timer_get_system_time() - ts;
}