mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
733c498a80
If a driver implements the change_interface() method, we switch interface type without taking the interface down, but still will recreate the debugfs for it since it's a new type. As such, we should use the ieee80211_debugfs_recreate_netdev() function here to also recreate the driver's files, if it is indeed from a type change while up. Link: https://msgid.link/20240129155402.7311a36ffeeb.I18df02bbeb685d4250911de5ffbaf090f60c3803@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
46 lines
1.5 KiB
C
46 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Portions:
|
|
* Copyright (C) 2023 Intel Corporation
|
|
*/
|
|
/* 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_remove_netdev(struct ieee80211_sub_if_data *sdata);
|
|
void ieee80211_debugfs_rename_netdev(struct ieee80211_sub_if_data *sdata);
|
|
void ieee80211_debugfs_recreate_netdev(struct ieee80211_sub_if_data *sdata,
|
|
bool mld_vif);
|
|
|
|
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_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_debugfs_recreate_netdev(
|
|
struct ieee80211_sub_if_data *sdata, bool mld_vif)
|
|
{}
|
|
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 */
|