aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/net/mac80211.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 855754d4c50d..494a4c022a9b 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -442,16 +442,17 @@ struct ieee80211_conf {
442 * @IEEE80211_IF_TYPE_IBSS: interface in IBSS (ad-hoc) mode. 442 * @IEEE80211_IF_TYPE_IBSS: interface in IBSS (ad-hoc) mode.
443 * @IEEE80211_IF_TYPE_MNTR: interface in monitor (rfmon) mode. 443 * @IEEE80211_IF_TYPE_MNTR: interface in monitor (rfmon) mode.
444 * @IEEE80211_IF_TYPE_WDS: interface in WDS mode. 444 * @IEEE80211_IF_TYPE_WDS: interface in WDS mode.
445 * @IEEE80211_IF_TYPE_VLAN: not used. 445 * @IEEE80211_IF_TYPE_VLAN: VLAN interface bound to an AP, drivers
446 * will never see this type.
446 */ 447 */
447enum ieee80211_if_types { 448enum ieee80211_if_types {
448 IEEE80211_IF_TYPE_AP = 0x00000000, 449 IEEE80211_IF_TYPE_AP,
449 IEEE80211_IF_TYPE_MGMT = 0x00000001, 450 IEEE80211_IF_TYPE_MGMT,
450 IEEE80211_IF_TYPE_STA = 0x00000002, 451 IEEE80211_IF_TYPE_STA,
451 IEEE80211_IF_TYPE_IBSS = 0x00000003, 452 IEEE80211_IF_TYPE_IBSS,
452 IEEE80211_IF_TYPE_MNTR = 0x00000004, 453 IEEE80211_IF_TYPE_MNTR,
453 IEEE80211_IF_TYPE_WDS = 0x5A580211, 454 IEEE80211_IF_TYPE_WDS,
454 IEEE80211_IF_TYPE_VLAN = 0x00080211, 455 IEEE80211_IF_TYPE_VLAN,
455}; 456};
456 457
457/** 458/**