aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/debugfs_netdev.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-09-17 01:29:24 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:52:57 -0400
commit0ec3ca445931ff0e7ad6ac61d6c5d2aaafe7a9f5 (patch)
treea9e5fab14a3f928df6536a913ca8aba5e0ab2632 /net/mac80211/debugfs_netdev.c
parent4150c57212ad134765dd78c654a4b9906252b66d (diff)
[PATCH] mac80211: validate VLAN interfaces better
This patch changes mac80211 to verify that VLAN interfaces are valid and not bother drivers about them any more. VLAN interfaces are now only valid when an AP interface is up with the same MAC address, and are automatically turned off when the AP interface is set down. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Cc: Jouni Malinen <j@w1.fi> Signed-off-by: Michael Wu <flamingice@sourmilk.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/debugfs_netdev.c')
-rw-r--r--net/mac80211/debugfs_netdev.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c
index c9948fa58e08..f0e6ab7eb624 100644
--- a/net/mac80211/debugfs_netdev.c
+++ b/net/mac80211/debugfs_netdev.c
@@ -162,9 +162,6 @@ __IEEE80211_IF_FILE(beacon_tail_len);
162/* WDS attributes */ 162/* WDS attributes */
163IEEE80211_IF_FILE(peer, u.wds.remote_addr, MAC); 163IEEE80211_IF_FILE(peer, u.wds.remote_addr, MAC);
164 164
165/* VLAN attributes */
166IEEE80211_IF_FILE(vlan_id, u.vlan.id, DEC);
167
168#define DEBUGFS_ADD(name, type)\ 165#define DEBUGFS_ADD(name, type)\
169 sdata->debugfs.type.name = debugfs_create_file(#name, 0444,\ 166 sdata->debugfs.type.name = debugfs_create_file(#name, 0444,\
170 sdata->debugfsdir, sdata, &name##_ops); 167 sdata->debugfsdir, sdata, &name##_ops);
@@ -223,7 +220,6 @@ static void add_vlan_files(struct ieee80211_sub_if_data *sdata)
223 DEBUGFS_ADD(drop_unencrypted, vlan); 220 DEBUGFS_ADD(drop_unencrypted, vlan);
224 DEBUGFS_ADD(eapol, vlan); 221 DEBUGFS_ADD(eapol, vlan);
225 DEBUGFS_ADD(ieee8021_x, vlan); 222 DEBUGFS_ADD(ieee8021_x, vlan);
226 DEBUGFS_ADD(vlan_id, vlan);
227} 223}
228 224
229static void add_monitor_files(struct ieee80211_sub_if_data *sdata) 225static void add_monitor_files(struct ieee80211_sub_if_data *sdata)
@@ -317,7 +313,6 @@ static void del_vlan_files(struct ieee80211_sub_if_data *sdata)
317 DEBUGFS_DEL(drop_unencrypted, vlan); 313 DEBUGFS_DEL(drop_unencrypted, vlan);
318 DEBUGFS_DEL(eapol, vlan); 314 DEBUGFS_DEL(eapol, vlan);
319 DEBUGFS_DEL(ieee8021_x, vlan); 315 DEBUGFS_DEL(ieee8021_x, vlan);
320 DEBUGFS_DEL(vlan_id, vlan);
321} 316}
322 317
323static void del_monitor_files(struct ieee80211_sub_if_data *sdata) 318static void del_monitor_files(struct ieee80211_sub_if_data *sdata)