Skip to contentSkip to conversation

mt76x0: phy: unify calibration between mt76x0u and mt76x0e

PATCH Applied Lorenzo Bianconi 3 participants 3 messages Oct 15, 2018 – Oct 16, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw

PATCH 1/1 mt76x0: phy: unify calibration between mt76x0u and mt76x0e

In reply to a message not in the archive

Align phy calibration logic between mt76x0u and mt76x0e drivers This patch improves connection stability with low SNR

---
 .../net/wireless/mediatek/mt76/mt76x0/main.c  |  3 -
 .../wireless/mediatek/mt76/mt76x0/mt76x0.h    |  1 -
 .../net/wireless/mediatek/mt76/mt76x0/phy.c   | 83 +------------------
 .../net/wireless/mediatek/mt76/mt76x0/usb.c   |  1 +
 4 files changed, 4 insertions(+), 84 deletions(-)
drivers/net/wireless/mediatek/mt76/mt76x0/main.c +0 -3
index e9fbbabbe7e0..fdffbdf90e59 100644
@@ -121,9 +121,6 @@ void mt76x0_bss_info_changed(struct ieee80211_hw *hw,
 			       MT_BKOFF_SLOT_CFG_SLOTTIME, slottime);
 	}
 
-	if (changed & BSS_CHANGED_ASSOC)
-		mt76x0_phy_recalibrate_after_assoc(dev);
-
 	mutex_unlock(&dev->mt76.mutex);
 }
 EXPORT_SYMBOL_GPL(mt76x0_bss_info_changed);
drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h +0 -1
index 85de821483cd..17ad3fa0858b 100644
@@ -64,7 +64,6 @@ void mt76x0_phy_init(struct mt76x02_dev *dev);
 int mt76x0_phy_wait_bbp_ready(struct mt76x02_dev *dev);
 int mt76x0_phy_set_channel(struct mt76x02_dev *dev,
 			    struct cfg80211_chan_def *chandef);
-void mt76x0_phy_recalibrate_after_assoc(struct mt76x02_dev *dev);
 void mt76x0_phy_set_txpower(struct mt76x02_dev *dev);
 void mt76x0_phy_calibrate(struct mt76x02_dev *dev, bool power_on);
 
drivers/net/wireless/mediatek/mt76/mt76x0/phy.c +3 -80

104 lines not on this page · raw message

drivers/net/wireless/mediatek/mt76/mt76x0/usb.c +1 -0
index a7fd36c2f633..ea517864186b 100644
@@ -117,6 +117,7 @@ static int mt76x0u_start(struct ieee80211_hw *hw)
 	if (ret)
 		goto out;
 
+	mt76x0_phy_calibrate(dev, true);
 	ieee80211_queue_delayed_work(dev->mt76.hw, &dev->mac_work,
 				     MT_CALIBRATE_INTERVAL);
 	ieee80211_queue_delayed_work(dev->mt76.hw, &dev->cal_work,
Signature · 1 line
2.17.2