diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-11-03 09:41:13 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-09 16:01:02 -0500 |
commit | 7b7eab6fc1bc8852d9649541b59283cd89cc526f (patch) | |
tree | 7b071ee01187bc3ee843c86b88189cc4eab73cf1 /net/mac80211/ieee80211_i.h | |
parent | 6e3e939f3b1bf8534b32ad09ff199d88800835a0 (diff) |
mac80211: verify virtual interfaces in driver API
The driver is never informed about monitor or
AP_VLAN interfaces, so whenever we pass those
to it later this is a bug. Verify we don't as
there are some cases where this could happen.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index e2447096c94a..386330c89baf 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -543,6 +543,7 @@ struct ieee80211_if_mesh { | |||
543 | * associated stations and deliver multicast frames both | 543 | * associated stations and deliver multicast frames both |
544 | * back to wireless media and to the local net stack. | 544 | * back to wireless media and to the local net stack. |
545 | * @IEEE80211_SDATA_DISCONNECT_RESUME: Disconnect after resume. | 545 | * @IEEE80211_SDATA_DISCONNECT_RESUME: Disconnect after resume. |
546 | * @IEEE80211_SDATA_IN_DRIVER: indicates interface was added to driver | ||
546 | */ | 547 | */ |
547 | enum ieee80211_sub_if_data_flags { | 548 | enum ieee80211_sub_if_data_flags { |
548 | IEEE80211_SDATA_ALLMULTI = BIT(0), | 549 | IEEE80211_SDATA_ALLMULTI = BIT(0), |
@@ -550,6 +551,7 @@ enum ieee80211_sub_if_data_flags { | |||
550 | IEEE80211_SDATA_OPERATING_GMODE = BIT(2), | 551 | IEEE80211_SDATA_OPERATING_GMODE = BIT(2), |
551 | IEEE80211_SDATA_DONT_BRIDGE_PACKETS = BIT(3), | 552 | IEEE80211_SDATA_DONT_BRIDGE_PACKETS = BIT(3), |
552 | IEEE80211_SDATA_DISCONNECT_RESUME = BIT(4), | 553 | IEEE80211_SDATA_DISCONNECT_RESUME = BIT(4), |
554 | IEEE80211_SDATA_IN_DRIVER = BIT(5), | ||
553 | }; | 555 | }; |
554 | 556 | ||
555 | /** | 557 | /** |