Frames from a known station are only passed to it if they were received on the channel of its link. Frames without a matching station, such as beacons and peering frames of a new neighbour, reach every interface regardless of the channel they were received on. On a wiphy with multiple radios, a mesh interface therefore peers with mesh points on the channels of the other radios. With mac80211_hwsim (multi_radio=1), a 2.4 GHz mesh interface ends up with an established peering to the 5 GHz mesh interface of another wiphy, and no traffic gets through it. As mesh_matches_local() requires matching basic rates, this only happens if the 2.4 GHz mesh does not use the 802.11b rates. Drop these frames in ieee80211_mesh_rx_queued_mgmt() unless they were received on the channel of the mesh. No other frames are accepted from a neighbour without an established peering. A mesh interface is never an MLD, so bss_conf holds its channel. Suggested-by: Benjamin Berg --- v2: - Moved the check from __ieee80211_rx_handle_packet() to ieee80211_mesh_rx_queued_mgmt(), as only mesh needs it. rx.c is not changed any more. - Shortened the commit message, dropped the unconfirmed scan case. - v1: https://lore.kernel.org/linux-wireless/20261121012149.1506406-1-fmaurer@disroot.org/ Tested on wireless-next (e1dd848680) in qemu with mac80211_hwsim radios=3 multi_radio=1 regtest=5: mesh "test" with basic-rates 6,12,24 on 2412 and 5180 MHz on phy0 and phy1, and on 5240 MHz on phy2. Without the patch, each of the four interfaces on phy0/phy1 has two ESTAB peerings, one with each interface of the other wiphy, and unicast over the cross-band peering does not get through. With it, each has only the peer on its own channel. Link-local pings on both bands: 20/20 before and after a CSA of the 5 GHz mesh from 5180 to 5200 MHz (iw dev ... switch freq 5200 beacons 5), the peerings stay ESTAB. No lockdep or RCU splats (PROVE_LOCKING, PROVE_RCU). The problem was seen on an mt7996 board (three radios on one wiphy) running a mesh on 2.4 and 5 GHz. net/mac80211/mesh.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index e93303dce6..40a618cfd1 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -1696,6 +1696,12 @@ void ieee80211_mesh_rx_queued_mgmt(struct ieee80211_sub_if_data *sdata, return; rx_status = IEEE80211_SKB_RXCB(skb); + + /* a mesh only peers on its own channel, not via other radios */ + if (rx_status->freq != + sdata->vif.bss_conf.chanreq.oper.chan->center_freq) + return; + mgmt = (struct ieee80211_mgmt *) skb->data; stype = le16_to_cpu(mgmt->frame_control) & IEEE80211_FCTL_STYPE; base-commit: e1dd8486807c1acf9551250b7f81e116a21e6ad6 -- 2.39.5