Skip to content

Commit c7e9dbc

Browse files
committed
mac80211: remove sta_remove_debugfs driver callback
No drivers implement this, relying either on the recursive directory removal to remove their debugfs, or not having any to start with. Remove the dead driver callback. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 8826fef commit c7e9dbc

File tree

3 files changed

+2
-28
lines changed

3 files changed

+2
-28
lines changed

include/net/mac80211.h

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3101,11 +3101,8 @@ enum ieee80211_reconfig_type {
31013101
*
31023102
* @sta_add_debugfs: Drivers can use this callback to add debugfs files
31033103
* when a station is added to mac80211's station list. This callback
3104-
* and @sta_remove_debugfs should be within a CONFIG_MAC80211_DEBUGFS
3105-
* conditional. This callback can sleep.
3106-
*
3107-
* @sta_remove_debugfs: Remove the debugfs files which were added using
3108-
* @sta_add_debugfs. This callback can sleep.
3104+
* should be within a CONFIG_MAC80211_DEBUGFS conditional. This
3105+
* callback can sleep.
31093106
*
31103107
* @sta_notify: Notifies low level driver about power state transition of an
31113108
* associated station, AP, IBSS/WDS/mesh peer etc. For a VIF operating
@@ -3501,10 +3498,6 @@ struct ieee80211_ops {
35013498
struct ieee80211_vif *vif,
35023499
struct ieee80211_sta *sta,
35033500
struct dentry *dir);
3504-
void (*sta_remove_debugfs)(struct ieee80211_hw *hw,
3505-
struct ieee80211_vif *vif,
3506-
struct ieee80211_sta *sta,
3507-
struct dentry *dir);
35083501
#endif
35093502
void (*sta_notify)(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
35103503
enum sta_notify_cmd, struct ieee80211_sta *sta);

net/mac80211/debugfs_sta.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -544,10 +544,6 @@ void ieee80211_sta_debugfs_add(struct sta_info *sta)
544544

545545
void ieee80211_sta_debugfs_remove(struct sta_info *sta)
546546
{
547-
struct ieee80211_local *local = sta->local;
548-
struct ieee80211_sub_if_data *sdata = sta->sdata;
549-
550-
drv_sta_remove_debugfs(local, sdata, &sta->sta, sta->debugfs_dir);
551547
debugfs_remove_recursive(sta->debugfs_dir);
552548
sta->debugfs_dir = NULL;
553549
}

net/mac80211/driver-ops.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -499,21 +499,6 @@ static inline void drv_sta_add_debugfs(struct ieee80211_local *local,
499499
local->ops->sta_add_debugfs(&local->hw, &sdata->vif,
500500
sta, dir);
501501
}
502-
503-
static inline void drv_sta_remove_debugfs(struct ieee80211_local *local,
504-
struct ieee80211_sub_if_data *sdata,
505-
struct ieee80211_sta *sta,
506-
struct dentry *dir)
507-
{
508-
might_sleep();
509-
510-
sdata = get_bss_sdata(sdata);
511-
check_sdata_in_driver(sdata);
512-
513-
if (local->ops->sta_remove_debugfs)
514-
local->ops->sta_remove_debugfs(&local->hw, &sdata->vif,
515-
sta, dir);
516-
}
517502
#endif
518503

519504
static inline void drv_sta_pre_rcu_remove(struct ieee80211_local *local,

0 commit comments

Comments
 (0)