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 b3e0a0e87..50707a44b 100644 --- a/package/kernel/mt76/patches-6.x/100-api_update.patch +++ b/package/kernel/mt76/patches-6.x/100-api_update.patch @@ -29,6 +29,61 @@ } void mt76_csa_check(struct mt76_dev *dev) +--- a/mt7915/main.c ++++ b/mt7915/main.c +@@ -108,7 +108,7 @@ + return ret; + } + +-static void mt7915_stop(struct ieee80211_hw *hw, bool suspend) ++static void mt7915_stop(struct ieee80211_hw *hw) + { + struct mt7915_dev *dev = mt7915_hw_dev(hw); + struct mt7915_phy *phy = mt7915_hw_phy(hw); +@@ -1697,10 +1697,6 @@ + } + + const struct ieee80211_ops mt7915_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 = mt7915_tx, + .start = mt7915_start, + .stop = mt7915_stop, +--- a/mt7915/mcu.c ++++ b/mt7915/mcu.c +@@ -232,7 +232,7 @@ + if (!vif->bss_conf.csa_active || vif->type == NL80211_IFTYPE_STATION) + return; + +- ieee80211_csa_finish(vif, 0); ++ ieee80211_csa_finish(vif); + } + + static void +@@ -335,7 +335,7 @@ + if (!vif->bss_conf.color_change_active || vif->type == NL80211_IFTYPE_STATION) + return; + +- ieee80211_color_change_finish(vif, 0); ++ ieee80211_color_change_finish(vif); + } + + static void +@@ -467,10 +467,10 @@ + .tolerated = true, + }; + +- if (!(vif->bss_conf.chanreq.oper.chan->flags & IEEE80211_CHAN_RADAR)) ++ if (!(vif->bss_conf.chandef.chan->flags & IEEE80211_CHAN_RADAR)) + return false; + +- cfg80211_bss_iter(hw->wiphy, &vif->bss_conf.chanreq.oper, ++ cfg80211_bss_iter(hw->wiphy, &vif->bss_conf.chandef, + mt7915_check_he_obss_narrow_bw_ru_iter, + &iter_data); + --- a/mt792x_core.c +++ b/mt792x_core.c @@ -733,10 +733,6 @@