Merge branch 'linux-4.15' of git://github.com/skeggsb/linux into drm-fixes
[sfrench/cifs-2.6.git] / net / mac80211 / debugfs_key.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __MAC80211_DEBUGFS_KEY_H
3 #define __MAC80211_DEBUGFS_KEY_H
4
5 #ifdef CONFIG_MAC80211_DEBUGFS
6 void ieee80211_debugfs_key_add(struct ieee80211_key *key);
7 void ieee80211_debugfs_key_remove(struct ieee80211_key *key);
8 void ieee80211_debugfs_key_update_default(struct ieee80211_sub_if_data *sdata);
9 void ieee80211_debugfs_key_add_mgmt_default(
10         struct ieee80211_sub_if_data *sdata);
11 void ieee80211_debugfs_key_remove_mgmt_default(
12         struct ieee80211_sub_if_data *sdata);
13 void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key,
14                                    struct sta_info *sta);
15 #else
16 static inline void ieee80211_debugfs_key_add(struct ieee80211_key *key)
17 {}
18 static inline void ieee80211_debugfs_key_remove(struct ieee80211_key *key)
19 {}
20 static inline void ieee80211_debugfs_key_update_default(
21         struct ieee80211_sub_if_data *sdata)
22 {}
23 static inline void ieee80211_debugfs_key_add_mgmt_default(
24         struct ieee80211_sub_if_data *sdata)
25 {}
26 static inline void ieee80211_debugfs_key_remove_mgmt_default(
27         struct ieee80211_sub_if_data *sdata)
28 {}
29 static inline void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key,
30                                                  struct sta_info *sta)
31 {}
32 #endif
33
34 #endif /* __MAC80211_DEBUGFS_KEY_H */