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