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
Šī revīzija ir iekļauta:

revīziju iesūtīja
nshrivas

vecāks
60de8cadbd
revīzija
85d94fc4b9
@@ -74,6 +74,7 @@ void ucfg_ftm_time_sync_set_enable(struct wlan_objmgr_psoc *psoc, bool value);
|
||||
* ucfg_ftm_time_sync_update_sta_connect_state() - Handler for STA state change
|
||||
* @vdev: STA vdev
|
||||
* @state: connected/disconnected state
|
||||
* @bssid: bssid of connected AP
|
||||
*
|
||||
* This function triggers the FTM time sync feature in case of connection and
|
||||
* stops the ftm sync feature in case of disconnection.
|
||||
@@ -82,7 +83,8 @@ void ucfg_ftm_time_sync_set_enable(struct wlan_objmgr_psoc *psoc, bool value);
|
||||
*/
|
||||
void
|
||||
ucfg_ftm_time_sync_update_sta_connect_state(struct wlan_objmgr_vdev *vdev,
|
||||
enum ftm_time_sync_sta_state state);
|
||||
enum ftm_time_sync_sta_state state,
|
||||
struct qdf_mac_addr bssid);
|
||||
|
||||
/**
|
||||
* ucfg_ftm_time_sync_update_bss_state() - Handler to notify bss start/stop
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user