From: Lachlan Hodges <lachlan.hodges@morsemicro.com>
To: lachlan.hodges@morsemicro.com, dan.callaghan@morsemicro.com
Cc: linux-wireless@vger.kernel.org, arien.judge@morsemicro.com
Subject: [PATCH wireless-next 8/8] wifi: mm81x: tx multicast frames from AP at primary width
Date: Thu, 27 Aug 2026 15:49:17 +1000 [thread overview]
Message-ID: <20260827054917.255584-9-lachlan.hodges@morsemicro.com> (raw)
In-Reply-To: <20260827054917.255584-1-lachlan.hodges@morsemicro.com>
If an AP has stations that are operating on a sub-primary (i.e using
the 4MHz primary of the 8MHz operating) multicast frames sent on the
operating width will be lost. Make sure we tx them on the primary width
to ensure all stations are capabile of receiving them.
Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
---
drivers/net/wireless/morsemicro/mm81x/mac.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/net/wireless/morsemicro/mm81x/mac.c b/drivers/net/wireless/morsemicro/mm81x/mac.c
index d77df6e9af85..4485748518b4 100644
--- a/drivers/net/wireless/morsemicro/mm81x/mac.c
+++ b/drivers/net/wireless/morsemicro/mm81x/mac.c
@@ -1257,6 +1257,15 @@ static int mm81x_tx_h_get_bw(struct mm81x *mors, struct ieee80211_sta *sta,
if (is_mgmt || info->control.flags & IEEE80211_TX_CTRL_PORT_CTRL_PROTO)
return cfg80211_chandef_s1g_pri_width(&mors->chandef);
+ /*
+ * In AP mode group addressed frames go out at the primary width so
+ * that every associated STA can receive them, including any that
+ * cannot support the operating width.
+ */
+ if (info->control.vif->type == NL80211_IFTYPE_AP &&
+ is_multicast_ether_addr(ieee80211_get_DA(hdr)))
+ return cfg80211_chandef_s1g_pri_width(&mors->chandef);
+
if (sta)
mors_sta = (struct mm81x_sta *)sta->drv_priv;
--
2.43.0
prev parent reply other threads:[~2026-08-27 5:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 5:49 [PATCH wireless-next 0/8] wifi: mm81x: mcast and tx bw improvements Lachlan Hodges
2026-08-27 5:49 ` [PATCH wireless-next 1/8] wifi: mm81x: move beacon work and init below the tx op Lachlan Hodges
2026-08-27 5:49 ` [PATCH wireless-next 2/8] wifi: mm81x: release buffered broadcast frames after DTIM Lachlan Hodges
2026-08-27 5:49 ` [PATCH wireless-next 3/8] wifi: mm81x: do not drop PS filtered frames in AP mode Lachlan Hodges
2026-08-27 5:49 ` [PATCH wireless-next 4/8] wifi: mm81x: implement .tx_frames_pending() mac op Lachlan Hodges
2026-08-27 5:49 ` [PATCH wireless-next 5/8] wifi: mm81x: factor out tx width selection Lachlan Hodges
2026-08-27 5:49 ` [PATCH wireless-next 6/8] wifi: mm81x: tx EAPOLs at primary width Lachlan Hodges
2026-08-27 5:49 ` [PATCH wireless-next 7/8] wifi: mm81x: clamp tx width to stas max supported width Lachlan Hodges
2026-08-27 5:49 ` Lachlan Hodges [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260827054917.255584-9-lachlan.hodges@morsemicro.com \
--to=lachlan.hodges@morsemicro.com \
--cc=arien.judge@morsemicro.com \
--cc=dan.callaghan@morsemicro.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox