wifi: mt76: mt7996: fix fortify warning
authorFelix Fietkau <nbd@nbd.name>
Sat, 3 Feb 2024 13:24:46 +0000 (14:24 +0100)
committerKalle Valo <kvalo@kernel.org>
Mon, 5 Feb 2024 18:00:45 +0000 (20:00 +0200)
commit0647903efbc84b772325b4d24d9487e24d6d1e03
tree4deb3764e9d0d98ce065727279f3f3f4a256fd93
parent5bdda0048c8d1bbe2019513b2d6200cc0d09c7bd
wifi: mt76: mt7996: fix fortify warning

Copy cck and ofdm separately in order to avoid __read_overflow2_field
warning.

Fixes: f75e4779d215 ("wifi: mt76: mt7996: add txpower setting support")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240203132446.54790-1-nbd@nbd.name
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c