#20313: mac80211 from 2015-07-21 causes DUPs
------------------------+------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Resolution: | Keywords:
------------------------+------------------------
Comment (by anonymous):
Just as reference: http://lxr.free-
electrons.com/source/net/mac80211/rx.c#L3304
This is the code which should prevent receiving of frames for other MACs.
The IFF_PROMISC flag is not checked here and thus the setup mentioned in
the ticket description should not be possible at all. The only way to
still get it to work is to manually patch the driver
{{{
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -3306,7 +3306,7 @@ static bool ieee80211_accept_frame(struct
ieee80211_rx_data *rx)
if (!ieee80211_bssid_match(bssid, sdata->u.ibss.bssid))
return false;
if (!multicast &&
- !ether_addr_equal(sdata->vif.addr, hdr->addr1))
+ 0)
return false;
if (!rx->sta) {
int rate_idx;
}}}
and to run on the trelay node in the middle
{{{
iw phy phy0 interface add mon0 type monitor
ifconfig mon0 up
}}}
I would therefore say that the test setup mentioned in the ticket
desription is not useful in reproducing the DUP problems during the
battlemesh v8.
--
Ticket URL: <https://dev.openwrt.org/ticket/20313#comment:6>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets