aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-11-03 09:41:13 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-11-09 16:01:02 -0500
commit7b7eab6fc1bc8852d9649541b59283cd89cc526f (patch)
tree7b071ee01187bc3ee843c86b88189cc4eab73cf1 /net/mac80211/util.c
parent6e3e939f3b1bf8534b32ad09ff199d88800835a0 (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/util.c')
-rw-r--r--net/mac80211/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 83c482177ecb..98ca5479324b 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1006,7 +1006,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
1006 if (sdata->vif.type != NL80211_IFTYPE_AP_VLAN && 1006 if (sdata->vif.type != NL80211_IFTYPE_AP_VLAN &&
1007 sdata->vif.type != NL80211_IFTYPE_MONITOR && 1007 sdata->vif.type != NL80211_IFTYPE_MONITOR &&
1008 ieee80211_sdata_running(sdata)) 1008 ieee80211_sdata_running(sdata))
1009 res = drv_add_interface(local, &sdata->vif); 1009 res = drv_add_interface(local, sdata);
1010 } 1010 }
1011 1011
1012 /* add STAs back */ 1012 /* add STAs back */