linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo@kernel.org>
To: Felix Fietkau <nbd@nbd.name>, Ryder Lee <ryder.lee@mediatek.com>,
	 Shayne Chen <shayne.chen@mediatek.com>,
	Sean Wang <sean.wang@mediatek.com>,
	 Kalle Valo <kvalo@kernel.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	 AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>,
	 Lorenzo Bianconi <lorenzo@kernel.org>,
	 Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	 linux-mediatek@lists.infradead.org
Subject: [PATCH v2 05/13] wifi: mt76: mt7996: Add link_info_changed callback
Date: Tue, 11 Mar 2025 18:45:04 +0100	[thread overview]
Message-ID: <20250311-mt7996-mlo-v2-5-31df6972519b@kernel.org> (raw)
In-Reply-To: <20250311-mt7996-mlo-v2-0-31df6972519b@kernel.org>

Convert bss_info_changed mac80211 callback in link_info_changed one.
This is a preliminary patch to enable MLO support in MT7996 driver.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
 drivers/net/wireless/mediatek/mt76/mt7996/main.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/main.c b/drivers/net/wireless/mediatek/mt76/mt7996/main.c
index 59a1e5e52450accc5b01fbe0c3af7e84bcc87df6..81a13662db24ec268fdd7a9b3d6b1d829a91430f 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7996/main.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7996/main.c
@@ -712,10 +712,9 @@ mt7996_vif_cfg_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
 	mutex_unlock(&dev->mt76.mutex);
 }
 
-static void mt7996_bss_info_changed(struct ieee80211_hw *hw,
-				    struct ieee80211_vif *vif,
-				    struct ieee80211_bss_conf *info,
-				    u64 changed)
+static void
+mt7996_link_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
+			 struct ieee80211_bss_conf *info, u64 changed)
 {
 	struct mt7996_dev *dev = mt7996_hw_dev(hw);
 	struct mt76_vif_link *mvif;
@@ -1719,8 +1718,8 @@ const struct ieee80211_ops mt7996_ops = {
 	.config = mt7996_config,
 	.conf_tx = mt7996_conf_tx,
 	.configure_filter = mt7996_configure_filter,
-	.bss_info_changed = mt7996_bss_info_changed,
 	.vif_cfg_changed = mt7996_vif_cfg_changed,
+	.link_info_changed = mt7996_link_info_changed,
 	.sta_state = mt76_sta_state,
 	.sta_pre_rcu_remove = mt76_sta_pre_rcu_remove,
 	.link_sta_rc_update = mt7996_sta_rc_update,

-- 
2.48.1



  parent reply	other threads:[~2025-03-11 17:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-11 17:44 [PATCH v2 00/13] wifi: mt76: mt7996: Preliminary work to support MLO Lorenzo Bianconi
2025-03-11 17:45 ` [PATCH v2 01/13] wifi: mt76: mt7996: Add chage_vif_links stub Lorenzo Bianconi
2025-03-11 17:45 ` [PATCH v2 02/13] wifi: mt76: mt7996: Introduce mt7996_sta_link container Lorenzo Bianconi
2025-03-11 17:45 ` [PATCH v2 03/13] wifi: mt76: mt7996: Add mt7996_sta_link struct in mt7996_vif_link Lorenzo Bianconi
2025-03-11 17:45 ` [PATCH v2 04/13] wifi: mt76: mt7996: Add vif_cfg_changed callback Lorenzo Bianconi
2025-03-11 17:45 ` Lorenzo Bianconi [this message]
2025-03-11 17:45 ` [PATCH v2 06/13] wifi: mt76: mt7996: Add mt7996_sta_state routine Lorenzo Bianconi
2025-03-11 17:45 ` [PATCH v2 07/13] wifi: mt76: mt7996: Rely on mt7996_sta_link in sta_add/sta_remove callbacks Lorenzo Bianconi
2025-03-11 17:45 ` [PATCH v2 08/13] wifi: mt76: mt7996: Add mt7996_mac_sta_change_links callback Lorenzo Bianconi
2025-03-11 17:45 ` [PATCH v2 09/13] wifi: mt76: mt7996: Support MLO in mt7996_mac_sta_event() Lorenzo Bianconi
2025-03-11 17:45 ` [PATCH v2 10/13] wifi: mt76: Check link_conf pointer in mt76_connac_mcu_sta_basic_tlv() Lorenzo Bianconi
2025-03-11 17:45 ` [PATCH v2 11/13] wifi: mt76: mt7996: Update mt7996_mcu_add_sta to MLO support Lorenzo Bianconi
2025-03-11 17:45 ` [PATCH v2 12/13] wifi: mt76: mt7996: Rely on mt7996_vif_link in mt7996_mcu_twt_agrt_update signature Lorenzo Bianconi
2025-03-11 17:45 ` [PATCH v2 13/13] wifi: mt76: mt7996: Rely on mt7996_vif_link and mt7996_sta_link in mt7996_mac_twt_teardown_flow signature Lorenzo Bianconi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250311-mt7996-mlo-v2-5-31df6972519b@kernel.org \
    --to=lorenzo@kernel.org \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=johannes@sipsolutions.net \
    --cc=kvalo@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=matthias.bgg@gmail.com \
    --cc=nbd@nbd.name \
    --cc=ryder.lee@mediatek.com \
    --cc=sean.wang@mediatek.com \
    --cc=shayne.chen@mediatek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).