Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D-Link DAP-X1860 A1: Wifi crashes immediately after boot #3003

Closed
citronalco opened this issue Sep 28, 2023 · 9 comments · Fixed by #3011
Closed

D-Link DAP-X1860 A1: Wifi crashes immediately after boot #3003

citronalco opened this issue Sep 28, 2023 · 9 comments · Fixed by #3011
Labels

Comments

@citronalco
Copy link
Contributor

citronalco commented Sep 28, 2023

Bug report

What is the problem?
One of our users has reported non working Wifi on his D-Link DAP-X1860 (A1) with Gluon-v2023.1-13-g473ff9d
He has several of those devices. All of them work properly with Gluon 2022.1-4.

Wifi crashes immediately after boot. 100% reproducible:

dmesg:

...
[   43.230583] batman_adv: bat0: IGMP Querier appeared
[   43.235477] batman_adv: bat0: MLD Querier appeared
[   58.140491] mt7915e 0000:02:00.0: Message 00004eed (seq 15) timeout
[   78.620544] mt7915e 0000:02:00.0: Message 000007ed (seq 1) timeout
[  110.620479] mt7915e 0000:02:00.0: Message 00005aed (seq 2) timeout
[  131.100459] mt7915e 0000:02:00.0: Message 00005aed (seq 3) timeout
[  151.580499] mt7915e 0000:02:00.0: Message 00005aed (seq 4) timeout
[  172.060360] mt7915e 0000:02:00.0: Message 00005aed (seq 5) timeout
[  192.540121] mt7915e 0000:02:00.0: Message 00005aed (seq 6) timeout
[  213.019902] mt7915e 0000:02:00.0: Message 00005aed (seq 7) timeout
[  233.499631] mt7915e 0000:02:00.0: Message 00005aed (seq 8) timeout
[  253.979366] mt7915e 0000:02:00.0: Message 00005aed (seq 9) timeout
[  274.459085] mt7915e 0000:02:00.0: Message 00005aed (seq 10) timeout
[  294.938764] mt7915e 0000:02:00.0: Message 00005aed (seq 11) timeout
[  315.418483] mt7915e 0000:02:00.0: Message 00005aed (seq 12) timeout
[  335.898169] mt7915e 0000:02:00.0: Message 00005aed (seq 13) timeout
[  356.377828] mt7915e 0000:02:00.0: Message 00005aed (seq 14) timeout
[  376.857480] mt7915e 0000:02:00.0: Message 00005aed (seq 15) timeout
[  397.337120] mt7915e 0000:02:00.0: Message 00005aed (seq 1) timeout
(continues endlessly)

iwinfo runs very slow, taking several seconds per line. It displays:

client0   ESSID: "Freifunk"
          Access Point: 72:BF:FA:84:EC:D8
          Mode: Master  Channel: 5 (2.432 GHz)  HT Mode: NOHT
          Center Channel 1: unknown 2: unknown
          Tx-Power: 0 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: none
          Type: nl80211  HW Mode(s): 802.11ax/b/g/n
          Hardware: 14C3:7915 14C3:7915 [MediaTek MT7915E]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: phy0

client1   ESSID: "Freifunk"
          Access Point: 72:BF:FA:84:EC:DC
          Mode: Master  Channel: 44 (6.170 GHz)  HT Mode: NOHT
          Center Channel 1: unknown 2: unknown
          Tx-Power: 0 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: none
          Type: nl80211  HW Mode(s): 802.11ac/ax/n
          Hardware: 14C3:7915 14C3:7915 [MediaTek MT7915E]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: phy1

mesh0     ESSID: unknown
          Access Point: 72:BF:FA:84:EC:D9
          Mode: Mesh Point  Channel: unknown (unknown)  HT Mode: NOHT
          Center Channel 1: unknown 2: unknown
          Tx-Power: 0 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: none
          Type: nl80211  HW Mode(s): 802.11ax/b/g/n
          Hardware: 14C3:7915 14C3:7915 [MediaTek MT7915E]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: phy0

