All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] wifi: mt76: mt7996: fix endianness of MT_TXD6_TX_RATE
@ 2023-04-23 21:39 Ryder Lee
  2023-04-23 21:39 ` [PATCH 2/2] wifi: mt76: connac: fix stats->tx_bytes calculation Ryder Lee
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Ryder Lee @ 2023-04-23 21:39 UTC (permalink / raw)
  To: Felix Fietkau, linux-wireless
  Cc: Lorenzo Bianconi, Shayne Chen, Evelyn Tsai, linux-mediatek,
	Ryder Lee

To avoid sparse warning:
sparse: warning: invalid assignment: |=
sparse:    left side has type restricted __le32
sparse:    right side has type unsigned lon

Fixes: 15ee62e73705 ("wifi: mt76: mt7996: enable BSS_CHANGED_BASIC_RATES support")
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
---
 drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/mac.c b/drivers/net/wireless/mediatek/mt76/mt7996/mac.c
index 130eb7b4fd91..39a4a73ef8e6 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7996/mac.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7996/mac.c
@@ -1088,7 +1088,7 @@ void mt7996_mac_write_txwi(struct mt7996_dev *dev, __le32 *txwi,
 		else if (beacon && mvif->beacon_rates_idx)
 			idx = mvif->beacon_rates_idx;
 
-		txwi[6] |= FIELD_PREP(MT_TXD6_TX_RATE, idx);
+		txwi[6] |= cpu_to_le32(FIELD_PREP(MT_TXD6_TX_RATE, idx));
 		txwi[3] |= cpu_to_le32(MT_TXD3_BA_DISABLE);
 	}
 }
-- 
2.18.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-05-12  8:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-23 21:39 [PATCH 1/2] wifi: mt76: mt7996: fix endianness of MT_TXD6_TX_RATE Ryder Lee
2023-04-23 21:39 ` [PATCH 2/2] wifi: mt76: connac: fix stats->tx_bytes calculation Ryder Lee
2023-05-12  8:19   ` Kalle Valo
2023-04-28  5:03 ` [PATCH 1/2] wifi: mt76: mt7996: fix endianness of MT_TXD6_TX_RATE Kalle Valo
2023-05-06  7:13   ` Ryder Lee
2023-04-28  8:56 ` Johannes Berg
2023-05-12  8:21 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.