blob: 32adc77e9c77cc8019f6a04aee2d3247848a5d7d [file] [log] [blame]
Jiri Bence9f207f2007-05-05 11:46:38 -07001#ifndef __MAC80211_DEBUGFS_KEY_H
2#define __MAC80211_DEBUGFS_KEY_H
3
4#ifdef CONFIG_MAC80211_DEBUGFS
Johannes Berg3b967662008-04-08 17:56:52 +02005void ieee80211_debugfs_key_add(struct ieee80211_key *key);
Jiri Bence9f207f2007-05-05 11:46:38 -07006void ieee80211_debugfs_key_remove(struct ieee80211_key *key);
Johannes Bergf7e01042010-12-09 19:49:02 +01007void ieee80211_debugfs_key_update_default(struct ieee80211_sub_if_data *sdata);
Jouni Malinen3cfcf6a2009-01-08 13:32:02 +02008void ieee80211_debugfs_key_add_mgmt_default(
9 struct ieee80211_sub_if_data *sdata);
10void ieee80211_debugfs_key_remove_mgmt_default(
11 struct ieee80211_sub_if_data *sdata);
Jiri Bence9f207f2007-05-05 11:46:38 -070012void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key,
13 struct sta_info *sta);
14#else
Johannes Berg3b967662008-04-08 17:56:52 +020015static inline void ieee80211_debugfs_key_add(struct ieee80211_key *key)
Jiri Bence9f207f2007-05-05 11:46:38 -070016{}
17static inline void ieee80211_debugfs_key_remove(struct ieee80211_key *key)
18{}
Johannes Bergf7e01042010-12-09 19:49:02 +010019static inline void ieee80211_debugfs_key_update_default(
Jiri Bence9f207f2007-05-05 11:46:38 -070020 struct ieee80211_sub_if_data *sdata)
21{}
Jouni Malinen3cfcf6a2009-01-08 13:32:02 +020022static inline void ieee80211_debugfs_key_add_mgmt_default(
23 struct ieee80211_sub_if_data *sdata)
24{}
25static inline void ieee80211_debugfs_key_remove_mgmt_default(
26 struct ieee80211_sub_if_data *sdata)
27{}
Jiri Bence9f207f2007-05-05 11:46:38 -070028static inline void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key,
29 struct sta_info *sta)
30{}
31#endif
32
33#endif /* __MAC80211_DEBUGFS_KEY_H */