From: Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>
To: Vitor Soares <ivitro@gmail.com>, Jeff Johnson <jjohnson@kernel.org>
Cc: Vitor Soares <vitor.soares@toradex.com>,
linux-wireless@vger.kernel.org, ath12k@lists.infradead.org,
linux-kernel@vger.kernel.org,
Nithyanantham Paramasivam
<nithyanantham.paramasivam@oss.qualcomm.com>,
Vasanthakumar Thiagarajan
<vasanthakumar.thiagarajan@oss.qualcomm.com>,
stable@vger.kernel.org
Subject: Re: [PATCH ath-current v2] wifi: ath12k: report TX status for broadcast and multicast frames
Date: Tue, 1 Dec 2026 12:47:42 +0530 [thread overview]
Message-ID: <fa6b2873-8a2a-4ccb-9af1-f2d7241830ec@oss.qualcomm.com> (raw)
In-Reply-To: <20261126175323.2390231-2-ivitro@gmail.com>
On 11/26/2026 11:23 PM, Vitor Soares wrote:
> From: Vitor Soares <vitor.soares@toradex.com>
>
> In AP mode, once a station is associated, broadcast and multicast frames
> sent by the AP log:
>
> ath12k_wifi7_pci 0003:01:00.0: dp_tx: failed to find the peer with peer_id 2
>
> These frames complete against the AP's own peer. That peer has no
> station, and since commit 981050b918fc ("wifi: ath12k: Fix TX status
> reporting to mac80211 when offload is enabled") a missing station is
> treated as a missing peer: the frame is dropped and an error is logged.
> Before that commit, the TX status of these frames was reported without a
> station.
>
> Report the TX status without a station when the peer has none, and add
> rate information only when a station is present. Only drop the frame
> when the peer is not found.
>
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3
>
> Fixes: 981050b918fc ("wifi: ath12k: Fix TX status reporting to mac80211 when offload is enabled")
> Cc: stable@vger.kernel.org
> Signed-off-by: Vitor Soares <vitor.soares@toradex.com>
> ---
> Changes in v2:
> - Keep ath12k_err() for the peer-not-found case (Rameshkumar)
> - Link to v1: https://lore.kernel.org/all/20261116230250.369383-2-ivitro@gmail.com/
>
> This conflicts with c752394249f8 ("wifi: ath12k: store station pointer
> only in dp_peer") in ath-next; the resolution uses
> ath12k_dp_link_peer_get_sta(peer) in place of peer->sta.
> ---
> drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c | 21 +++++++++++--------
> 1 file changed, 12 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c b/drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c
> index 41abf1865702..3c2a008ba185 100644
> --- a/drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c
> +++ b/drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c
> @@ -856,7 +856,7 @@ static void ath12k_wifi7_dp_tx_complete_msdu(struct ath12k_pdev_dp *dp_pdev,
> ath12k_wifi7_dp_tx_update_txcompl(dp_pdev, ts);
>
> peer = ath12k_dp_link_peer_find_by_peerid(dp_pdev, ts->peer_id);
> - if (!peer || !peer->sta) {
> + if (!peer) {
> ath12k_err(ab,
> "dp_tx: failed to find the peer with peer_id %d\n",
> ts->peer_id);
> @@ -864,16 +864,19 @@ static void ath12k_wifi7_dp_tx_complete_msdu(struct ath12k_pdev_dp *dp_pdev,
> goto exit;
> }
>
> - status.sta = peer->sta;
> - status.info = info;
> - status.skb = msdu;
> - rate = peer->last_txrate;
> + if (peer->sta) {
> + status.sta = peer->sta;
> + rate = peer->last_txrate;
>
> - status_rate.rate_idx = rate;
> - status_rate.try_count = 1;
> + status_rate.rate_idx = rate;
> + status_rate.try_count = 1;
>
> - status.rates = &status_rate;
> - status.n_rates = 1;
> + status.rates = &status_rate;
> + status.n_rates = 1;
> + }
> +
> + status.info = info;
> + status.skb = msdu;
> ieee80211_tx_status_ext(ath12k_pdev_dp_to_hw(dp_pdev), &status);
>
> exit:
Reviewed-by: Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>
prev parent reply other threads:[~2026-12-01 7:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 17:53 Vitor Soares
2026-12-01 7:17 ` Rameshkumar Sundaram [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=fa6b2873-8a2a-4ccb-9af1-f2d7241830ec@oss.qualcomm.com \
--to=rameshkumar.sundaram@oss.qualcomm.com \
--cc=ath12k@lists.infradead.org \
--cc=ivitro@gmail.com \
--cc=jjohnson@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=nithyanantham.paramasivam@oss.qualcomm.com \
--cc=stable@vger.kernel.org \
--cc=vasanthakumar.thiagarajan@oss.qualcomm.com \
--cc=vitor.soares@toradex.com \
/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
all inboxes | Powered by JetHome®