qcacld-3.0: Clear ftm_time_sync offset on disconnect and add bssid in sysfs
The Qtime offset derived with a connected AP (master) are not cleared on disconnect. This leads to storage of stale offset values. So clear the stale Qtime offset values on disconnection. Currently there is no information in ftm_time_sync sysfs entry regarding which BSSID the Qtime offset values are derived. Add the BSSID info in the sysfs entry. Change-Id: Iac47bccffae005602469a658e5ca0bc9008ac4b4 CRs-Fixed: 2629822
This commit is contained in:

committed by
nshrivas

parent
60de8cadbd
commit
85d94fc4b9
@@ -123,7 +123,8 @@ void ucfg_ftm_time_sync_set_enable(struct wlan_objmgr_psoc *psoc, bool enable)
|
||||
|
||||
void ucfg_ftm_time_sync_update_sta_connect_state(
|
||||
struct wlan_objmgr_vdev *vdev,
|
||||
enum ftm_time_sync_sta_state sta_state)
|
||||
enum ftm_time_sync_sta_state sta_state,
|
||||
struct qdf_mac_addr bssid)
|
||||
{
|
||||
struct wlan_objmgr_psoc *psoc;
|
||||
enum ftm_time_sync_role role;
|
||||
@@ -140,6 +141,8 @@ void ucfg_ftm_time_sync_update_sta_connect_state(
|
||||
ftm_time_sync_send_trigger(vdev);
|
||||
else
|
||||
ftm_time_sync_stop(vdev);
|
||||
|
||||
ftm_time_sync_update_bssid(vdev, bssid);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user