mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-12 19:44:51 -04:00
wifi: mt76: mt7925: Update mt7925_unassign_vif_chanctx for per-link BSS
Update mt7925_unassign_vif_chanctx to support per-link BSS.
Fixes: 86c051f2c4 ("wifi: mt76: mt7925: enabling MLO when the firmware supports it")
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Link: https://patch.msgid.link/20241211011926.5002-12-sean.wang@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
committed by
Felix Fietkau
parent
90c10286b1
commit
30b721467c
@@ -2081,18 +2081,16 @@ static void mt7925_unassign_vif_chanctx(struct ieee80211_hw *hw,
|
||||
struct mt792x_chanctx *mctx = (struct mt792x_chanctx *)ctx->drv_priv;
|
||||
struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv;
|
||||
struct mt792x_dev *dev = mt792x_hw_dev(hw);
|
||||
struct ieee80211_bss_conf *pri_link_conf;
|
||||
struct mt792x_bss_conf *mconf;
|
||||
|
||||
mutex_lock(&dev->mt76.mutex);
|
||||
|
||||
if (ieee80211_vif_is_mld(vif)) {
|
||||
mconf = mt792x_vif_to_link(mvif, link_conf->link_id);
|
||||
pri_link_conf = mt792x_vif_to_bss_conf(vif, mvif->deflink_id);
|
||||
|
||||
if (vif->type == NL80211_IFTYPE_STATION &&
|
||||
mconf == &mvif->bss_conf)
|
||||
mt7925_mcu_add_bss_info(&dev->phy, NULL, pri_link_conf,
|
||||
mt7925_mcu_add_bss_info(&dev->phy, NULL, link_conf,
|
||||
NULL, false);
|
||||
} else {
|
||||
mconf = &mvif->bss_conf;
|
||||
|
||||
Reference in New Issue
Block a user