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); |
Johannes Berg | f7e0104 | 2010-12-09 19:49:02 +0100 | [diff] [blame] | 7 | void ieee80211_debugfs_key_update_default(struct ieee80211_sub_if_data *sdata); |
Jouni Malinen | 3cfcf6a | 2009-01-08 13:32:02 +0200 | [diff] [blame] | 8 | void ieee80211_debugfs_key_add_mgmt_default( |
| 9 | struct ieee80211_sub_if_data *sdata); |
| 10 | void ieee80211_debugfs_key_remove_mgmt_default( |
| 11 | struct ieee80211_sub_if_data *sdata); |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 12 | void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key, |
| 13 | struct sta_info *sta); |
| 14 | #else |
Johannes Berg | 3b96766 | 2008-04-08 17:56:52 +0200 | [diff] [blame] | 15 | static inline void ieee80211_debugfs_key_add(struct ieee80211_key *key) |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 16 | {} |
| 17 | static inline void ieee80211_debugfs_key_remove(struct ieee80211_key *key) |
| 18 | {} |
Johannes Berg | f7e0104 | 2010-12-09 19:49:02 +0100 | [diff] [blame] | 19 | static inline void ieee80211_debugfs_key_update_default( |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 20 | struct ieee80211_sub_if_data *sdata) |
| 21 | {} |
Jouni Malinen | 3cfcf6a | 2009-01-08 13:32:02 +0200 | [diff] [blame] | 22 | static inline void ieee80211_debugfs_key_add_mgmt_default( |
| 23 | struct ieee80211_sub_if_data *sdata) |
| 24 | {} |
| 25 | static inline void ieee80211_debugfs_key_remove_mgmt_default( |
| 26 | struct ieee80211_sub_if_data *sdata) |
| 27 | {} |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 28 | static 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 */ |