diff options
author | Lorenzo Bianconi <lorenzo.bianconi@redhat.com> | 2019-01-27 14:15:49 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-01-31 19:56:11 +0300 |
commit | 05672636b339c557feb6a98b2f2034be790aa4fb (patch) | |
tree | ce5a1771a34e37a1505de2ba392833acb5f9b4d3 /drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.h | |
parent | 13e62626c578d9889ebbda7c521be5adff9bef8e (diff) | |
download | linux-05672636b339c557feb6a98b2f2034be790aa4fb.tar.xz |
mt76x0: eeprom: fix chan_vs_power map in mt76x0_get_power_info
Report correct eeprom per channel power value.
Fix chan_vs_power map in mt76x0_get_power_info routine
Fixes: f2a2e819d672 ("mt76x0: remove eeprom dependency from mt76x0_get_power_info")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.h')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.h b/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.h index ee9ade9f3c8b..42b259f90b6d 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.h +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.h @@ -26,7 +26,7 @@ struct mt76x02_dev; int mt76x0_eeprom_init(struct mt76x02_dev *dev); void mt76x0_read_rx_gain(struct mt76x02_dev *dev); void mt76x0_get_tx_power_per_rate(struct mt76x02_dev *dev); -void mt76x0_get_power_info(struct mt76x02_dev *dev, u8 *info); +void mt76x0_get_power_info(struct mt76x02_dev *dev, s8 *tp); static inline s8 s6_to_s8(u32 val) { |