mesh1     ESSID: unknown
          Access Point: 72:BF:FA:84:EC:DD
          Mode: Mesh Point  Channel: unknown (unknown)  HT Mode: NOHT
          Center Channel 1: unknown 2: unknown
          Tx-Power: 0 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: none
          Type: nl80211  HW Mode(s): 802.11ac/ax/n
          Hardware: 14C3:7915 14C3:7915 [MediaTek MT7915E]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: phy1

Needless to say neither 0 dBm TX power nor channel 1 is configured in uci/site.conf.

Gluon Version:
v2023.1-13-g473ff9d

Site Configuration:
https://git.bingo-ev.de/freifunk/ffin-site/

Custom patches:
None.

@herbetom
Copy link
Contributor

herbetom commented Oct 1, 2023

@citronalco Thanks for reporting it.

I can report that i was able to reproduce the described issue on the DAP-X1860. :(

Since i had an NWA50AX on hand and it's (to my understanding) not completly different from the D-Link DAP-X1860 A1 i also tested that one and there don't seem to be immediately visible issues.

Not verified: i wouldn't rule out that the problem only exists with openwrt-22.03 and firmware build from master with openwrt-23.05 is unaffected. However, so far this is only a guess based on looking at stats.

@Djfe
Copy link
Contributor

Djfe commented Oct 2, 2023

maybe it's the last openwrt commit we added?
nbd168 updated mt76 and actually updated firmware and stuff
openwrt/openwrt@76b1e56

We should try building without this commit to see if it fixes it.
That would explain why v2023.1 (the tag) was not affected and why v2023.1.1/the current branch is affected.
I might do a git bisect of the wifi driver (branch 22.03) to figure out which commit introduced the issue exactly in order to get this fixed (before release of openwrt 22.03.06)

herbetom added a commit to herbetom/gluon that referenced this issue Oct 2, 2023
The latest mt76 bump results in broken WLAN on the D-Link DAP-X1860 (freifunk-gluon#3003).

Reverting them works arround this for now.
@herbetom
Copy link
Contributor

herbetom commented Oct 2, 2023

Okay. I've tested a bit more.

@Djfe
Copy link
Contributor

Djfe commented Oct 2, 2023

Could be relevant maybe
openwrt/mt76#776
Debugging started with
openwrt/mt76#690

unless the timeout messages have a completely different cause

@rotanid
Copy link
Member

rotanid commented Oct 2, 2023

FYI: until we have confirmed that master (based on 23.05) is not affected, we should leave this issue open even after #3011 is merged

@herbetom
Copy link
Contributor

herbetom commented Oct 2, 2023

I've just confirmed that master seems to be okay. So apparently really just a problem with openwrt-22.03.

Still, i'm not sure if we should close this issue since we've currently only got a workarround and not a real solution (and not even an upstream issue/ticket).
Having those mt76 commits would be nice. Even if I, at least so far, haven't checked out what we're missing out of.

@citronalco
Copy link
Contributor Author

I also can confirm it is working with this change.

@lukasz1992
Copy link

  1. openwrt-22.03 is stuck on old version of mt76, consider it as forgotten

  2. It is also possible that new firmware solves the problem too: https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/dc2bc0ce919472f83efa8c62aa6fe56711887c01

@Djfe
Copy link
Contributor

Djfe commented Oct 27, 2023

actually nbd168 updated mt76 and it's firmware in the 22 branch which caused this regression.
yes, still an old driver version without some new additions but with new firmware, I think.
https://github.com/openwrt/openwrt/commits/openwrt-22.03?author=nbd168

I might be able to further bisect the issue this weekend.
hopefully this can be fixed before the next release of v2022.

blocktrron pushed a commit to blocktrron/gluon that referenced this issue Dec 5, 2023
The latest mt76 bump results in broken WLAN on the D-Link DAP-X1860 (freifunk-gluon#3003).

Reverting them works arround this for now.

(cherry picked from commit a0324f7)
@rotanid rotanid added the 3. topic: hardware Topic: Hardware Support label May 11, 2024
@rotanid rotanid closed this as completed May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants