mt76x0: eeprom: fix VHT mcs{8,9} rate power offset
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Tue, 5 Feb 2019 14:06:34 +0000 (15:06 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 18 Feb 2019 18:54:33 +0000 (19:54 +0100)
commitb29e46b76552c2b1a76344602a0bcdc8ba8629da
tree035fd5881e6a00181ad4abca6f749b6fefe59db4
parent2bd7f3d2a93a20448e5c68eacbc925c4594640b4
mt76x0: eeprom: fix VHT mcs{8,9} rate power offset

Fix rate power configuration for VHT mcs 8 and 9 in
mt76x0_get_tx_power_per_rate. Moreover use the rate power
offset used for HT/VHT mcs 6 even for HT/VHT mcs 7

Fixes: b37bbc8c8251 ("mt76x0: remove eeprom dependency from mt76x0_set_tx_power_per_rate")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c