Skip to contentSkip to conversation

wifi: mt76: mt7915: Emulate chanctx methods.

PATCH In review [email protected] 2 participants 2 messages Mar 27, 2024 – Apr 1, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: mt76: mt7915: Emulate chanctx methods.

From: Ben Greear <[email protected]>

Looks like this was missed in the initial patch that made the conversion to the emulated chanctx drivers.

Fixes commit 0a44dfc07074 ("wifi: mac80211: simplify non-chanctx drivers")
---
 drivers/net/wireless/mediatek/mt76/mt7915/main.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/wireless/mediatek/mt76/mt7915/main.c +4 -0
index a246d11d9811..fadb8e62092c 100644
@@ -2050,6 +2050,10 @@ mt7915_net_fill_forward_path(struct ieee80211_hw *hw,
 #endif
 
 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,
Signature · 1 line
2.42.0
Tested-by on v1 1/1
#1 lore raw

Hi.
I have used this patch, and it fixes wifi for the mediatek board i have. the BPI-R3.
Please add it to wireless-next, 6.9-rc

Feel free to add:

Kind Regards

James

Quoted 32 lines · On Wed, 27 Mar 2024 at 00:11, <[email protected]> wrote:

From: Ben Greear <[email protected]>

Looks like this was missed in the initial patch that made the conversion to the emulated chanctx drivers.

Fixes commit 0a44dfc07074 ("wifi: mac80211: simplify non-chanctx drivers")
---
 drivers/net/wireless/mediatek/mt76/mt7915/main.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/wireless/mediatek/mt76/mt7915/main.c +4 -1
index a246d11d9811..fadb8e62092c 100644
@@ -2050,6 +2050,10 @@ mt7915_net_fill_forward_path(struct ieee80211_hw *hw,
 #endif
 
 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,
--

2.42.0