diff mbox series

wifi: mt76: mt7996: fix endianness in mt7996_mcu_wed_rro_event

Message ID 21ad5fbd15a8fd76285b0200be36c991a0fcfb13.1700240565.git.lorenzo@kernel.org
State New
Headers show
Series wifi: mt76: mt7996: fix endianness in mt7996_mcu_wed_rro_event | expand

Commit Message

Lorenzo Bianconi Nov. 17, 2023, 5:03 p.m. UTC
Fix tag endianness in mt7996_mcu_wed_rro_event routine

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
 drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
index 61de5e041627..03a9474120b7 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
@@ -536,7 +536,7 @@  mt7996_mcu_wed_rro_event(struct mt7996_dev *dev, struct sk_buff *skb)
 
 	skb_pull(skb, sizeof(struct mt7996_mcu_rxd) + 4);
 
-	switch (event->tag) {
+	switch (le16_to_cpu(event->tag)) {
 	case UNI_WED_RRO_BA_SESSION_STATUS: {
 		struct mt7996_mcu_wed_rro_ba_event *e;