diff options
author | Johannes Berg <johannes.berg@intel.com> | 2016-04-05 05:59:05 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-04-05 05:59:05 -0400 |
commit | fc4a25c5b741ecb4ef4d0f1802775e8a88d7e0a7 (patch) | |
tree | fe45a9ef2ba9272a8040d652f002ff606d3fe677 /net/mac80211 | |
parent | 96f321c9d42a61aa1e2760a47a574f286b028be2 (diff) |
mac80211: remove sta_info debugfs sub-struct
Since the previous patch, the struct only has a single member,
so remove the struct and leave just the single member.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/debugfs_sta.c | 22 | ||||
-rw-r--r-- | net/mac80211/rate.h | 4 | ||||
-rw-r--r-- | net/mac80211/sta_info.h | 6 |
3 files changed, 15 insertions, 17 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c index 051b22505720..af034912abbe 100644 --- a/net/mac80211/debugfs_sta.c +++ b/net/mac80211/debugfs_sta.c | |||
@@ -335,14 +335,14 @@ STA_OPS(vht_capa); | |||
335 | 335 | ||
336 | #define DEBUGFS_ADD(name) \ | 336 | #define DEBUGFS_ADD(name) \ |
337 | debugfs_create_file(#name, 0400, \ | 337 | debugfs_create_file(#name, 0400, \ |
338 | sta->debugfs.dir, sta, &sta_ ##name## _ops); | 338 | sta->debugfs_dir, sta, &sta_ ##name## _ops); |
339 | 339 | ||
340 | #define DEBUGFS_ADD_COUNTER(name, field) \ | 340 | #define DEBUGFS_ADD_COUNTER(name, field) \ |
341 | if (sizeof(sta->field) == sizeof(u32)) \ | 341 | if (sizeof(sta->field) == sizeof(u32)) \ |
342 | debugfs_create_u32(#name, 0400, sta->debugfs.dir, \ | 342 | debugfs_create_u32(#name, 0400, sta->debugfs_dir, \ |
343 | (u32 *) &sta->field); \ | 343 | (u32 *) &sta->field); \ |
344 | else \ | 344 | else \ |
345 | debugfs_create_u64(#name, 0400, sta->debugfs.dir, \ | 345 | debugfs_create_u64(#name, 0400, sta->debugfs_dir, \ |
346 | (u64 *) &sta->field); | 346 | (u64 *) &sta->field); |
347 | 347 | ||
348 | void ieee80211_sta_debugfs_add(struct sta_info *sta) | 348 | void ieee80211_sta_debugfs_add(struct sta_info *sta) |
@@ -366,8 +366,8 @@ void ieee80211_sta_debugfs_add(struct sta_info *sta) | |||
366 | * destroyed quickly enough the old station's debugfs | 366 | * destroyed quickly enough the old station's debugfs |
367 | * dir might still be around. | 367 | * dir might still be around. |
368 | */ | 368 | */ |
369 | sta->debugfs.dir = debugfs_create_dir(mac, stations_dir); | 369 | sta->debugfs_dir = debugfs_create_dir(mac, stations_dir); |
370 | if (!sta->debugfs.dir) | 370 | if (!sta->debugfs_dir) |
371 | return; | 371 | return; |
372 | 372 | ||
373 | DEBUGFS_ADD(flags); | 373 | DEBUGFS_ADD(flags); |
@@ -383,14 +383,14 @@ void ieee80211_sta_debugfs_add(struct sta_info *sta) | |||
383 | 383 | ||
384 | if (sizeof(sta->driver_buffered_tids) == sizeof(u32)) | 384 | if (sizeof(sta->driver_buffered_tids) == sizeof(u32)) |
385 | debugfs_create_x32("driver_buffered_tids", 0400, | 385 | debugfs_create_x32("driver_buffered_tids", 0400, |
386 | sta->debugfs.dir, | 386 | sta->debugfs_dir, |
387 | (u32 *)&sta->driver_buffered_tids); | 387 | (u32 *)&sta->driver_buffered_tids); |
388 | else | 388 | else |
389 | debugfs_create_x64("driver_buffered_tids", 0400, | 389 | debugfs_create_x64("driver_buffered_tids", 0400, |
390 | sta->debugfs.dir, | 390 | sta->debugfs_dir, |
391 | (u64 *)&sta->driver_buffered_tids); | 391 | (u64 *)&sta->driver_buffered_tids); |
392 | 392 | ||
393 | drv_sta_add_debugfs(local, sdata, &sta->sta, sta->debugfs.dir); | 393 | drv_sta_add_debugfs(local, sdata, &sta->sta, sta->debugfs_dir); |
394 | } | 394 | } |
395 | 395 | ||
396 | void ieee80211_sta_debugfs_remove(struct sta_info *sta) | 396 | void ieee80211_sta_debugfs_remove(struct sta_info *sta) |
@@ -398,7 +398,7 @@ void ieee80211_sta_debugfs_remove(struct sta_info *sta) | |||
398 | struct ieee80211_local *local = sta->local; | 398 | struct ieee80211_local *local = sta->local; |
399 | struct ieee80211_sub_if_data *sdata = sta->sdata; | 399 | struct ieee80211_sub_if_data *sdata = sta->sdata; |
400 | 400 | ||
401 | drv_sta_remove_debugfs(local, sdata, &sta->sta, sta->debugfs.dir); | 401 | drv_sta_remove_debugfs(local, sdata, &sta->sta, sta->debugfs_dir); |
402 | debugfs_remove_recursive(sta->debugfs.dir); | 402 | debugfs_remove_recursive(sta->debugfs_dir); |
403 | sta->debugfs.dir = NULL; | 403 | sta->debugfs_dir = NULL; |
404 | } | 404 | } |
diff --git a/net/mac80211/rate.h b/net/mac80211/rate.h index 624fe5b81615..8d3260785b94 100644 --- a/net/mac80211/rate.h +++ b/net/mac80211/rate.h | |||
@@ -96,9 +96,9 @@ static inline void rate_control_add_sta_debugfs(struct sta_info *sta) | |||
96 | { | 96 | { |
97 | #ifdef CONFIG_MAC80211_DEBUGFS | 97 | #ifdef CONFIG_MAC80211_DEBUGFS |
98 | struct rate_control_ref *ref = sta->rate_ctrl; | 98 | struct rate_control_ref *ref = sta->rate_ctrl; |
99 | if (ref && sta->debugfs.dir && ref->ops->add_sta_debugfs) | 99 | if (ref && sta->debugfs_dir && ref->ops->add_sta_debugfs) |
100 | ref->ops->add_sta_debugfs(ref->priv, sta->rate_ctrl_priv, | 100 | ref->ops->add_sta_debugfs(ref->priv, sta->rate_ctrl_priv, |
101 | sta->debugfs.dir); | 101 | sta->debugfs_dir); |
102 | #endif | 102 | #endif |
103 | } | 103 | } |
104 | 104 | ||
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h index 276056e99862..3b2105562d8b 100644 --- a/net/mac80211/sta_info.h +++ b/net/mac80211/sta_info.h | |||
@@ -371,7 +371,7 @@ DECLARE_EWMA(signal, 1024, 8) | |||
371 | * @ampdu_mlme: A-MPDU state machine state | 371 | * @ampdu_mlme: A-MPDU state machine state |
372 | * @timer_to_tid: identity mapping to ID timers | 372 | * @timer_to_tid: identity mapping to ID timers |
373 | * @mesh: mesh STA information | 373 | * @mesh: mesh STA information |
374 | * @debugfs: debug filesystem info | 374 | * @debugfs_dir: debug filesystem directory dentry |
375 | * @dead: set to true when sta is unlinked | 375 | * @dead: set to true when sta is unlinked |
376 | * @removed: set to true when sta is being removed from sta_list | 376 | * @removed: set to true when sta is being removed from sta_list |
377 | * @uploaded: set to true when sta is uploaded to the driver | 377 | * @uploaded: set to true when sta is uploaded to the driver |
@@ -486,9 +486,7 @@ struct sta_info { | |||
486 | u8 timer_to_tid[IEEE80211_NUM_TIDS]; | 486 | u8 timer_to_tid[IEEE80211_NUM_TIDS]; |
487 | 487 | ||
488 | #ifdef CONFIG_MAC80211_DEBUGFS | 488 | #ifdef CONFIG_MAC80211_DEBUGFS |
489 | struct sta_info_debugfsdentries { | 489 | struct dentry *debugfs_dir; |
490 | struct dentry *dir; | ||
491 | } debugfs; | ||
492 | #endif | 490 | #endif |
493 | 491 | ||
494 | enum ieee80211_sta_rx_bandwidth cur_max_bandwidth; | 492 | enum ieee80211_sta_rx_bandwidth cur_max_bandwidth; |