All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] mt76: add driver callback for when a sta is associated
@ 2019-01-30 14:07 Felix Fietkau
  2019-01-30 14:07   ` Felix Fietkau
  2019-01-30 14:07 ` [PATCH 3/3] mt76: add driver for MT7603E and MT7628/7688 Felix Fietkau
  0 siblings, 2 replies; 8+ messages in thread
From: Felix Fietkau @ 2019-01-30 14:07 UTC (permalink / raw)
  To: linux-wireless

MT7603 needs this to update the HT/VHT capabilities

Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 drivers/net/wireless/mediatek/mt76/mac80211.c | 5 +++++
 drivers/net/wireless/mediatek/mt76/mt76.h     | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/drivers/net/wireless/mediatek/mt76/mac80211.c b/drivers/net/wireless/mediatek/mt76/mac80211.c
index ee3b65a14870..489953a47646 100644
--- a/drivers/net/wireless/mediatek/mt76/mac80211.c
+++ b/drivers/net/wireless/mediatek/mt76/mac80211.c
@@ -709,6 +709,11 @@ int mt76_sta_state(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
 	    new_state == IEEE80211_STA_NONE)
 		return mt76_sta_add(dev, vif, sta);
 
+	if (old_state == IEEE80211_STA_AUTH &&
+	    new_state == IEEE80211_STA_ASSOC &&
+	    dev->drv->sta_assoc)
+		dev->drv->sta_assoc(dev, vif, sta);
+
 	if (old_state == IEEE80211_STA_NONE &&
 		 new_state == IEEE80211_STA_NOTEXIST)
 		mt76_sta_remove(dev, vif, sta);
diff --git a/drivers/net/wireless/mediatek/mt76/mt76.h b/drivers/net/wireless/mediatek/mt76/mt76.h
index 2bb9db4ed80a..71708b111120 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76.h
+++ b/drivers/net/wireless/mediatek/mt76/mt76.h
@@ -300,6 +300,9 @@ struct mt76_driver_ops {
 	int (*sta_add)(struct mt76_dev *dev, struct ieee80211_vif *vif,
 		       struct ieee80211_sta *sta);
 
+	void (*sta_assoc)(struct mt76_dev *dev, struct ieee80211_vif *vif,
+			  struct ieee80211_sta *sta);
+
 	void (*sta_remove)(struct mt76_dev *dev, struct ieee80211_vif *vif,
 			   struct ieee80211_sta *sta);
 };
-- 
2.17.0


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

end of thread, other threads:[~2019-02-25 16:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-30 14:07 [PATCH 1/3] mt76: add driver callback for when a sta is associated Felix Fietkau
2019-01-30 14:07 ` [PATCH 2/3] dt-bindings: net: mt76: update binding for mt7603 driver Felix Fietkau
2019-01-30 14:07   ` Felix Fietkau
2019-02-25 16:33   ` Rob Herring
2019-02-25 16:33     ` Rob Herring
2019-01-30 14:07 ` [PATCH 3/3] mt76: add driver for MT7603E and MT7628/7688 Felix Fietkau
2019-01-30 15:14   ` Lorenzo Bianconi
2019-01-31 11:20   ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.