[PATCH ath-current v2 1/2] wifi: ath10k: free msdu_id when HL TX fails

From: Changyul Lee

Date: Wed Nov 18 2026 - 19:29:12 EST


Free the msdu_id if ath10k_htc_send_hl() fails. Repeated failures can
otherwise exhaust the IDs and block further data transmissions.

Fixes: 8ea51e409eb0 ("ath10k: htt: support MSDU ids with SDIO")
Signed-off-by: Changyul Lee <lcy8047@xxxxxxxxx>
---
drivers/net/wireless/ath/ath10k/htt_tx.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c b/drivers/net/wireless/ath/ath10k/htt_tx.c
index efaea150025b..298e6a092101 100644
--- a/drivers/net/wireless/ath/ath10k/htt_tx.c
+++ b/drivers/net/wireless/ath/ath10k/htt_tx.c
@@ -1378,6 +1378,11 @@ static int ath10k_htt_tx_hl(struct ath10k_htt *htt, enum ath10k_hw_txrx_mode txm
tx_desc->peerid = __cpu_to_le32(HTT_INVALID_PEERID);

res = ath10k_htc_send_hl(&htt->ar->htc, htt->eid, msdu);
+ if (res && ar->bus_param.hl_msdu_ids) {
+ spin_lock_bh(&htt->tx_lock);
+ ath10k_htt_tx_free_msdu_id(htt, msdu_id);
+ spin_unlock_bh(&htt->tx_lock);
+ }

out:
return res;
--
2.43.0