]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: mt76: mt7925: drop puncturing handling from BSS change path
authorSean Wang <sean.wang@mediatek.com>
Tue, 16 Dec 2025 02:20:17 +0000 (20:20 -0600)
committerFelix Fietkau <nbd@nbd.name>
Mon, 23 Mar 2026 09:23:01 +0000 (09:23 +0000)
IEEE80211_CHANCTX_CHANGE_PUNCTURING is a channel context change
flag and should not be checked in the BSS change handler, where
the changed mask represents enum ieee80211_bss_change.

Remove the puncturing handling from the BSS path and rely on
mt7925_change_chanctx() to update puncturing configuration.

Fixes: cadebdad959b ("wifi: mt76: mt7925: add EHT preamble puncturing")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Link: https://patch.msgid.link/20251216022017.23870-1-sean.wang@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7925/main.c

index 1fea2e807f779400731c04d11f0f534c6e48bff0..a0a4307652d2c908ce52dc9a87441824be9828ce 100644 (file)
@@ -1907,10 +1907,8 @@ static void mt7925_link_info_changed(struct ieee80211_hw *hw,
        struct mt792x_phy *phy = mt792x_hw_phy(hw);
        struct mt792x_dev *dev = mt792x_hw_dev(hw);
        struct mt792x_bss_conf *mconf;
-       struct ieee80211_bss_conf *link_conf;
 
        mconf = mt792x_vif_to_link(mvif, info->link_id);
-       link_conf = mt792x_vif_to_bss_conf(vif, mconf->link_id);
 
        mt792x_mutex_acquire(dev);
 
@@ -1952,10 +1950,6 @@ static void mt7925_link_info_changed(struct ieee80211_hw *hw,
                mvif->mlo_pm_state = MT792x_MLO_CHANGED_PS;
        }
 
-       if (changed & IEEE80211_CHANCTX_CHANGE_PUNCTURING)
-               mt7925_mcu_set_eht_pp(mvif->phy->mt76, &mconf->mt76,
-                                     link_conf, NULL);
-
        if (changed & BSS_CHANGED_CQM)
                mt7925_mcu_set_rssimonitor(dev, vif);