mt76: mt7915: fix endiannes warning mt7915_mcu_beacon_check_caps
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 20 Oct 2021 23:09:32 +0000 (01:09 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 23 Oct 2021 11:23:44 +0000 (13:23 +0200)
commit2be10a9744956673b0ddbf89976e32c75eeb2992
treecac206bbafeb26baf46ac3cf196e5962e3ab0572
parent9a93364d6595358a11d07e7f4261ae263ae2a02a
mt76: mt7915: fix endiannes warning mt7915_mcu_beacon_check_caps

Fix the following sparse warning mt7915_mcu_beacon_check_caps routine:
warning: cast to restricted __le32
warning: cast from restricted __le16

Fixes: 22dffbddf0167 ("mt76: mt7915: introduce mt7915_mcu_beacon_check_caps()")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c