mac80211: fix frames looping back to a wds station
SVN-Revision: 25008
This commit is contained in:
parent
098e2d7ca1
commit
1a7a36b0a4
1 changed files with 18 additions and 0 deletions
18
package/mac80211/patches/560-mac80211_wds_sta_fix.patch
Normal file
18
package/mac80211/patches/560-mac80211_wds_sta_fix.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
--- a/net/mac80211/rx.c
|
||||
+++ b/net/mac80211/rx.c
|
||||
@@ -1561,9 +1561,13 @@ __ieee80211_data_to_8023(struct ieee8021
|
||||
sdata->vif.type == NL80211_IFTYPE_AP_VLAN && !sdata->u.vlan.sta)
|
||||
return -1;
|
||||
|
||||
+ if (!ieee80211_802_1x_port_control(rx) &&
|
||||
+ sdata->vif.type == NL80211_IFTYPE_STATION &&
|
||||
+ !!sdata->u.mgd.use_4addr != !!ieee80211_has_a4(hdr->frame_control))
|
||||
+ return -1;
|
||||
+
|
||||
if (is_multicast_ether_addr(hdr->addr1) &&
|
||||
- ((sdata->vif.type == NL80211_IFTYPE_AP_VLAN && sdata->u.vlan.sta) ||
|
||||
- (sdata->vif.type == NL80211_IFTYPE_STATION && sdata->u.mgd.use_4addr)))
|
||||
+ sdata->vif.type == NL80211_IFTYPE_AP_VLAN && sdata->u.vlan.sta)
|
||||
return -1;
|
||||
|
||||
return ieee80211_data_to_8023(rx->skb, sdata->vif.addr, sdata->vif.type);
|
Loading…
Reference in a new issue