diff options
author | Lorenzo Bianconi <lorenzo.bianconi@redhat.com> | 2019-01-28 10:31:12 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-02-18 19:54:34 +0100 |
commit | 0bee1ff6922d2ba704b41911423d3d7b7322956f (patch) | |
tree | 156506c76a2bba9a2589eadc6c22bd21ae3a7286 /drivers/net/wireless/mediatek/mt76/mt76x0 | |
parent | mt76: change the return type of mt76_dma_attach() (diff) | |
download | linux-0bee1ff6922d2ba704b41911423d3d7b7322956f.tar.xz linux-0bee1ff6922d2ba704b41911423d3d7b7322956f.zip |
mt76x0: phy: report target_power in debugfs
Initialize target_power variable in mt76x0_phy_set_txpower in order to
report target_power in debugfs
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x0')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x0/phy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c b/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c index cb70b04d38a5..3dfcad552be0 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c @@ -855,6 +855,7 @@ void mt76x0_phy_set_txpower(struct mt76x02_dev *dev) dev->mt76.txpower_cur = mt76x02_get_max_rate_power(t); mt76x02_add_rate_power_offset(t, -info); + dev->target_power = info; mt76x02_phy_set_txpower(dev, info, info); } |