Replies: 7 comments
-
Hi @MEL1H Thanks for creating this new issue.
I am confused about what you are doing. It almost sounds to me like you are doing the speedtest using the RasPi4B that is the AP. Is this the case? Answer some questions please:
|
Beta Was this translation helpful? Give feedback.
-
I did not clarify that, sorry. Rpi gets internet thru ethernet. When it works as ap, I connect to it with any of my device(ipad/andriod phone,samsung tv). I run ookla speedtest with that connected device. In the middle of the test, connection lost. Device disconnects from rpi ap and I cannot see wireless ssid for 1-2 minutes with any of my devices. -pi@md-ap:~ $ ifconfig lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
No, I have disabled it. There is only 1 wlan and that is wlan0-axml
There is only 1 wlan and that is wlan0-axml
From ethernet
pi@md-ap:~ $ cat /boot/issue.txt pi@md-ap:~ $ cat /etc/os-release
pi@md-ap:~ $ systemctl is-active NetworkManager Thank you! |
Beta Was this translation helpful? Give feedback.
-
Thanks @MEL1H A little clarification goes a long way.
FYI: ifconfig has long since been depreciated. Please use ip. When I see ifconfig, I ignore what is posted as I do not know if the info is good. From an article: Ifconfig is a command used to configure network interfaces on Linux machines. However, it is now considered a deprecated command because it has been replaced by ip command, which offers more advanced features and better control over network configuration.Apr 11, 2023
No problem. We are all learning. This project is a very difficult project unless you are a Linux networking expert. Run the following on the RasPi AP:
Post the result. If the result is N, how about we shut down scatter-gather support: Open a terminal (Ctrl + Alt + t) sudo nano /etc/modprobe.d/mt76_usb.conf add: options mt76_usb disable_usb_sg=1 Save the file: Ctrl + Alt + o, Enter, Ctrl + Alt + x Let me know if this helps. |
Beta Was this translation helpful? Give feedback.
-
I did not know that command, thank you for informing me! pi@md-ap:~ $ ip a
I forgot to mention that I saw that solution at one of the similar topics and I applied. Unfortunately, It did not solve problem. pi@md-ap:~ $ grep [[:alnum:]] /sys/module/mt76_usb/parameters/* |
Beta Was this translation helpful? Give feedback.
-
Okay, so no issue with scatter-gather. Does the same thing happen whether you are plugged into a USB3 or USB2 port? Now we get to the part where it getting hard. I have an AXML and a RasPi4B. You are using the WiFi 6 example hostapd.conf I have up so no need to mention it. You likely have already seen my AP guide. This guide was recently tweaked to account for the then new RasPiOS 2023-10-10 which should have been called an Alpha test release but that is another subject. I have been alternating about every 2 weeks with my axml and a comfast 951ax which both have the same mt7921au chipset and use the same mt7921u in-kernel driver. I use this AP with the clients that I do my daily work, including this message, and I push the hell out of the AP about every 2 days with Iperf3 to see if I can break it. The only thing that I can find that will break this setup is to unplug the RasPi. No electricity and indeed, it is broke. What are the differences in our RasPi AP's? Mine if bridged and your is routed. You use dhcpcd and I use systemd-networkd. You'll note in mu AP guide that I recommend OpenWRT for those wishing to have a routed setup. Have you considered trying OpenWRT on your RasPi4b? I am only suggesting this because I cannot see anything that tells me that your problem is related to the axml or driver. |
Beta Was this translation helpful? Give feedback.
-
After a couple weeks, hello again, I have tried some setups. These are what I got until now; (always used raspi os aarch64+updated kernel 6.7.0rc* for bullseye and 6.6.8 for bookworm, always updated wifi driver from 8th topic, removed BT driver)
Even if I changed from raspi 4b to raspi 5, from bullseye to bookworm, 9/10 of speedtest attemps on any device on ookla website, wifi ssid dissappers and comes back after 2-3 minutes. dmesg | grep 7921 also same for all of these setups. Could you try to speedtest from ookla website with multiple devices at same time? @morrownr EDIT: latest kernel on bookworm gave a message on terminal when wifi ssid dissapeared;
|
Beta Was this translation helpful? Give feedback.
-
Hi @MEL1H I reread the thread here to get myself back up to speed. I was going to do a speedtest with ookla but found out you have to sign up so I used https://testmy.net/ . I did a few runs and saw all numbers running around 400 Mbps download. I pay for 250 Mbps but they seem to give me more and I am not complaining. I did the test several times and did not see a dropout at all. Then tested on my lan with iperf3. I used 30 second and 60 second runs but no dropouts. I've had my current AP setup going for a few weeks now. I connected to it with my main dev box and I push it at times and do large downloads and I see no problems. I've been altering between my AXML and another adapter that also has the mt7921au chipset. My rating right now is 100% uptime. I'm talking about 24/7/365 reliability. What is the difference between my setup and yours? My AP is setup with RasPiOS 2023-10-10 on a RasPi4B. The software I use is: hostapd The setup is per the AP guide here on the Main Menu along with the WiFi 6 hostapd.conf example. I've been doing AP projects for a long time. I am very aware that there are a LOT of ways to setup an AP. I have experiemented with many. There is a reason my guide uses what it does. On another note: deren posted a patch that has to do with AP mode a few posts below your last post in the pinned thread. You might apply the patch to see if it helps. Other than that, I got nothing. I advice users that want a routed AP to use OpenWRT and it is available for your RasPi4B. My guide is good and is education for a bridged AP. The problem could be a bug in something besides the driver or it could be a bug in the driver that is only exposed by the AP software you are using. It is likely not hostapd as we are both using it. The problem is like in the different way we are setting up the networking. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have mentioned this issue in some other topics but with @morrownr suggestion, I create a new topic.
I have bought an alfa AWUS036AXML. I have a rpi 4b. It was already working plug&play but still I have put drivers according to 8. topic guide at main page. I use dhcpcd+dnsmasq+hostapd method for ap. I took wifi 6 hostapd from topic 9th and commented br0 line. It works with speed of 300mbps with ookla speedtest (if it does not disconnect). But my only problem is wifi disconnects and comes back after 1-2 minutes if I do speedtest. Maybe 8 of 10 speedtest attemps disconnect all devices from ap. If I do not do speedtest, there is no issue (as far as I see).I have updated kernel to 6.6.y and 6.7.y but still result same. Could you help me on this? I put some information below, I am not an expert, please ask me if you need some more information.
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions