xref: /linux/net/mac80211/debugfs_key.h (revision ead5d1f4d877e92c051e1a1ade623d0d30e71619)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2e9f207f0SJiri Benc #ifndef __MAC80211_DEBUGFS_KEY_H
3e9f207f0SJiri Benc #define __MAC80211_DEBUGFS_KEY_H
4e9f207f0SJiri Benc 
5e9f207f0SJiri Benc #ifdef CONFIG_MAC80211_DEBUGFS
63b96766fSJohannes Berg void ieee80211_debugfs_key_add(struct ieee80211_key *key);
7e9f207f0SJiri Benc void ieee80211_debugfs_key_remove(struct ieee80211_key *key);
8f7e0104cSJohannes Berg void ieee80211_debugfs_key_update_default(struct ieee80211_sub_if_data *sdata);
93cfcf6acSJouni Malinen void ieee80211_debugfs_key_add_mgmt_default(
103cfcf6acSJouni Malinen 	struct ieee80211_sub_if_data *sdata);
113cfcf6acSJouni Malinen void ieee80211_debugfs_key_remove_mgmt_default(
123cfcf6acSJouni Malinen 	struct ieee80211_sub_if_data *sdata);
13*e5473e80SJouni Malinen void ieee80211_debugfs_key_add_beacon_default(
14*e5473e80SJouni Malinen 	struct ieee80211_sub_if_data *sdata);
15*e5473e80SJouni Malinen void ieee80211_debugfs_key_remove_beacon_default(
16*e5473e80SJouni Malinen 	struct ieee80211_sub_if_data *sdata);
17e9f207f0SJiri Benc void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key,
18e9f207f0SJiri Benc 				   struct sta_info *sta);
19e9f207f0SJiri Benc #else
ieee80211_debugfs_key_add(struct ieee80211_key * key)203b96766fSJohannes Berg static inline void ieee80211_debugfs_key_add(struct ieee80211_key *key)
21e9f207f0SJiri Benc {}
ieee80211_debugfs_key_remove(struct ieee80211_key * key)22e9f207f0SJiri Benc static inline void ieee80211_debugfs_key_remove(struct ieee80211_key *key)
23e9f207f0SJiri Benc {}
ieee80211_debugfs_key_update_default(struct ieee80211_sub_if_data * sdata)24f7e0104cSJohannes Berg static inline void ieee80211_debugfs_key_update_default(
25e9f207f0SJiri Benc 	struct ieee80211_sub_if_data *sdata)
26e9f207f0SJiri Benc {}
ieee80211_debugfs_key_add_mgmt_default(struct ieee80211_sub_if_data * sdata)273cfcf6acSJouni Malinen static inline void ieee80211_debugfs_key_add_mgmt_default(
283cfcf6acSJouni Malinen 	struct ieee80211_sub_if_data *sdata)
293cfcf6acSJouni Malinen {}
ieee80211_debugfs_key_remove_mgmt_default(struct ieee80211_sub_if_data * sdata)303cfcf6acSJouni Malinen static inline void ieee80211_debugfs_key_remove_mgmt_default(
313cfcf6acSJouni Malinen 	struct ieee80211_sub_if_data *sdata)
323cfcf6acSJouni Malinen {}
ieee80211_debugfs_key_add_beacon_default(struct ieee80211_sub_if_data * sdata)33*e5473e80SJouni Malinen static inline void ieee80211_debugfs_key_add_beacon_default(
34*e5473e80SJouni Malinen 	struct ieee80211_sub_if_data *sdata)
35*e5473e80SJouni Malinen {}
ieee80211_debugfs_key_remove_beacon_default(struct ieee80211_sub_if_data * sdata)36*e5473e80SJouni Malinen static inline void ieee80211_debugfs_key_remove_beacon_default(
37*e5473e80SJouni Malinen 	struct ieee80211_sub_if_data *sdata)
38*e5473e80SJouni Malinen {}
ieee80211_debugfs_key_sta_del(struct ieee80211_key * key,struct sta_info * sta)39e9f207f0SJiri Benc static inline void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key,
40e9f207f0SJiri Benc 						 struct sta_info *sta)
41e9f207f0SJiri Benc {}
42e9f207f0SJiri Benc #endif
43e9f207f0SJiri Benc 
44e9f207f0SJiri Benc #endif /* __MAC80211_DEBUGFS_KEY_H */
45