xref: /linux/net/mac80211/debugfs_key.h (revision e9f207f0ff90bf60b825800d7450e6f2ff2eab88)
1*e9f207f0SJiri Benc #ifndef __MAC80211_DEBUGFS_KEY_H
2*e9f207f0SJiri Benc #define __MAC80211_DEBUGFS_KEY_H
3*e9f207f0SJiri Benc 
4*e9f207f0SJiri Benc #ifdef CONFIG_MAC80211_DEBUGFS
5*e9f207f0SJiri Benc void ieee80211_debugfs_key_add(struct ieee80211_local *local,
6*e9f207f0SJiri Benc 			       struct ieee80211_key *key);
7*e9f207f0SJiri Benc void ieee80211_debugfs_key_remove(struct ieee80211_key *key);
8*e9f207f0SJiri Benc void ieee80211_debugfs_key_add_default(struct ieee80211_sub_if_data *sdata);
9*e9f207f0SJiri Benc void ieee80211_debugfs_key_remove_default(struct ieee80211_sub_if_data *sdata);
10*e9f207f0SJiri Benc void ieee80211_debugfs_key_sta_link(struct ieee80211_key *key,
11*e9f207f0SJiri Benc 				    struct sta_info *sta);
12*e9f207f0SJiri Benc void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key,
13*e9f207f0SJiri Benc 				   struct sta_info *sta);
14*e9f207f0SJiri Benc #else
15*e9f207f0SJiri Benc static inline void ieee80211_debugfs_key_add(struct ieee80211_local *local,
16*e9f207f0SJiri Benc 					     struct ieee80211_key *key)
17*e9f207f0SJiri Benc {}
18*e9f207f0SJiri Benc static inline void ieee80211_debugfs_key_remove(struct ieee80211_key *key)
19*e9f207f0SJiri Benc {}
20*e9f207f0SJiri Benc static inline void ieee80211_debugfs_key_add_default(
21*e9f207f0SJiri Benc 	struct ieee80211_sub_if_data *sdata)
22*e9f207f0SJiri Benc {}
23*e9f207f0SJiri Benc static inline void ieee80211_debugfs_key_remove_default(
24*e9f207f0SJiri Benc 	struct ieee80211_sub_if_data *sdata)
25*e9f207f0SJiri Benc {}
26*e9f207f0SJiri Benc static inline void ieee80211_debugfs_key_sta_link(
27*e9f207f0SJiri Benc 	struct ieee80211_key *key, struct sta_info *sta)
28*e9f207f0SJiri Benc {}
29*e9f207f0SJiri Benc static inline void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key,
30*e9f207f0SJiri Benc 						 struct sta_info *sta)
31*e9f207f0SJiri Benc {}
32*e9f207f0SJiri Benc #endif
33*e9f207f0SJiri Benc 
34*e9f207f0SJiri Benc #endif /* __MAC80211_DEBUGFS_KEY_H */
35