mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacmn: Introduce scan api to get scan entry ageout time
The driver doesn't ageout connected BSS from rrm scan result after the scan default ageout time. This results in connected AP information sent in beacon report request in table mode always. Introduce scan api to get the scan age out time configured from scan module. This value will be used as the threshold in rrm scan filter. Change-Id: Ib3981538faf179cff53936770f705d41922dca66 CRs-Fixed: 2650914
This commit is contained in:
parent
d7e15e64e0
commit
42e7bb35d4
2 changed files with 19 additions and 0 deletions
|
|
@ -202,4 +202,12 @@ wlan_scan_process_bcn_probe_rx_sync(struct wlan_objmgr_psoc *psoc,
|
|||
struct mgmt_rx_event_params *rx_param,
|
||||
enum mgmt_frame_type frm_type);
|
||||
|
||||
/**
|
||||
* wlan_scan_get_aging_time - Get the scan aging time config
|
||||
* @psoc: psoc context
|
||||
*
|
||||
* Return: Scan aging time config
|
||||
*/
|
||||
qdf_time_t wlan_scan_get_aging_time(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -264,3 +264,14 @@ free:
|
|||
|
||||
return status;
|
||||
}
|
||||
|
||||
qdf_time_t wlan_scan_get_aging_time(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct wlan_scan_obj *scan_obj;
|
||||
|
||||
scan_obj = wlan_psoc_get_scan_obj(psoc);
|
||||
if (!scan_obj)
|
||||
return cfg_default(CFG_SCAN_AGING_TIME) * 1000;
|
||||
|
||||
return scan_obj->scan_def.scan_cache_aging_time;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue