mac80211: verify virtual interfaces in driver API
authorJohannes Berg <johannes.berg@intel.com>
Thu, 3 Nov 2011 13:41:13 +0000 (14:41 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Nov 2011 21:01:02 +0000 (16:01 -0500)
commit7b7eab6fc1bc8852d9649541b59283cd89cc526f
tree7b071ee01187bc3ee843c86b88189cc4eab73cf1
parent6e3e939f3b1bf8534b32ad09ff199d88800835a0
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>
net/mac80211/driver-ops.h
net/mac80211/ieee80211_i.h
net/mac80211/iface.c
net/mac80211/pm.c
net/mac80211/util.c