diff options
author | Felix Fietkau <nbd@nbd.name> | 2020-03-30 15:02:45 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-05-12 19:52:30 +0200 |
commit | ad380ad1ebbe6a9a243150fef1123670164ae278 (patch) | |
tree | c9f50c5e7182d9875429d45daa43830aaa797a90 /drivers/net/wireless/mediatek/mt76/mt7615/main.c | |
parent | mt76: mt7615: disable merge of OTP ROM data by default (diff) | |
download | linux-ad380ad1ebbe6a9a243150fef1123670164ae278.tar.xz linux-ad380ad1ebbe6a9a243150fef1123670164ae278.zip |
mt76: mt7615: add support for applying DC offset calibration from EEPROM
When the EEPROM data is read from flash, it can contain DC offset calibration
data. Add support for sending the data to the firmware.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7615/main.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7615/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/main.c b/drivers/net/wireless/mediatek/mt76/mt7615/main.c index 3e0d26183905..ef8e9336f627 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/main.c @@ -253,6 +253,9 @@ static int mt7615_set_channel(struct mt7615_phy *phy) mt7615_init_dfs_state(phy); mt76_set_channel(phy->mt76); + if (is_mt7615(&dev->mt76) && dev->flash_eeprom) + mt7615_mcu_apply_rx_dcoc(phy); + ret = mt7615_mcu_set_chan_info(phy, MCU_EXT_CMD_CHANNEL_SWITCH); if (ret) goto out; |