OSDN Git Service

mt76: mt76x02: fix endianness warnings in mt76x02_mac.c
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 22 Jun 2021 07:48:30 +0000 (09:48 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Oct 2021 08:36:25 +0000 (10:36 +0200)
commitc33edef520213feccebc22c9474c685b9fb60611
tree9abf1588aa635c6dd65d342a97804660bf1f1242
parent64ed76d118c656907ec1155f2cdd24de778470a2
mt76: mt76x02: fix endianness warnings in mt76x02_mac.c

Fix the following sparse warning in mt76x02_mac_write_txwi and
mt76x02_mac_tx_rate_val routines:
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c:237:19:
warning: restricted __le16 degrades to intege
warning: cast from restricted __le16
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c:383:28:
warning: incorrect type in assignment (different base types)
expected restricted __le16 [usertype] rate
got unsigned long

Fixes: db9f11d3433f7 ("mt76: store wcid tx rate info in one u32 reduce locking")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c