[PATCH] mac80211: fix vlan bug
VLAN interfaces have yet another bug: they aren't accounted for properly in the receive path in prepare_for_handlers(). I noticed this by code inspection, but it would be easy for the compiler to catch such things if we'd just use the proper enum where appropriate. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
David S. Miller
parent
af1a90da39
commit
fb1c1cd6c5
@@ -243,6 +243,9 @@ void ieee80211_if_reinit(struct net_device *dev)
|
||||
ieee80211_if_sdata_deinit(sdata);
|
||||
|
||||
switch (sdata->type) {
|
||||
case IEEE80211_IF_TYPE_MGMT:
|
||||
/* nothing to do */
|
||||
break;
|
||||
case IEEE80211_IF_TYPE_AP: {
|
||||
/* Remove all virtual interfaces that use this BSS
|
||||
* as their sdata->bss */
|
||||
|
Reference in New Issue
Block a user