Linux-mediatek Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] wifi: mt76: mt7928: fix uninitialized rate_info for CCK/OFDM tx status
@ 2026-11-26  8:37 Eason Lai
  0 siblings, 0 replies; only message in thread
From: Eason Lai @ 2026-11-26  8:37 UTC (permalink / raw)
  To: nbd, lorenzo
  Cc: linux-wireless, linux-mediatek, kun.wu, deren.wu, sean.wang,
	quan.zhou, ryder.lee, leon.yen, litien.chang, jb.tsai, eason.lai

The data rate variable is not initialized to zero, which can lead to
reporting garbage/incorrect data rates to cfg80211 when handling
CCK or OFDM rates.

Fixes: 5e738c59e028 ("wifi: mt76: mt7925: add MT7928 TXD/TXS/TX_DONE support")
Signed-off-by: Eason Lai <eason.lai@mediatek.com>
---
 drivers/net/wireless/mediatek/mt76/mt7925/mac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mediatek/mt76/mt7925/mac.c b/drivers/net/wireless/mediatek/mt76/mt7925/mac.c
index 1adec01f6832..afddeecc3002 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7925/mac.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7925/mac.c
@@ -1137,9 +1137,9 @@ mt7928_mac_add_txs_skb_msg(struct mt792x_dev *dev, struct mt76_wcid *wcid,
 	struct ieee80211_supported_band *sband;
 	struct mt76_dev *mdev = &dev->mt76;
 	struct ieee80211_tx_info *info;
+	struct rate_info rate = {};
 	struct sk_buff_head list;
 	u32 txrate, mode, stbc;
-	struct rate_info rate;
 	struct mt76_phy *mphy;
 	struct sk_buff *skb;
 	bool cck = false;
-- 
2.45.2



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-26  8:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26  8:37 [PATCH v1] wifi: mt76: mt7928: fix uninitialized rate_info for CCK/OFDM tx status Eason Lai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox