diff options
Diffstat (limited to 'net/mac80211/debugfs_netdev.c')
-rw-r--r-- | net/mac80211/debugfs_netdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c index bf715d28643b..d2d3c076c853 100644 --- a/net/mac80211/debugfs_netdev.c +++ b/net/mac80211/debugfs_netdev.c | |||
@@ -226,7 +226,7 @@ static void add_files(struct ieee80211_sub_if_data *sdata) | |||
226 | if (!sdata->debugfsdir) | 226 | if (!sdata->debugfsdir) |
227 | return; | 227 | return; |
228 | 228 | ||
229 | switch (sdata->type) { | 229 | switch (sdata->vif.type) { |
230 | case IEEE80211_IF_TYPE_STA: | 230 | case IEEE80211_IF_TYPE_STA: |
231 | case IEEE80211_IF_TYPE_IBSS: | 231 | case IEEE80211_IF_TYPE_IBSS: |
232 | add_sta_files(sdata); | 232 | add_sta_files(sdata); |
@@ -353,7 +353,7 @@ void ieee80211_debugfs_add_netdev(struct ieee80211_sub_if_data *sdata) | |||
353 | 353 | ||
354 | void ieee80211_debugfs_remove_netdev(struct ieee80211_sub_if_data *sdata) | 354 | void ieee80211_debugfs_remove_netdev(struct ieee80211_sub_if_data *sdata) |
355 | { | 355 | { |
356 | del_files(sdata, sdata->type); | 356 | del_files(sdata, sdata->vif.type); |
357 | debugfs_remove(sdata->debugfsdir); | 357 | debugfs_remove(sdata->debugfsdir); |
358 | sdata->debugfsdir = NULL; | 358 | sdata->debugfsdir = NULL; |
359 | } | 359 | } |