23.05.3 iwinfo scan disconnects AP



  • @DocHardinger In the first instance it would be worth reporting this as a defect with the maintainers of the MT driver.
    I tried it again, this time connecting to the AP with my Android 11 phone, it didn't drop the connection. So I tried on an iPhone 8 I use for testing stuff, it also didn't drop the connection. Tested using my Ubuntu 24.10 it didn't drop the connection.

    I tested all of these using a Dash with my own OpenWrt 23.05.4 on it, then retested each of these devices using Omega2 Pro running onion_omega2p-23.05.3-20250205.bin you referred to above.

    My final test was using another Dash running customised OpenWrt 24.10.0, I only tested on my android phone and Ubuntu 24



  • Hmm strange, i will do some further tests with different systems. Its definitive something inside the driver cause i xan reproduce that 22.03. Is working as expected and 23.05. not.

    Is it hard to build 24.10 with all onion packages? Or will i get isues because of missing packages? Maybe i can try 24.10.



  • @DocHardinger It's a bit of work depending on what packages you are using. I didn't test 24.10 on my windows device yet because it's not with me today. I can try tomorrow afternoon when I'm back at that house.



  • @crispyoz
    Seems these guys have the same problem here https://github.com/openwrt/mt76/issues/953 .
    And they are talking about an fix https://github.com/cmonroe/feed-wifi-master/raw/refs/heads/smartrg-master/mt76/patches/0925-wifi-mt76-do-not-report-ACK-when-TXS-is-lost.patch .

    But im not sure if this also counts for MT7688.

    So when using the onion build tool, is it possible to add this patch there? And should onion add this patch too? @Lazar-Demin



  • @DocHardinger I just checked 23.05.03 and the patch can be applied on both kernel 5.15 and 6.6. So you could also apply it if you are using the openwrt-buildsystem-wrapper. I don't know any way to apply the patch to the image builder, the patch would need to be added to the Onion's CI I guess, I don't use it anymore so I can't check, @Lazar-Demin can response to that. Perhaps let me know how you roll your firmware and we can see how best to apply it to your system. I'll apply the patch to my firmware and see if I can see a difference with windoze.



  • @DocHardinger I patched the driver and re-ran the same tests, I ran 4 tests using my windows 11 machine, only once it disconnected.



  • @crispyoz do you know if there is a docker container with openwrt-buildsystem-wrapper? i think youre using a normal pc with linux? Cause i once used a virtual machine and got a lot of problems when trying to run the openwrt builder.



  • @crispyoz ok once is better than always šŸ˜‰



  • @DocHardinger I built a test firmware for you, so you can test the patch. I put it here it is based on a stock OpenWrt 23.05 with some added packages etc, I ripped out the stuff I'm working on so as not to complicate things for you, but it has the patched mt76 driver so you can see if it fixes your issue. If it does then we can bug @Lazar-Demin to add the patch to the imagebuilder.



  • @crispyoz There seems to be some errors when booting. I run sysupgrade -n yourimage.bin on an Omega2Pro:

    [    7.243364] mmcblk0rpmb: mmc0:0001 DG4008 4.00 MiB, chardev (251:0)
    /etc/preinit: /lib/preinit/90_apply_dt_overlays.rej: line 1: ---: not found
    /etc/preinit: /lib/preinit/90_apply_dt_overlays.rej: line 2: +++: not found
    /etc/preinit: /lib/preinit/90_apply_dt_overlays.rej: line 3: @@: not found
    /etc/preinit: /lib/preinit/90_apply_dt_o[    7.871484] random: procd: uninitialized urandom read (4 bytes read)
    verlays.rej: line 4: +#!/bin/sh: not found
    /etc/preinit: /lib/p[    7.882382] procd: - early -
    reinit/90_apply_[    7.886986] procd: - watchdog -
    dt_overlays.rej: line 5: +: not found
    /etc/preinit: /lib/preinit/90_apply_dt_overlays.rej: line 12: syntax error: unexpected "do" (expecting "}")
    
    

    and also after boot i'm in read only filesystem...I think there is something wrong. I needed to use USb recovery and afterwards tried it again with same result.

    root@(none):~# wifi config > /etc/config/wireless
    -ash: can't create /etc/config/wireless: Read-only file system
    root@(none):~#
    
    


  • @DocHardinger Oops. I made a new one without that issue, it's for the Dash but will work on a Pro but you need to use -F parameter so it can be installed on a Pro:

    sysupgrade -n -F openwrt-23.05.3-ramips-mt76x8-onion_omega2dash-squashfs-sysupgrade.bin
    


  • Ok tested it and problem is the same, keeps disconnecting when scanning on both pc and laptop but stays stable on mobile. Also testing some settings on my wifi adapter on the pc but no luck. Will try to find out why windows keeps disconnecting while android doesnt. I mean it must be something inside the driver because 22.03. is working without problems. I wanna get behind this damn problem šŸ˜‰



  • @DocHardinger I updated the test firmware, try this one.



  • @crispyoz i managed to install the new version but same error and am i right that there is no dhcp service like dnsmasq running? Anyway i switched to static adress on my pc and still keeps disconnecting when running iwinfo radio0 scan. Mobile phone stays connected.



  • @DocHardinger There are a lot of changes in the driver, even on openwrt 23.05 comparing kernel 5.15 and 6.6 which is the version I made you. I'll snoop around a bit and see if anything looks suspicious, I recall there were changes around power management and moving some core stuff into the driver. My guess is that windows is less tolerant of timeouts or lost packets which occur when you perform the scan.

    I have a personal disdain for DNSMasq šŸ™‚



  • @crispyoz said in 23.05.3 iwinfo scan disconnects AP:

    My guess is that windows is less tolerant of timeouts or lost packets which occur when you perform the scan.

    Yeah it seems so, but why is the old driver in 22.03. not disconnecting. If its just windows then disconnecting should also happen with 22.03. Or maybe the new driver spend more time in scanning and so needs more time for an ack to send back and windows doesnt like that...



  • @DocHardinger Can you see if you have the same issue with a new test firmware I uploaded?



  • @crispyoz yes tested it, keeps disconnecting šŸ˜ž



  • @DocHardinger That was OpenWrt 23.05 with the OpenWrt 22 MT76 driver code merged in. I tested on my Windows 11 machine, ran 6 or 7 scans and it never disconnected. May I suggest, if you have not already, power your Omega2 using a USB power adapter. Wifi scanning typically shows a spike in current, so I wonder if that's the issue.



  • @crispyoz said in 23.05.3 iwinfo scan disconnects AP:

    @DocHardinger That was OpenWrt 23.05 with the OpenWrt 22 MT76 driver code merged in. I tested on my Windows 11 machine, ran 6 or 7 scans and it never disconnected. May I suggest, if you have not already, power your Omega2 using a USB power adapter. Wifi scanning typically shows a spike in current, so I wonder if that's the issue.

    Of cause i used an usb power adapter, but thats a good point i didnt checked with another one. Or better i will use my laboratory power supply. We got this problem before but with also modem and other stuff connected and this was a bad power adapter, but with modem its a lot of more current needed.

    Anyway i will test it.


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.