Lorenzo BianconiandFelix Fietkau eeb6949c4d wifi: mt76: mt76x0: fix oob access in mt76x0_phy_get_target_power
After 'commit ba45841ca5eb ("wifi: mt76: mt76x02: simplify struct
mt76x02_rate_power")', mt76x02 relies on ht[0-7] rate_power data for
vht mcs{0,7}, while it uses vth[0-1] rate_power for vht mcs {8,9}.
Fix a possible out-of-bound access in mt76x0_phy_get_target_power routine.

Fixes: ba45841ca5eb ("wifi: mt76: mt76x02: simplify struct mt76x02_rate_power")
Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
2022-12-10 13:11:05 +01:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2021-04-14 09:12:11 +02:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2021-04-17 11:19:58 +02:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2020-06-16 22:05:14 +02:00
2022-12-10 13:11:04 +01:00
2019-08-22 09:26:30 +02:00
2022-12-10 13:11:04 +01:00
S
Description
mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
BSD-3-Clause
105 MiB
Languages
C 99.7%
Perl 0.2%
Makefile 0.1%