1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Portions: 4 * Copyright (C) 2023 Intel Corporation 5 */ 6 /* routines exported for debugfs handling */ 7 8 #ifndef __IEEE80211_DEBUGFS_NETDEV_H 9 #define __IEEE80211_DEBUGFS_NETDEV_H 10 11 #include "ieee80211_i.h" 12 13 #ifdef CONFIG_MAC80211_DEBUGFS 14 void ieee80211_debugfs_remove_netdev(struct ieee80211_sub_if_data *sdata); 15 void ieee80211_debugfs_rename_netdev(struct ieee80211_sub_if_data *sdata); 16 void ieee80211_debugfs_recreate_netdev(struct ieee80211_sub_if_data *sdata, 17 bool mld_vif); 18 19 void ieee80211_link_debugfs_add(struct ieee80211_link_data *link); 20 void ieee80211_link_debugfs_remove(struct ieee80211_link_data *link); 21 22 void ieee80211_link_debugfs_drv_add(struct ieee80211_link_data *link); 23 void ieee80211_link_debugfs_drv_remove(struct ieee80211_link_data *link); 24 #else 25 static inline void ieee80211_debugfs_remove_netdev( 26 struct ieee80211_sub_if_data *sdata) 27 {} 28 static inline void ieee80211_debugfs_rename_netdev( 29 struct ieee80211_sub_if_data *sdata) 30 {} 31 static inline void ieee80211_debugfs_recreate_netdev( 32 struct ieee80211_sub_if_data *sdata, bool mld_vif) 33 {} 34 static inline void ieee80211_link_debugfs_add(struct ieee80211_link_data *link) 35 {} 36 static inline void ieee80211_link_debugfs_remove(struct ieee80211_link_data *link) 37 {} 38 39 static inline void ieee80211_link_debugfs_drv_add(struct ieee80211_link_data *link) 40 {} 41 static inline void ieee80211_link_debugfs_drv_remove(struct ieee80211_link_data *link) 42 {} 43 #endif 44 45 #endif /* __IEEE80211_DEBUGFS_NETDEV_H */ 46
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.