xref: /wlan-driver/qcacld-3.0/core/hdd/src/wlan_hdd_sysfs_eht_rate.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2021, The Linux Foundation. All rights reserved.
3  * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16  */
17 
18 /**
19  * DOC: wlan_hdd_sysfs_eht_rate.h
20  *
21  * implementation for creating sysfs file 11be_rate
22  */
23 
24 #ifndef _WLAN_HDD_SYSFS_EHT_RATE_H
25 #define _WLAN_HDD_SYSFS_EHT_RATE_H
26 
27 #if defined(WLAN_SYSFS) && defined(WLAN_SYSFS_EHT_RATE)
28 
29 /**
30  * hdd_sysfs_11be_rate_create() - Create sysfs entry to configure 11be rate
31  * @adapter: net device adapter
32  *
33  * Return: None
34  */
35 void hdd_sysfs_11be_rate_create(struct hdd_adapter *adapter);
36 
37 /**
38  * hdd_sysfs_11be_rate_destroy() - Destroy sysfs entry to configure 11be rate
39  * @adapter: net device adapter
40  *
41  * Return: None
42  */
43 void hdd_sysfs_11be_rate_destroy(struct hdd_adapter *adapter);
44 #else
hdd_sysfs_11be_rate_create(struct hdd_adapter * adapter)45 static inline void hdd_sysfs_11be_rate_create(struct hdd_adapter *adapter)
46 {
47 }
48 
hdd_sysfs_11be_rate_destroy(struct hdd_adapter * adapter)49 static inline void hdd_sysfs_11be_rate_destroy(struct hdd_adapter *adapter)
50 {
51 }
52 #endif
53 #endif /* _WLAN_HDD_SYSFS_EHT_RATE_H */
54