xref: /wlan-driver/qcacld-3.0/core/hdd/inc/wlan_hdd_sysfs_wifi_features.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2022, Qualcomm Innovation Center, Inc. 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 #if !defined(WLAN_HDD_SYSFS_WIFI_FEATURES_H)
18 #define WLAN_HDD_SYSFS_WIFI_FEATURES_H
19 /**
20  * DOC: wlan_hdd_sysfs_wifi_features.h
21  *
22  * Wifi features declarations
23  */
24 
25 #if defined(WLAN_SYSFS) && defined(FEATURE_SET)
26 /**
27  * hdd_sysfs_create_wifi_feature_interface() - API to create
28  * wifi feature sysfs file
29  * @wifi_kobject: sysfs wifi kobject
30  *
31  * Return: None
32  */
33 void hdd_sysfs_create_wifi_feature_interface(struct kobject *wifi_kobject);
34 
35 /**
36  * hdd_sysfs_destroy_wifi_feature_interface() - API to destroy
37  * wifi feature sysfs file
38  * @wifi_kobject: sysfs wifi kobject
39  *
40  * Return: None
41  */
42 void hdd_sysfs_destroy_wifi_feature_interface(struct kobject *wifi_kobject);
43 #else
44 static inline void
hdd_sysfs_create_wifi_feature_interface(struct kobject * wifi_kobject)45 hdd_sysfs_create_wifi_feature_interface(struct kobject *wifi_kobject)
46 {
47 }
48 
49 static inline void
hdd_sysfs_destroy_wifi_feature_interface(struct kobject * wifi_kobject)50 hdd_sysfs_destroy_wifi_feature_interface(struct kobject *wifi_kobject)
51 {
52 }
53 #endif
54 #endif
55