From: Greg Kroah-Hartman Date: Mon, 26 Nov 2018 10:41:02 +0000 (+0100) Subject: 4.19-stable patches X-Git-Tag: v3.18.127~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14aa805963a6a518037a185c7358f86c83c85323;p=thirdparty%2Fkernel%2Fstable-queue.git 4.19-stable patches added patches: mt76x0-run-vco-calibration-for-each-channel-configuration.patch --- diff --git a/queue-4.19/mt76x0-run-vco-calibration-for-each-channel-configuration.patch b/queue-4.19/mt76x0-run-vco-calibration-for-each-channel-configuration.patch new file mode 100644 index 00000000000..b3006243523 --- /dev/null +++ b/queue-4.19/mt76x0-run-vco-calibration-for-each-channel-configuration.patch @@ -0,0 +1,41 @@ +From 473f0a763d2c7cd68a6dedf51e7d81e8f58f78ac Mon Sep 17 00:00:00 2001 +From: Lorenzo Bianconi +Date: Fri, 7 Sep 2018 23:13:12 +0200 +Subject: mt76x0: run vco calibration for each channel configuration + +From: Lorenzo Bianconi + +commit 473f0a763d2c7cd68a6dedf51e7d81e8f58f78ac upstream. + +According to vendor sdk, vco calibration has to be executed +for each channel configuration whereas mcu calibration has to be +performed during channel scanning. This patch fixes the mt76x0 +monitor mode issue since in that configuration vco calibration +was never executed + +Fixes: 10de7a8b4ab9 ("mt76x0: phy files") +Tested-by: Sid Hayn +Signed-off-by: Lorenzo Bianconi +Signed-off-by: Felix Fietkau +Cc: Stanislaw Gruszka +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/net/wireless/mediatek/mt76/mt76x0/phy.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c ++++ b/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c +@@ -757,10 +757,10 @@ __mt76x0_phy_set_channel(struct mt76x0_d + /* Vendor driver don't do it */ + /* mt76x0_phy_set_tx_power(dev, channel, rf_bw_band); */ + ++ mt76x0_vco_cal(dev, channel); + if (scan) +- mt76x0_vco_cal(dev, channel); ++ mt76x0_mcu_calibrate(dev, MCU_CAL_RXDCOC, 1); + +- mt76x0_mcu_calibrate(dev, MCU_CAL_RXDCOC, 1); + mt76x0_phy_set_chan_pwr(dev, channel); + + dev->mt76.chandef = *chandef; diff --git a/queue-4.19/series b/queue-4.19/series index b3cdac811db..ca6e65b761c 100644 --- a/queue-4.19/series +++ b/queue-4.19/series @@ -115,3 +115,4 @@ hid-uhid-forbid-uhid_create-under-kernel_ds-or-elevated-privileges.patch hid-add-quirk-for-primax-pixart-oem-mice.patch hid-add-quirk-for-microsoft-pixart-oem-mouse.patch libceph-fall-back-to-sendmsg-for-slab-pages.patch +mt76x0-run-vco-calibration-for-each-channel-configuration.patch