xref: /openbmc/linux/net/mac80211/debugfs_netdev.h (revision 170cd6a6)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2e9f207f0SJiri Benc /* routines exported for debugfs handling */
3e9f207f0SJiri Benc 
4e9f207f0SJiri Benc #ifndef __IEEE80211_DEBUGFS_NETDEV_H
5e9f207f0SJiri Benc #define __IEEE80211_DEBUGFS_NETDEV_H
6e9f207f0SJiri Benc 
7aa51142fSZhao, Gang #include "ieee80211_i.h"
8aa51142fSZhao, Gang 
9e9f207f0SJiri Benc #ifdef CONFIG_MAC80211_DEBUGFS
10e9f207f0SJiri Benc void ieee80211_debugfs_add_netdev(struct ieee80211_sub_if_data *sdata);
11e9f207f0SJiri Benc void ieee80211_debugfs_remove_netdev(struct ieee80211_sub_if_data *sdata);
1247846c9bSJohannes Berg void ieee80211_debugfs_rename_netdev(struct ieee80211_sub_if_data *sdata);
13*170cd6a6SBenjamin Berg 
14*170cd6a6SBenjamin Berg void ieee80211_link_debugfs_add(struct ieee80211_link_data *link);
15*170cd6a6SBenjamin Berg void ieee80211_link_debugfs_remove(struct ieee80211_link_data *link);
16*170cd6a6SBenjamin Berg 
17*170cd6a6SBenjamin Berg void ieee80211_link_debugfs_drv_add(struct ieee80211_link_data *link);
18*170cd6a6SBenjamin Berg void ieee80211_link_debugfs_drv_remove(struct ieee80211_link_data *link);
19e9f207f0SJiri Benc #else
ieee80211_debugfs_add_netdev(struct ieee80211_sub_if_data * sdata)20e9f207f0SJiri Benc static inline void ieee80211_debugfs_add_netdev(
21e9f207f0SJiri Benc 	struct ieee80211_sub_if_data *sdata)
22e9f207f0SJiri Benc {}
ieee80211_debugfs_remove_netdev(struct ieee80211_sub_if_data * sdata)23e9f207f0SJiri Benc static inline void ieee80211_debugfs_remove_netdev(
24e9f207f0SJiri Benc 	struct ieee80211_sub_if_data *sdata)
25e9f207f0SJiri Benc {}
ieee80211_debugfs_rename_netdev(struct ieee80211_sub_if_data * sdata)2647846c9bSJohannes Berg static inline void ieee80211_debugfs_rename_netdev(
2747846c9bSJohannes Berg 	struct ieee80211_sub_if_data *sdata)
28e9f207f0SJiri Benc {}
29*170cd6a6SBenjamin Berg 
ieee80211_link_debugfs_add(struct ieee80211_link_data * link)30*170cd6a6SBenjamin Berg static inline void ieee80211_link_debugfs_add(struct ieee80211_link_data *link)
31*170cd6a6SBenjamin Berg {}
ieee80211_link_debugfs_remove(struct ieee80211_link_data * link)32*170cd6a6SBenjamin Berg static inline void ieee80211_link_debugfs_remove(struct ieee80211_link_data *link)
33*170cd6a6SBenjamin Berg {}
34*170cd6a6SBenjamin Berg 
ieee80211_link_debugfs_drv_add(struct ieee80211_link_data * link)35*170cd6a6SBenjamin Berg static inline void ieee80211_link_debugfs_drv_add(struct ieee80211_link_data *link)
36*170cd6a6SBenjamin Berg {}
ieee80211_link_debugfs_drv_remove(struct ieee80211_link_data * link)37*170cd6a6SBenjamin Berg static inline void ieee80211_link_debugfs_drv_remove(struct ieee80211_link_data *link)
38*170cd6a6SBenjamin Berg {}
39e9f207f0SJiri Benc #endif
40e9f207f0SJiri Benc 
41e9f207f0SJiri Benc #endif /* __IEEE80211_DEBUGFS_NETDEV_H */
42