debugfs_key.h 974 B

123456789101112131415161718192021222324252627
  1. #ifndef __MAC80211_DEBUGFS_KEY_H
  2. #define __MAC80211_DEBUGFS_KEY_H
  3. #ifdef CONFIG_MAC80211_DEBUGFS
  4. void ieee80211_debugfs_key_add(struct ieee80211_key *key);
  5. void ieee80211_debugfs_key_remove(struct ieee80211_key *key);
  6. void ieee80211_debugfs_key_add_default(struct ieee80211_sub_if_data *sdata);
  7. void ieee80211_debugfs_key_remove_default(struct ieee80211_sub_if_data *sdata);
  8. void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key,
  9. struct sta_info *sta);
  10. #else
  11. static inline void ieee80211_debugfs_key_add(struct ieee80211_key *key)
  12. {}
  13. static inline void ieee80211_debugfs_key_remove(struct ieee80211_key *key)
  14. {}
  15. static inline void ieee80211_debugfs_key_add_default(
  16. struct ieee80211_sub_if_data *sdata)
  17. {}
  18. static inline void ieee80211_debugfs_key_remove_default(
  19. struct ieee80211_sub_if_data *sdata)
  20. {}
  21. static inline void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key,
  22. struct sta_info *sta)
  23. {}
  24. #endif
  25. #endif /* __MAC80211_DEBUGFS_KEY_H */