diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-08 16:55:15 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-08 16:55:15 +0000 |
commit | 6c0284641d4c5616063664b4620468d0a8bf7aa6 (patch) | |
tree | 9e977c164391cc58beb3b4c181c2e3ee153e2e98 /package/mac80211/patches/570-4addr_vlan_check.patch | |
parent | 5784ed61cc882c67ca413f2553c4e2bb14e652f1 (diff) |
mac80211: various wds related fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19076 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/570-4addr_vlan_check.patch')
-rw-r--r-- | package/mac80211/patches/570-4addr_vlan_check.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/package/mac80211/patches/570-4addr_vlan_check.patch b/package/mac80211/patches/570-4addr_vlan_check.patch new file mode 100644 index 000000000..7079957ee --- /dev/null +++ b/package/mac80211/patches/570-4addr_vlan_check.patch @@ -0,0 +1,15 @@ +--- a/net/mac80211/tx.c ++++ b/net/mac80211/tx.c +@@ -1051,8 +1051,11 @@ ieee80211_tx_prepare(struct ieee80211_su + + hdr = (struct ieee80211_hdr *) skb->data; + +- if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN) ++ if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN) { + tx->sta = rcu_dereference(sdata->u.vlan.sta); ++ if (!tx->sta && sdata->dev->ieee80211_ptr->use_4addr) ++ return TX_DROP; ++ } + if (!tx->sta) + tx->sta = sta_info_get(sdata, hdr->addr1); + |