Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 1 | #ifndef __MAC80211_DEBUGFS_KEY_H |
| 2 | #define __MAC80211_DEBUGFS_KEY_H |
| 3 | |
| 4 | #ifdef CONFIG_MAC80211_DEBUGFS |
Johannes Berg | 3b96766 | 2008-04-08 17:56:52 +0200 | [diff] [blame] | 5 | void ieee80211_debugfs_key_add(struct ieee80211_key *key); |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 6 | void ieee80211_debugfs_key_remove(struct ieee80211_key *key); |
| 7 | void ieee80211_debugfs_key_add_default(struct ieee80211_sub_if_data *sdata); |
| 8 | void ieee80211_debugfs_key_remove_default(struct ieee80211_sub_if_data *sdata); |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 9 | void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key, |
| 10 | struct sta_info *sta); |
| 11 | #else |
Johannes Berg | 3b96766 | 2008-04-08 17:56:52 +0200 | [diff] [blame] | 12 | static inline void ieee80211_debugfs_key_add(struct ieee80211_key *key) |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 13 | {} |
| 14 | static inline void ieee80211_debugfs_key_remove(struct ieee80211_key *key) |
| 15 | {} |
| 16 | static inline void ieee80211_debugfs_key_add_default( |
| 17 | struct ieee80211_sub_if_data *sdata) |
| 18 | {} |
| 19 | static inline void ieee80211_debugfs_key_remove_default( |
| 20 | struct ieee80211_sub_if_data *sdata) |
| 21 | {} |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 22 | static inline void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key, |
| 23 | struct sta_info *sta) |
| 24 | {} |
| 25 | #endif |
| 26 | |
| 27 | #endif /* __MAC80211_DEBUGFS_KEY_H */ |