diff options
author | Ben Greear <greearb@candelatech.com> | 2010-09-22 23:29:01 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-09-27 15:57:43 -0400 |
commit | 295bafb47b0d365e1b4f747dffef29e590f13233 (patch) | |
tree | 10f1ad56c7094bacddee96de62beb77795787346 /net | |
parent | a42acef0dd3548ffda03d245d41b95250354017e (diff) |
mac80211: Support multiple VIFS per AP in debugfs.
Create 'stations' sub-directory under each netdev:[vif-name]
directory to hold all stations for that network device.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/debugfs.c | 1 | ||||
-rw-r--r-- | net/mac80211/debugfs_netdev.c | 3 | ||||
-rw-r--r-- | net/mac80211/debugfs_sta.c | 2 | ||||
-rw-r--r-- | net/mac80211/ieee80211_i.h | 2 |
4 files changed, 5 insertions, 3 deletions
diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index e81ef4e8cb32..ebd5b69f562e 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c | |||
@@ -368,7 +368,6 @@ void debugfs_hw_add(struct ieee80211_local *local) | |||
368 | if (!phyd) | 368 | if (!phyd) |
369 | return; | 369 | return; |
370 | 370 | ||
371 | local->debugfs.stations = debugfs_create_dir("stations", phyd); | ||
372 | local->debugfs.keys = debugfs_create_dir("keys", phyd); | 371 | local->debugfs.keys = debugfs_create_dir("keys", phyd); |
373 | 372 | ||
374 | DEBUGFS_ADD(frequency); | 373 | DEBUGFS_ADD(frequency); |
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c index 20b2998fa0ed..3e12430591b7 100644 --- a/net/mac80211/debugfs_netdev.c +++ b/net/mac80211/debugfs_netdev.c | |||
@@ -409,6 +409,9 @@ void ieee80211_debugfs_add_netdev(struct ieee80211_sub_if_data *sdata) | |||
409 | sprintf(buf, "netdev:%s", sdata->name); | 409 | sprintf(buf, "netdev:%s", sdata->name); |
410 | sdata->debugfs.dir = debugfs_create_dir(buf, | 410 | sdata->debugfs.dir = debugfs_create_dir(buf, |
411 | sdata->local->hw.wiphy->debugfsdir); | 411 | sdata->local->hw.wiphy->debugfsdir); |
412 | if (sdata->debugfs.dir) | ||
413 | sdata->debugfs.subdir_stations = debugfs_create_dir("stations", | ||
414 | sdata->debugfs.dir); | ||
412 | add_files(sdata); | 415 | add_files(sdata); |
413 | } | 416 | } |
414 | 417 | ||
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c index 76839d4dfaac..6b7ff9fb4604 100644 --- a/net/mac80211/debugfs_sta.c +++ b/net/mac80211/debugfs_sta.c | |||
@@ -300,7 +300,7 @@ STA_OPS(ht_capa); | |||
300 | 300 | ||
301 | void ieee80211_sta_debugfs_add(struct sta_info *sta) | 301 | void ieee80211_sta_debugfs_add(struct sta_info *sta) |
302 | { | 302 | { |
303 | struct dentry *stations_dir = sta->local->debugfs.stations; | 303 | struct dentry *stations_dir = sta->sdata->debugfs.subdir_stations; |
304 | u8 mac[3*ETH_ALEN]; | 304 | u8 mac[3*ETH_ALEN]; |
305 | 305 | ||
306 | sta->debugfs.add_has_run = true; | 306 | sta->debugfs.add_has_run = true; |
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 78a8d9208cec..40f747273389 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -564,6 +564,7 @@ struct ieee80211_sub_if_data { | |||
564 | #ifdef CONFIG_MAC80211_DEBUGFS | 564 | #ifdef CONFIG_MAC80211_DEBUGFS |
565 | struct { | 565 | struct { |
566 | struct dentry *dir; | 566 | struct dentry *dir; |
567 | struct dentry *subdir_stations; | ||
567 | struct dentry *default_key; | 568 | struct dentry *default_key; |
568 | struct dentry *default_mgmt_key; | 569 | struct dentry *default_mgmt_key; |
569 | } debugfs; | 570 | } debugfs; |
@@ -899,7 +900,6 @@ struct ieee80211_local { | |||
899 | #ifdef CONFIG_MAC80211_DEBUGFS | 900 | #ifdef CONFIG_MAC80211_DEBUGFS |
900 | struct local_debugfsdentries { | 901 | struct local_debugfsdentries { |
901 | struct dentry *rcdir; | 902 | struct dentry *rcdir; |
902 | struct dentry *stations; | ||
903 | struct dentry *keys; | 903 | struct dentry *keys; |
904 | } debugfs; | 904 | } debugfs; |
905 | #endif | 905 | #endif |