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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user