mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
170cd6a66d
This adds the infrastructure to have netdev specific per-link data both for mac80211 and the driver in debugfs. For the driver, a new callback is added which is only used if MLO is supported. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com> Signed-off-by: Gregory Greenman <gregory.greenman@intel.com> Link: https://lore.kernel.org/r/20230301115906.fb4c947e4df8.I69b3516ddf4c8a7501b395f652d6063444ecad63@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
42 lines
1.4 KiB
C
42 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* routines exported for debugfs handling */
|
|
|
|
#ifndef __IEEE80211_DEBUGFS_NETDEV_H
|
|
#define __IEEE80211_DEBUGFS_NETDEV_H
|
|
|
|
#include "ieee80211_i.h"
|
|
|
|
#ifdef CONFIG_MAC80211_DEBUGFS
|
|
void ieee80211_debugfs_add_netdev(struct ieee80211_sub_if_data *sdata);
|
|
void ieee80211_debugfs_remove_netdev(struct ieee80211_sub_if_data *sdata);
|
|
void ieee80211_debugfs_rename_netdev(struct ieee80211_sub_if_data *sdata);
|
|
|
|
void ieee80211_link_debugfs_add(struct ieee80211_link_data *link);
|
|
void ieee80211_link_debugfs_remove(struct ieee80211_link_data *link);
|
|
|
|
void ieee80211_link_debugfs_drv_add(struct ieee80211_link_data *link);
|
|
void ieee80211_link_debugfs_drv_remove(struct ieee80211_link_data *link);
|
|
#else
|
|
static inline void ieee80211_debugfs_add_netdev(
|
|
struct ieee80211_sub_if_data *sdata)
|
|
{}
|
|
static inline void ieee80211_debugfs_remove_netdev(
|
|
struct ieee80211_sub_if_data *sdata)
|
|
{}
|
|
static inline void ieee80211_debugfs_rename_netdev(
|
|
struct ieee80211_sub_if_data *sdata)
|
|
{}
|
|
|
|
static inline void ieee80211_link_debugfs_add(struct ieee80211_link_data *link)
|
|
{}
|
|
static inline void ieee80211_link_debugfs_remove(struct ieee80211_link_data *link)
|
|
{}
|
|
|
|
static inline void ieee80211_link_debugfs_drv_add(struct ieee80211_link_data *link)
|
|
{}
|
|
static inline void ieee80211_link_debugfs_drv_remove(struct ieee80211_link_data *link)
|
|
{}
|
|
#endif
|
|
|
|
#endif /* __IEEE80211_DEBUGFS_NETDEV_H */
|