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_remove_mgmt_default(
10 	struct ieee80211_sub_if_data *sdata);
11 void ieee80211_debugfs_key_remove_beacon_default(
12 	struct ieee80211_sub_if_data *sdata);
13 #else
ieee80211_debugfs_key_add(struct ieee80211_key * key)14 static inline void ieee80211_debugfs_key_add(struct ieee80211_key *key)
15 {}
ieee80211_debugfs_key_remove(struct ieee80211_key * key)16 static inline void ieee80211_debugfs_key_remove(struct ieee80211_key *key)
17 {}
ieee80211_debugfs_key_update_default(struct ieee80211_sub_if_data * sdata)18 static inline void ieee80211_debugfs_key_update_default(
19 	struct ieee80211_sub_if_data *sdata)
20 {}
ieee80211_debugfs_key_remove_mgmt_default(struct ieee80211_sub_if_data * sdata)21 static inline void ieee80211_debugfs_key_remove_mgmt_default(
22 	struct ieee80211_sub_if_data *sdata)
23 {}
ieee80211_debugfs_key_remove_beacon_default(struct ieee80211_sub_if_data * sdata)24 static inline void ieee80211_debugfs_key_remove_beacon_default(
25 	struct ieee80211_sub_if_data *sdata)
26 {}
27 #endif
28 
29 #endif /* __MAC80211_DEBUGFS_KEY_H */
30