frank-w / BPI-Router-Linux

Linux kernel 4.14+ for BPI-R2, 5.4+ for R64, 6.1+ for R2Pro and R3
Other
136 stars 47 forks source link

6.9-rc kernel wifi not working - here is the fix #117

Closed jcdutton closed 8 months ago

jcdutton commented 8 months ago

Hi,

The following patch fixes 6.9-rc not working with the mt7915e driver.

From: Ben Greear <[greearb@candelatech.com](mailto:greearb@candelatech.com)>

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")

Signed-off-by: Ben Greear <[greearb@candelatech.com](mailto:greearb@candelatech.com)>
---
 drivers/net/wireless/mediatek/mt76/mt7915/main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/main.c b/drivers/net/wireless/mediatek/mt76/mt7915/main.c
index a246d11d9811..fadb8e62092c 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/main.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/main.c
@@ -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
frank-w commented 8 months ago

thx, have you send the patch to ML?

jcdutton commented 8 months ago

I found the patch on the linux-wireless@vger.kernel.org mailing list, and noticed it was not in your 6.9-rc tree, and thus the BPI-R3 wifi was not working.

frank-w commented 8 months ago

Ok,then it is already sent...have you the patchwork-link?

My tree also misses some patches for r4 i currently collect.

jcdutton commented 8 months ago

https://patchwork.kernel.org/project/linux-wireless/patch/20240327001131.4028431-1-greearb@candelatech.com/

frank-w commented 8 months ago

thx, added patch from there