debugfs_key.h 1.0 KB

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __MAC80211_DEBUGFS_KEY_H
  3. #define __MAC80211_DEBUGFS_KEY_H
  4. #ifdef CONFIG_MAC80211_DEBUGFS
  5. void ieee80211_debugfs_key_add(struct ieee80211_key *key);
  6. void ieee80211_debugfs_key_remove(struct ieee80211_key *key);
  7. void ieee80211_debugfs_key_update_default(struct ieee80211_sub_if_data *sdata);
  8. void ieee80211_debugfs_key_remove_mgmt_default(
  9. struct ieee80211_sub_if_data *sdata);
  10. void ieee80211_debugfs_key_remove_beacon_default(
  11. struct ieee80211_sub_if_data *sdata);
  12. #else
  13. static inline void ieee80211_debugfs_key_add(struct ieee80211_key *key)
  14. {}
  15. static inline void ieee80211_debugfs_key_remove(struct ieee80211_key *key)
  16. {}
  17. static inline void ieee80211_debugfs_key_update_default(
  18. struct ieee80211_sub_if_data *sdata)
  19. {}
  20. static inline void ieee80211_debugfs_key_remove_mgmt_default(
  21. struct ieee80211_sub_if_data *sdata)
  22. {}
  23. static inline void ieee80211_debugfs_key_remove_beacon_default(
  24. struct ieee80211_sub_if_data *sdata)
  25. {}
  26. #endif
  27. #endif /* __MAC80211_DEBUGFS_KEY_H */