xref: /wlan-driver/qcacld-3.0/core/hdd/inc/wlan_hdd_ftm_time_sync.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2020, The Linux Foundation. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 #include "ftm_time_sync_ucfg_api.h"
18 #include "wlan_hdd_main.h"
19 
20 #ifdef FEATURE_WLAN_TIME_SYNC_FTM
21 /**
22  * hdd_ftm_time_sync_sta_state_notify() - notify FTM TIME SYNC sta state change
23  * @adapter: pointer to adapter
24  * @state: enum ftm_time_sync_sta_state
25  *
26  * This function is called by hdd connect and disconnect handler and notifies
27  * the FTM TIME SYNC component about the sta state.
28  *
29  * Return: None
30  */
31 void
32 hdd_ftm_time_sync_sta_state_notify(struct hdd_adapter *adapter,
33 				   enum ftm_time_sync_sta_state state);
34 
35 #else
36 
37 static inline void
hdd_ftm_time_sync_sta_state_notify(struct hdd_adapter * adapter,enum ftm_time_sync_sta_state state)38 hdd_ftm_time_sync_sta_state_notify(struct hdd_adapter *adapter,
39 				   enum ftm_time_sync_sta_state state)
40 {
41 }
42 
43 #endif
44