From 80467ccd0fcc77912270b0309f087321b5e3e01b Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Sun, 19 Oct 2025 20:10:40 +0800 Subject: [PATCH] mt76: refresh linux 6.x support patches --- .../mt76/patches-6.x/100-api_update.patch | 163 ++++++++++++++++++ 1 file changed, 163 insertions(+) diff --git a/package/kernel/mt76/patches-6.x/100-api_update.patch b/package/kernel/mt76/patches-6.x/100-api_update.patch index f3fc4b376..50ca7851a 100644 --- a/package/kernel/mt76/patches-6.x/100-api_update.patch +++ b/package/kernel/mt76/patches-6.x/100-api_update.patch @@ -108,6 +108,15 @@ { struct mt792x_dev *dev = mt792x_hw_dev(hw); int err = 0; +@@ -281,7 +281,7 @@ + return; + } + +- mt792x_stop(hw, false); ++ mt792x_stop(hw); + } + + static int --- a/mt7996/main.c +++ b/mt7996/main.c @@ -93,7 +93,7 @@ @@ -283,3 +292,157 @@ struct mt792x_bss_conf *mconf = mt792x_link_conf_to_mconf(link_conf); enum nl80211_band band = chandef->chan->band; struct mt76_vif *mvif = &mconf->mt76; +--- a/mt76x0/pci.c ++++ b/mt76x0/pci.c +@@ -44,7 +44,7 @@ + mt76_clear(dev, MT_WPDMA_GLO_CFG, MT_WPDMA_GLO_CFG_RX_DMA_EN); + } + +-static void mt76x0e_stop(struct ieee80211_hw *hw, bool suspend) ++static void mt76x0e_stop(struct ieee80211_hw *hw) + { + struct mt76x02_dev *dev = hw->priv; + +@@ -59,10 +59,6 @@ + } + + static const struct ieee80211_ops mt76x0e_ops = { +- .add_chanctx = ieee80211_emulate_add_chanctx, +- .remove_chanctx = ieee80211_emulate_remove_chanctx, +- .change_chanctx = ieee80211_emulate_change_chanctx, +- .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx, + .tx = mt76x02_tx, + .start = mt76x0e_start, + .stop = mt76x0e_stop, +--- a/mt76x0/usb.c ++++ b/mt76x0/usb.c +@@ -77,7 +77,7 @@ + mt76u_queues_deinit(&dev->mt76); + } + +-static void mt76x0u_stop(struct ieee80211_hw *hw, bool suspend) ++static void mt76x0u_stop(struct ieee80211_hw *hw) + { + struct mt76x02_dev *dev = hw->priv; + +@@ -118,10 +118,6 @@ + } + + static const struct ieee80211_ops mt76x0u_ops = { +- .add_chanctx = ieee80211_emulate_add_chanctx, +- .remove_chanctx = ieee80211_emulate_remove_chanctx, +- .change_chanctx = ieee80211_emulate_change_chanctx, +- .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx, + .tx = mt76x02_tx, + .start = mt76x0u_start, + .stop = mt76x0u_stop, +--- a/mt76x2/pci_main.c ++++ b/mt76x2/pci_main.c +@@ -24,7 +24,7 @@ + } + + static void +-mt76x2_stop(struct ieee80211_hw *hw, bool suspend) ++mt76x2_stop(struct ieee80211_hw *hw) + { + struct mt76x02_dev *dev = hw->priv; + +@@ -121,10 +121,6 @@ + } + + const struct ieee80211_ops mt76x2_ops = { +- .add_chanctx = ieee80211_emulate_add_chanctx, +- .remove_chanctx = ieee80211_emulate_remove_chanctx, +- .change_chanctx = ieee80211_emulate_change_chanctx, +- .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx, + .tx = mt76x02_tx, + .start = mt76x2_start, + .stop = mt76x2_stop, +--- a/mt76x2/usb_main.c ++++ b/mt76x2/usb_main.c +@@ -22,7 +22,7 @@ + return 0; + } + +-static void mt76x2u_stop(struct ieee80211_hw *hw, bool suspend) ++static void mt76x2u_stop(struct ieee80211_hw *hw) + { + struct mt76x02_dev *dev = hw->priv; + +@@ -88,10 +88,6 @@ + } + + const struct ieee80211_ops mt76x2u_ops = { +- .add_chanctx = ieee80211_emulate_add_chanctx, +- .remove_chanctx = ieee80211_emulate_remove_chanctx, +- .change_chanctx = ieee80211_emulate_change_chanctx, +- .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx, + .tx = mt76x02_tx, + .start = mt76x2u_start, + .stop = mt76x2u_stop, +--- a/mt7603/main.c ++++ b/mt7603/main.c +@@ -23,7 +23,7 @@ + } + + static void +-mt7603_stop(struct ieee80211_hw *hw, bool suspend) ++mt7603_stop(struct ieee80211_hw *hw) + { + struct mt7603_dev *dev = hw->priv; + +@@ -694,10 +694,6 @@ + } + + const struct ieee80211_ops mt7603_ops = { +- .add_chanctx = ieee80211_emulate_add_chanctx, +- .remove_chanctx = ieee80211_emulate_remove_chanctx, +- .change_chanctx = ieee80211_emulate_change_chanctx, +- .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx, + .tx = mt7603_tx, + .start = mt7603_start, + .stop = mt7603_stop, +--- a/mt7615/main.c ++++ b/mt7615/main.c +@@ -91,7 +91,7 @@ + return ret; + } + +-static void mt7615_stop(struct ieee80211_hw *hw, bool suspend) ++static void mt7615_stop(struct ieee80211_hw *hw) + { + struct mt7615_dev *dev = mt7615_hw_dev(hw); + struct mt7615_phy *phy = mt7615_hw_phy(hw); +@@ -1313,10 +1313,6 @@ + #endif /* CONFIG_PM */ + + const struct ieee80211_ops mt7615_ops = { +- .add_chanctx = ieee80211_emulate_add_chanctx, +- .remove_chanctx = ieee80211_emulate_remove_chanctx, +- .change_chanctx = ieee80211_emulate_change_chanctx, +- .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx, + .tx = mt7615_tx, + .start = mt7615_start, + .stop = mt7615_stop, +--- a/mt7615/mcu.c ++++ b/mt7615/mcu.c +@@ -353,7 +353,7 @@ + mt7615_mcu_csa_finish(void *priv, u8 *mac, struct ieee80211_vif *vif) + { + if (vif->bss_conf.csa_active) +- ieee80211_csa_finish(vif, 0); ++ ieee80211_csa_finish(vif); + } + + static void +--- a/mt7615/usb.c ++++ b/mt7615/usb.c +@@ -79,7 +79,7 @@ + mutex_unlock(&usb->usb_ctrl_mtx); + } + +-static void mt7663u_stop(struct ieee80211_hw *hw, bool suspend) ++static void mt7663u_stop(struct ieee80211_hw *hw) + { + struct mt7615_phy *phy = mt7615_hw_phy(hw); + struct mt7615_dev *dev = hw->priv;