wifi: mt76: mt7996: fix integer handling issue of mt7996_rf_regval_set()
authorRyder Lee <ryder.lee@mediatek.com>
Sat, 3 Dec 2022 03:22:25 +0000 (11:22 +0800)
committerFelix Fietkau <nbd@nbd.name>
Fri, 9 Dec 2022 15:45:38 +0000 (16:45 +0100)
commitaab169ad3a7aa8678aed90d7fdbc243e3d4b32a6
treefc4601f59f432b5ab0aaef8b7214121e0d9848b7
parentf37c6e5c75029443bc72c45acf92b2f2de2945be
wifi: mt76: mt7996: fix integer handling issue of mt7996_rf_regval_set()

This code is supposed to set a u32 value, but casting will not work on
big endian systems.

Reported-by: coverity-bot <keescook+coverity-bot@chromium.org>
Addresses-Coverity-ID: 1527816 ("Integer handling issues")
Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices")
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c