debugfs_key.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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_local *local,
  5. struct ieee80211_key *key);
  6. void ieee80211_debugfs_key_remove(struct ieee80211_key *key);
  7. void ieee80211_debugfs_key_add_default(struct ieee80211_sub_if_data *sdata);
  8. void ieee80211_debugfs_key_remove_default(struct ieee80211_sub_if_data *sdata);
  9. void ieee80211_debugfs_key_sta_link(struct ieee80211_key *key,
  10. struct sta_info *sta);
  11. void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key,
  12. struct sta_info *sta);
  13. #else
  14. static inline void ieee80211_debugfs_key_add(struct ieee80211_local *local,
  15. struct ieee80211_key *key)
  16. {}
  17. static inline void ieee80211_debugfs_key_remove(struct ieee80211_key *key)
  18. {}
  19. static inline void ieee80211_debugfs_key_add_default(
  20. struct ieee80211_sub_if_data *sdata)
  21. {}
  22. static inline void ieee80211_debugfs_key_remove_default(
  23. struct ieee80211_sub_if_data *sdata)
  24. {}
  25. static inline void ieee80211_debugfs_key_sta_link(
  26. struct ieee80211_key *key, struct sta_info *sta)
  27. {}
  28. static inline void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key,
  29. struct sta_info *sta)
  30. {}
  31. #endif
  32. #endif /* __MAC80211_DEBUGFS_KEY_H */