public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/13] wifi: mt76: mt7915: initialize rssi on adding stations
@ 2024-04-03 10:30 Felix Fietkau
  2024-04-03 10:30 ` [PATCH 02/13] wifi: mt76: replace skb_put with skb_put_zero Felix Fietkau
                   ` (11 more replies)
  0 siblings, 12 replies; 16+ messages in thread
From: Felix Fietkau @ 2024-04-03 10:30 UTC (permalink / raw)
  To: linux-wireless

Improves initial rate selection after connecting

Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 drivers/net/wireless/mediatek/mt76/mt7915/main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/main.c b/drivers/net/wireless/mediatek/mt76/mt7915/main.c
index 3709d18da0e6..49d5b459fb44 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/main.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/main.c
@@ -744,6 +744,7 @@ int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
 	struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv;
 	bool ext_phy = mvif->phy != &dev->phy;
 	int ret, idx;
+	u32 addr;
 
 	idx = mt76_wcid_alloc(dev->mt76.wcid_mask, MT7915_WTBL_STA);
 	if (idx < 0)
@@ -767,6 +768,9 @@ int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
 	if (ret)
 		return ret;
 
+	addr = mt7915_mac_wtbl_lmac_addr(dev, msta->wcid.idx, 30);
+	mt76_rmw_field(dev, addr, GENMASK(7, 0), 0xa0);
+
 	return mt7915_mcu_add_rate_ctrl(dev, vif, sta, false);
 }
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-04-03 20:03 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-03 10:30 [PATCH 01/13] wifi: mt76: mt7915: initialize rssi on adding stations Felix Fietkau
2024-04-03 10:30 ` [PATCH 02/13] wifi: mt76: replace skb_put with skb_put_zero Felix Fietkau
2024-04-03 10:30 ` [PATCH 03/13] wifi: mt76: fix tx packet loss when scanning on DBDC Felix Fietkau
2024-04-03 10:30 ` [PATCH 04/13] wifi: mt76: mt7915: fix mcu command format for mt7915 tx stats Felix Fietkau
2024-04-03 10:30 ` [PATCH 05/13] wifi: mt76: mt7915: fix bogus Tx/Rx airtime duration values Felix Fietkau
2024-04-03 10:30 ` [PATCH 06/13] wifi: mt76: mt7915: fix HE PHY capabilities IE for station mode Felix Fietkau
2024-04-03 10:30 ` [PATCH 07/13] wifi: mt76: mt7915: only set MT76_MCU_RESET for the main phy Felix Fietkau
2024-04-03 10:30 ` [PATCH 08/13] wifi: mt76: mt7996: " Felix Fietkau
2024-04-03 10:30 ` [PATCH 09/13] wifi: mt76: mt7915: add support for disabling in-band discovery Felix Fietkau
2024-04-03 10:30 ` [PATCH 10/13] wifi: mt76: mt7915: add mt7986, mt7916 and mt7981 pre-calibration Felix Fietkau
2024-04-03 12:55   ` Ping-Ke Shih
2024-04-03 10:30 ` [PATCH 11/13] wifi: mt76: mt7915: add fallback in case of missing precal data Felix Fietkau
2024-04-03 19:51   ` Jeff Johnson
2024-04-03 20:03     ` Jeff Johnson
2024-04-03 10:30 ` [PATCH 12/13] wifi: mt76: mt7603: fix tx queue of loopback packets Felix Fietkau
2024-04-03 10:30 ` [PATCH 13/13] wifi: mt76: mt7603: add wpdma tx eof flag for PSE client reset Felix Fietkau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox