Googler | 9398cc3 | 2022-12-02 17:21:52 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Googler | af606d2 | 2022-10-26 21:40:12 -0700 | [diff] [blame] | 2 | #ifndef __MAC80211_DEBUGFS_KEY_H |
| 3 | #define __MAC80211_DEBUGFS_KEY_H |
| 4 | |
| 5 | #ifdef CONFIG_MAC80211_DEBUGFS |
| 6 | void ieee80211_debugfs_key_add(struct ieee80211_key *key); |
| 7 | void ieee80211_debugfs_key_remove(struct ieee80211_key *key); |
| 8 | void ieee80211_debugfs_key_update_default(struct ieee80211_sub_if_data *sdata); |
| 9 | void ieee80211_debugfs_key_add_mgmt_default( |
| 10 | struct ieee80211_sub_if_data *sdata); |
| 11 | void ieee80211_debugfs_key_remove_mgmt_default( |
| 12 | struct ieee80211_sub_if_data *sdata); |
Googler | b48fa91 | 2023-03-17 12:40:29 +0530 | [diff] [blame^] | 13 | void ieee80211_debugfs_key_add_beacon_default( |
| 14 | struct ieee80211_sub_if_data *sdata); |
| 15 | void ieee80211_debugfs_key_remove_beacon_default( |
| 16 | struct ieee80211_sub_if_data *sdata); |
Googler | af606d2 | 2022-10-26 21:40:12 -0700 | [diff] [blame] | 17 | void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key, |
| 18 | struct sta_info *sta); |
| 19 | #else |
| 20 | static inline void ieee80211_debugfs_key_add(struct ieee80211_key *key) |
| 21 | {} |
| 22 | static inline void ieee80211_debugfs_key_remove(struct ieee80211_key *key) |
| 23 | {} |
| 24 | static inline void ieee80211_debugfs_key_update_default( |
| 25 | struct ieee80211_sub_if_data *sdata) |
| 26 | {} |
| 27 | static inline void ieee80211_debugfs_key_add_mgmt_default( |
| 28 | struct ieee80211_sub_if_data *sdata) |
| 29 | {} |
| 30 | static inline void ieee80211_debugfs_key_remove_mgmt_default( |
| 31 | struct ieee80211_sub_if_data *sdata) |
| 32 | {} |
Googler | b48fa91 | 2023-03-17 12:40:29 +0530 | [diff] [blame^] | 33 | static inline void ieee80211_debugfs_key_add_beacon_default( |
| 34 | struct ieee80211_sub_if_data *sdata) |
| 35 | {} |
| 36 | static inline void ieee80211_debugfs_key_remove_beacon_default( |
| 37 | struct ieee80211_sub_if_data *sdata) |
| 38 | {} |
Googler | af606d2 | 2022-10-26 21:40:12 -0700 | [diff] [blame] | 39 | static inline void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key, |
| 40 | struct sta_info *sta) |
| 41 | {} |
| 42 | #endif |
| 43 | |
| 44 | #endif /* __MAC80211_DEBUGFS_KEY_H */ |