xref: /wlan-driver/qcacld-3.0/core/hdd/inc/wlan_hdd_sysfs_tdls_peers.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 /**
18  * DOC: wlan_hdd_sysfs_tdls_peers.h
19  *
20  * Implementation for creating sysfs file tdls_peers
21  */
22 
23 #ifndef _WLAN_HDD_SYSFS_TDLS_PEERS_H
24 #define _WLAN_HDD_SYSFS_TDLS_PEERS_H
25 
26 #if defined(WLAN_SYSFS) && defined(WLAN_SYSFS_TDLS_PEERS)
27 /**
28  * hdd_sysfs_tdls_peers_interface_create() - API to create tdls_peers
29  * sysfs interface
30  * @adapter: pointer to adapter
31  *
32  * this file is created per adapter.
33  * file path: /sys/class/net/wlanxx/tdls_peers
34  *	where wlanxx is adapter name
35  *
36  * usage:
37  *      cat /sys/class/net/wlanxx/tdls_peers
38  *
39  * Return: none
40  */
41 void hdd_sysfs_tdls_peers_interface_create(struct hdd_adapter *adapter);
42 
43 /**
44  * hdd_sysfs_tdls_peers_interface_destroy() - API to destroy tdls_peers
45  * sysfs interface
46  * @adapter: pointer to adapter
47  *
48  * Return: none
49  */
50 void hdd_sysfs_tdls_peers_interface_destroy(struct hdd_adapter *adapter);
51 
52 #else
53 static inline
hdd_sysfs_tdls_peers_interface_create(struct hdd_adapter * adapter)54 void hdd_sysfs_tdls_peers_interface_create(struct hdd_adapter *adapter)
55 {
56 }
57 
58 static inline
hdd_sysfs_tdls_peers_interface_destroy(struct hdd_adapter * adapter)59 void hdd_sysfs_tdls_peers_interface_destroy(struct hdd_adapter *adapter)
60 {
61 }
62 #endif
63 #endif /* #ifndef _WLAN_HDD_SYSFS_TDLS_PEERS_H */
64