Commit 736a80bb authored by Johannes Berg's avatar Johannes Berg

mac80211: mesh: drop frames appearing to be from us

If there are multiple mesh stations with the same MAC address,
they will both get confused and start throwing warnings.

Obviously in this case nothing can actually work anyway, so just
drop frames that look like they're from ourselves early on.
Reported-by: default avatarGui Iribarren <gui@altermundi.net>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 3ea15452
...@@ -3632,6 +3632,8 @@ static bool ieee80211_accept_frame(struct ieee80211_rx_data *rx) ...@@ -3632,6 +3632,8 @@ static bool ieee80211_accept_frame(struct ieee80211_rx_data *rx)
} }
return true; return true;
case NL80211_IFTYPE_MESH_POINT: case NL80211_IFTYPE_MESH_POINT:
if (ether_addr_equal(sdata->vif.addr, hdr->addr2))
return false;
if (multicast) if (multicast)
return true; return true;
return ether_addr_equal(sdata->vif.addr, hdr->addr1); return ether_addr_equal(sdata->vif.addr, hdr->addr1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment