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_add_netdev(struct ieee80211_sub_if_data *sdata, |
15 | bool mld_vif); |
16 | void ieee80211_debugfs_remove_netdev(struct ieee80211_sub_if_data *sdata); |
17 | void ieee80211_debugfs_rename_netdev(struct ieee80211_sub_if_data *sdata); |
18 | void ieee80211_debugfs_recreate_netdev(struct ieee80211_sub_if_data *sdata, |
19 | bool mld_vif); |
20 | |
21 | void ieee80211_link_debugfs_add(struct ieee80211_link_data *link); |
22 | void ieee80211_link_debugfs_remove(struct ieee80211_link_data *link); |
23 | |
24 | void ieee80211_link_debugfs_drv_add(struct ieee80211_link_data *link); |
25 | void ieee80211_link_debugfs_drv_remove(struct ieee80211_link_data *link); |
26 | #else |
27 | static inline void ieee80211_debugfs_add_netdev( |
28 | struct ieee80211_sub_if_data *sdata, bool mld_vif) |
29 | {} |
30 | static inline void ieee80211_debugfs_remove_netdev( |
31 | struct ieee80211_sub_if_data *sdata) |
32 | {} |
33 | static inline void ieee80211_debugfs_rename_netdev( |
34 | struct ieee80211_sub_if_data *sdata) |
35 | {} |
36 | static inline void ieee80211_debugfs_recreate_netdev( |
37 | struct ieee80211_sub_if_data *sdata, bool mld_vif) |
38 | {} |
39 | static inline void ieee80211_link_debugfs_add(struct ieee80211_link_data *link) |
40 | {} |
41 | static inline void ieee80211_link_debugfs_remove(struct ieee80211_link_data *link) |
42 | {} |
43 | |
44 | static inline void ieee80211_link_debugfs_drv_add(struct ieee80211_link_data *link) |
45 | {} |
46 | static inline void ieee80211_link_debugfs_drv_remove(struct ieee80211_link_data *link) |
47 | {} |
48 | #endif |
49 | |
50 | #endif /* __IEEE80211_DEBUGFS_NETDEV_H */ |
51 |