USB-WiFi
USB-WiFi copied to clipboard
Comfast CF-951AX & CF-953AX not functioning in AP/Master mode in OpenWrt 22.03 using Luci on Raspberry Pi 4B (N,AC, or AX)
I'm unable to get either Comfast adapter to initialize (device is not active/wireless is not associated) in OpenWrt 22.03 in N, AC, or AX mode. It's plugged into a USB3 port.
I was able to progress past the first error (in AX mode) "daemon.err hostapd: Driver does not support configured HT capability [LDPC]" by adding option ldpc '0' to /etc/config/wireless... Only to come up with 3 more errors. Adding the below options bypassed those errors:
option ldpc '0' option tx_stbc '0' option rx_stbc '0' option max_amsdu '0'
Once I got past those errors I receive this error: Configured VHT capability [VHT_CAP_MAX_MPDU_LENGTH_MASK] exceeds max value supported by the driver (2 > 0)
And don't know how to proceed.
logread:
Sat Sep 17 02:26:02 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Sat Sep 17 02:26:02 2022 kern.info kernel: [ 313.216398] br-lan: port 2(wlan0) entered blocking state
Sat Sep 17 02:26:02 2022 kern.info kernel: [ 313.224484] br-lan: port 2(wlan0) entered disabled state
Sat Sep 17 02:26:02 2022 kern.info kernel: [ 313.232448] device wlan0 entered promiscuous mode
Sat Sep 17 02:26:02 2022 **daemon.err hostapd: Driver does not support configured HT capability [LDPC]**
Sat Sep 17 02:26:02 2022 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->DISABLED
Sat Sep 17 02:26:02 2022 daemon.notice hostapd: wlan0: AP-DISABLED
Sat Sep 17 02:26:02 2022 daemon.err hostapd: wlan0: Unable to setup interface.
Sat Sep 17 02:26:02 2022 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Sat Sep 17 02:26:03 2022 kern.info kernel: [ 313.282783] device wlan0 left promiscuous mode
Sat Sep 17 02:26:03 2022 kern.info kernel: [ 313.291243] br-lan: port 2(wlan0) entered disabled state
Sat Sep 17 02:26:03 2022 **daemon.err hostapd: rmdir[ctrl_interface=/var/run/hostapd]: Permission denied**
Sat Sep 17 02:26:03 2022 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Sat Sep 17 02:26:03 2022 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Sat Sep 17 02:26:03 2022 **daemon.notice netifd: radio1 (2203): Command failed: ubus call hostapd config_add {"iface":"wlan0", "config":"/var/run/hostapd-phy0.conf"} (Invalid argument)**
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): Usage: ubus [<options>] <command> [arguments...]
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): Options:
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): -s <socket>: Set the unix domain socket to connect to
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): -t <timeout>: Set the timeout (in seconds) for a command to complete
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): -S: Use simplified output (for scripts)
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): -v: More verbose output
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): -m <type>: (for monitor): include a specific message type
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): (can be used more than once)
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): -M <r|t> (for monitor): only capture received or transmitted traffic
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203):
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): Commands:
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): - list [<path>] List objects
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): - call <path> <method> [<message>] Call an object method
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): - subscribe <path> [<path>...] Subscribe to object(s) notifications
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): - listen [<path>...] Listen for events
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): - send <type> [<message>] Send an event
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): - wait_for <object> [<object>...] Wait for multiple objects to appear on ubus
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): - monitor Monitor ubus traffic
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203):
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): Device setup failed: HOSTAPD_START_FAILED
Sat Sep 17 02:26:03 2022 daemon.notice netifd: Wireless device 'radio1' set retry=0
Sat Sep 17 02:26:03 2022 daemon.crit netifd: Wireless device 'radio1' setup failed, retry=0
Sat Sep 17 02:26:03 2022 daemon.notice netifd: Wireless device 'radio1' is now down
@amisix
Just a couple of big picture thoughts:
-
Your title fails to mention RasPi4B. Might be good to work that in. OpenWRT has different firmware for all of the different platforms for a reason... they are different. My experience with a CF-951AX with my Zyxel router running OpeWRT 22.03 has been very pleasant as far as WiFi 6 is concerned. Loci can't handle WiFi 6e yet I had to modify /etc/config/wireless to get the 6 GHz band going... well, I say going but I have no way to test yet. But it sure looks like it worked. If you ad RasPi4B to the title, it might attract of 4B users that have found a solution. You might also want to make a message in the appropriate OpenWRT forum to see if anyone there has tried this on a Pi.
-
My RasPi4B is working another job right but it can go on vacation and see what I can figure out. I'll let you know.
Done, thx. It's great to hear how well they work on certain devices, hopefully we can accomplish the same with the Raspberry Pi 4B, I'd be happy with Wifi 6 capabilities but 6e makes me drool, I've been following your other thread with excitement.
Thanks for testing it out on your end. I will open a thread on the OpenWrt forum also.
@amisix
Short follow on. I've been testing the 951AX on my ZyXEL NBG6817 router in AX in the 2.4 band today. It is strange to see anything other than N for the 2.4 band. No problems noted. So far OpenWRT 22.03 is working very well with the 951AX with the exception that Luci can't do 6 GHz yet
Now I just need a mt7921au based adapter that actually has some range. This little Comfast adapter is good for testing but it is a medium range adapter. Come on Alfa, we are waiting on the high power adapter.
@amisix can you try to open an 11n AP first? then AC, then AX.
if N and AC works and AX fails, hostapd needs to be rebuilt with AX support.
@ayyyuki1 Yes, same issue with N, AC, and AX. Slightly different error message for each, but they have in common hostapd "invalid argument" and permission errors. Thanks.
N 2.4Ghz (20Mhz channel width):
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): Failed to create interface wlan0
Tue Sep 20 19:44:20 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Tue Sep 20 19:44:20 2022 daemon.err hostapd: Driver does not support configured HT capability [SHORT-GI-40]
Tue Sep 20 19:44:20 2022 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->DISABLED
Tue Sep 20 19:44:20 2022 daemon.notice hostapd: wlan0: AP-DISABLED
Tue Sep 20 19:44:20 2022 daemon.err hostapd: wlan0: Unable to setup interface.
Tue Sep 20 19:44:20 2022 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Tue Sep 20 19:44:20 2022 daemon.err hostapd: rmdir[ctrl_interface=/var/run/hostapd]: Permission denied
Tue Sep 20 19:44:20 2022 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Tue Sep 20 19:44:20 2022 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): Command failed: ubus call hostapd config_add {"iface":"wlan0", "config":"/var/run/hostapd-phy0.conf"} (Invalid argument)
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): Usage: ubus [<options>] <command> [arguments...]
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): Options:
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): -s <socket>: Set the unix domain socket to connect to
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): -t <timeout>: Set the timeout (in seconds) for a command to complete
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): -S: Use simplified output (for scripts)
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): -v: More verbose output
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): -m <type>: (for monitor): include a specific message type
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): (can be used more than once)
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): -M <r|t> (for monitor): only capture received or transmitted traffic
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306):
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): Commands:
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): - list [<path>] List objects
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): - call <path> <method> [<message>] Call an object method
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): - subscribe <path> [<path>...] Subscribe to object(s) notifications
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): - listen [<path>...] Listen for events
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): - send <type> [<message>] Send an event
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): - wait_for <object> [<object>...] Wait for multiple objects to appear on ubus
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): - monitor Monitor ubus traffic
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306):
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): Device setup failed: HOSTAPD_START_FAILED
Tue Sep 20 19:44:20 2022 daemon.notice netifd: Wireless device 'radio1' set retry=0
Tue Sep 20 19:44:20 2022 daemon.crit netifd: Wireless device 'radio1' setup failed, retry=0
Tue Sep 20 19:44:21 2022 daemon.notice netifd: Wireless device 'radio1' is now down
AC 5Ghz (40Mhz channel width):
Tue Sep 20 19:44:20 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Tue Sep 20 19:44:20 2022 daemon.err hostapd: Driver does not support configured HT capability [SHORT-GI-40]
Tue Sep 20 19:44:20 2022 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->DISABLED
Tue Sep 20 19:44:20 2022 daemon.notice hostapd: wlan0: AP-DISABLED
Tue Sep 20 19:44:20 2022 daemon.err hostapd: wlan0: Unable to setup interface.
Tue Sep 20 19:44:20 2022 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Tue Sep 20 19:44:20 2022 daemon.err hostapd: rmdir[ctrl_interface=/var/run/hostapd]: Permission denied
Tue Sep 20 19:44:20 2022 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Tue Sep 20 19:44:20 2022 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): Command failed: ubus call hostapd config_add {"iface":"wlan0", "config":"/var/run/hostapd-phy0.conf"} (Invalid argument)
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): Usage: ubus [<options>] <command> [arguments...]
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): Options:
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): -s <socket>: Set the unix domain socket to connect to
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): -t <timeout>: Set the timeout (in seconds) for a command to complete
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): -S: Use simplified output (for scripts)
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): -v: More verbose output
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): -m <type>: (for monitor): include a specific message type
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): (can be used more than once)
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): -M <r|t> (for monitor): only capture received or transmitted traffic
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306):
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): Commands:
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): - list [<path>] List objects
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): - call <path> <method> [<message>] Call an object method
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): - subscribe <path> [<path>...] Subscribe to object(s) notifications
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): - listen [<path>...] Listen for events
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): - send <type> [<message>] Send an event
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): - wait_for <object> [<object>...] Wait for multiple objects to appear on ubus
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): - monitor Monitor ubus traffic
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306):
Tue Sep 20 19:44:20 2022 daemon.notice netifd: radio1 (18306): Device setup failed: HOSTAPD_START_FAILED
Tue Sep 20 19:44:20 2022 daemon.notice netifd: Wireless device 'radio1' set retry=0
Tue Sep 20 19:44:20 2022 daemon.crit netifd: Wireless device 'radio1' setup failed, retry=0
Tue Sep 20 19:44:21 2022 daemon.notice netifd: Wireless device 'radio1' is now down
AX 5Ghz (40Mhz channel width):
Sat Sep 17 02:26:02 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Sat Sep 17 02:26:02 2022 kern.info kernel: [ 313.216398] br-lan: port 2(wlan0) entered blocking state
Sat Sep 17 02:26:02 2022 kern.info kernel: [ 313.224484] br-lan: port 2(wlan0) entered disabled state
Sat Sep 17 02:26:02 2022 kern.info kernel: [ 313.232448] device wlan0 entered promiscuous mode
Sat Sep 17 02:26:02 2022 daemon.err hostapd: Driver does not support configured HT capability [LDPC]
Sat Sep 17 02:26:02 2022 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->DISABLED
Sat Sep 17 02:26:02 2022 daemon.notice hostapd: wlan0: AP-DISABLED
Sat Sep 17 02:26:02 2022 daemon.err hostapd: wlan0: Unable to setup interface.
Sat Sep 17 02:26:02 2022 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Sat Sep 17 02:26:03 2022 kern.info kernel: [ 313.282783] device wlan0 left promiscuous mode
Sat Sep 17 02:26:03 2022 kern.info kernel: [ 313.291243] br-lan: port 2(wlan0) entered disabled state
Sat Sep 17 02:26:03 2022 daemon.err hostapd: rmdir[ctrl_interface=/var/run/hostapd]: Permission denied
Sat Sep 17 02:26:03 2022 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Sat Sep 17 02:26:03 2022 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): Command failed: ubus call hostapd config_add {"iface":"wlan0", "config":"/var/run/hostapd-phy0.conf"} (Invalid argument)
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): Usage: ubus [] [arguments...]
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): Options:
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): -s : Set the unix domain socket to connect to
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): -t : Set the timeout (in seconds) for a command to complete
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): -S: Use simplified output (for scripts)
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): -v: More verbose output
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): -m : (for monitor): include a specific message type
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): (can be used more than once)
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): -M <r|t> (for monitor): only capture received or transmitted traffic
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203):
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): Commands:
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): - list [] List objects
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): - call [] Call an object method
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): - subscribe [...] Subscribe to object(s) notifications
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): - listen [...] Listen for events
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): - send [] Send an event
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): - wait_for [...] Wait for multiple objects to appear on ubus
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): - monitor Monitor ubus traffic
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203):
Sat Sep 17 02:26:03 2022 daemon.notice netifd: radio1 (2203): Device setup failed: HOSTAPD_START_FAILED
Sat Sep 17 02:26:03 2022 daemon.notice netifd: Wireless device 'radio1' set retry=0
Sat Sep 17 02:26:03 2022 daemon.crit netifd: Wireless device 'radio1' setup failed, retry=0
Sat Sep 17 02:26:03 2022 daemon.notice netifd: Wireless device 'radio1' is now down
@amisix
I installed the 64 bit, ext4, factory img of OpenWRT 22.03 for Raspberry Pi 4B today. I configured it to be a dumb ap. There are some serious problems. This is nowhere near the the smooth performance I saw on my Zyxel router.
As I have time this week, I will sort through the logs and see what I can figure out.
@morrownr Same version as what I ran, yes. Thanks much for confirming & taking the time to test it out. The Zyxel experience sounded great when I read of it..
@amisix if you have a pc or a laptop, you can boot openwrt from a usb to still try it ;) that way you can really see if pi is the issue
@amisix
I decided to clean things out and get to the bottom of some of the things I am seeing. OpenWRT for the Pi4B has problems. Example:
https://github.com/openwrt/openwrt/issues/9600
I can't get 2.4 GHz going with the internal wifi and it appears nobody else can either.
I did put the 951ax adapter in a usb3 port and load the drivers. Wow. That did not work well. It was nothing like what I saw on my ZyXEL NBG6817. 22.03 for the Pi4B appears to not be ready for prime time.
@morrownr RE: onboard 2.4Ghz. Yeah... I kinda bumped into that issue too, thanks for linking the thread as it was exactly what I was looking for at the time. The latest poster is right about Legacy not even working like in did in previous RCs. And no fix in sight.
It's a shame these issues are occurring given the support Raspberry Pi & OpenWrt have in the community. The 951AX & 953AX have a similar chipset to the upcoming Alfa adapter, I wonder if it will also be impacted..
It's a shame these issues are occurring
Yes, it is. However, stuff happens. This stuff will be fixed. We have to remember that OpenWRT is designed for dedicated wireless routers and the Pi4B is not a wireless router, it is a general purpose computing device. We also have to remember that this edition of OpenWRT had some rather big changes. We are on the bleeding edge of the new OpenWRT distro. We are only the bleeding edge of the mt7921au chip and we are on the bleeding edge of the mt7921u driver. All problems should settle down over the next few months.
The 951AX & 953AX have a similar chipset to the upcoming Alfa adapter, I wonder if it will also be impacted.
That is a good question. I don't have the answer.
Eh, maybe I worded that poorly. No blame, just general disappointment. Making good things takes time. It's great that there's more than 1 person troubleshooting it.
Maybe if the Alfa adapter is impacted it could put more eyes on obtaining a solution.
I certainly was not expecting the Pi4B version of OpenWRT to be in this bad of shape. I don't see the mt7921u driver as the problem as it is working fine on my router. Something I have noticed when I stop by the OpenWRT forums is not much traffic by Pi users. I have to wonder if the Pi versions get much testing.
I like to use my Pi4B as an AP but I use my own guide which uses hostapd.
I tried running mt7921au on a ryzen system and on two routers (ipq40xx/armv7l and mt7621a/mips). All on OpenWrt with Linux 5.15.
Those worked fine, however on my intel laptop I got some issues with AP mode. Yup, we are really on the bleeding edge. This will take some time to settle down...
@ayyyuki1 @amisix
Those worked fine, however on my intel laptop I got some issues with AP mode. Yup, we are really on the bleeding edge. This will take some time to settle down...
Agree. I was pondering the best way to make a little progress with the Pi4B since amisix is trying to test on a Pi4B. I have an idea. I'm throwing together a simply guide to compiling kernel v6.0 on standard 64 bit RasPiOS installation. I can see a couple of other things we could test as well. The reason for this is that the 5.15 kernel in the standard RasPioS distro does not have the mt7921u driver yet. Okay, yes, still bleeding edge but could help with what we are trying to do.
$ uname -a Linux RasPi4B 6.0.0-rc6-g8fc36980e861 #1 SMP PREEMPT Thu Sep 22 22:27:59 CDT 2022 aarch64 GNU/Linux
You also need to upgrade the 3 firmware files.
My Pi4B is running kernel 6.0.
I'm throwing together a simply guide to compiling kernel v6.0 on standard 64 bit RasPiOS installation.
Please direct me to it when available and I will follow it. Thanks
Building the 64 bit RasPiOS kernel on the Pi3, Pi3+, Pi4, 400, Zero 2 W, and Raspberry Pi Compute Modules 3, 3+ and 4
Note: Compiling the kernel on a RasPi can take a long time.
- Install the latest 64 bit version of Raspberry Pi OS on supported media. Boot your Raspberry Pi, log in, configure the RasPiOS, reboot and ensure you’re connected to the internet to give you access to the sources.
- Install Git and the build dependencies:
$ sudo apt install git bc bison flex libssl-dev make libncurses5-dev
Note: libncurses5-dev is required for menuconfig (not used in this guide yet.).
- Download the sources:
Note: change "rpi-6.0.y" to the branch you want in the command below.
$ git clone --depth=1 --branch rpi-6.0.y https://github.com/raspberrypi/linux
Note: Omitting --depth=1 will download the entire repository, including the full history of all branches, but this takes much longer and occupies much more storage.
Refer to the original GitHub repository for information about the available branches.
https://github.com/raspberrypi/linux
- Configure the kernel; as well as the default configuration, you may wish to configure your kernel in more detail or apply patches from another source, to add or remove required functionality.
If you want to apply the Default Configuration: (I'll add options later.)
Prepare the default configuration by running the following commands
$ cd linux $ KERNEL=kernel8 $ make bcm2711_defconfig
- Building the Kernel
Build and install the kernel, modules, and Device Tree blobs; this step can take a long time depending on the Raspberry Pi model in use.
For the 64-bit kernel:
$ make -j4 Image.gz modules dtbs $ sudo make modules_install $ sudo cp arch/arm64/boot/dts/broadcom/.dtb /boot/ $ sudo cp arch/arm64/boot/dts/overlays/.dtb* /boot/overlays/ $ sudo cp arch/arm64/boot/dts/overlays/README /boot/overlays/
If KERNEL was not set above, set it now: $ KERNEL=kernel8
$ sudo cp arch/arm64/boot/Image.gz /boot/$KERNEL.img
Reboot. Your Raspberry Pi should be running your freshly-compiled kernel!
Let me know how it goes.
@amisix
After setting up the new flash and update of the 64 bit RasPiOS, I noticed Chromium running like honey on a cold winter day. The fix:
Settings > System > Use hardware acceleration when available
Turn it off!
Oh, and the RasPiOS does need the 3 firmware files for the mt7921au updated. Remember that I have a checklist in the Main Menu.
Cheers
@amisix
Heads up. New firmware files as of less than 24 hours ago:
525870 Sep 24 00:55 BT_RAM_CODE_MT7961_1_2_hdr.bin 92192 Sep 24 00:49 WIFI_MT7961_patch_mcu_1_2_hdr.bin 716404 Sep 24 00:54 WIFI_RAM_CODE_MT7961_1.bin
Status update: My Pi4B now shows the below wifi interface using the CF-951AX adapter. RasPiOS is updated to kernel 6.0. The hot new firmware has been installed. The mt7921u driver is working well.
$ iw dev
phy#0
Interface wlan0
ifindex 3
wdev 0x1
addr e0:e1:a9:35:c5:1f
type managed
txpower 3.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 0 0 0 0 0 0 0
What I am thinking about doing is working this until I have a tri-band wifi router or AP. Yes, 3 usb wifi adapters on the Pi4B. What are the issues we are likely to see:
- I suspect we will have to download and compile a new hostapd to make sure everything we need is turned on.
- I suspect we will have to download and compile a new wpa_supplicant to make sure everything we need is turned.
This could be a cool project. Should I start a new issue dedicated to this project?
Step 5. $ make -j4 Image.gz modules dtbs
Produces this error: *** No rule to make target 'Image.gz'. Stop.
What am I doing incorrectly?
Edit: Nevermind. When I printed out the instructions the following lines were cut off. I am able to proceed. $ cd linux $ KERNEL=kernel8 $ make bcm2711_defconfig
got my CF-951AX, and put it to a x86 OpenWRT, and load newest firmware, and try to get to AP mode.
2.4 GHz band AP mode can bring up interface but client never see it, 5Ghz band AP mode client will immediately drop connection after authenticated
very strange
Wiphy phy0
wiphy index: 0
max # scan SSIDs: 4
max scan IEs length: 482 bytes
max # sched scan SSIDs: 10
max # match sets: 16
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports AP-side u-APSD.
Device supports T-DLS.
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP-128 (00-0f-ac:4)
* CCMP-256 (00-0f-ac:10)
* GCMP-128 (00-0f-ac:8)
* GCMP-256 (00-0f-ac:9)
* CMAC (00-0f-ac:6)
* CMAC-256 (00-0f-ac:13)
* GMAC-128 (00-0f-ac:11)
* GMAC-256 (00-0f-ac:12)
Available Antennas: TX 0x3 RX 0x3
Configured Antennas: TX 0x3 RX 0x3
Supported interface modes:
* managed
* AP
* AP/VLAN
* monitor
Band 1:
Capabilities: 0x9ff
RX LDPC
HT20/HT40
SM Power Save disabled
RX Greenfield
RX HT20 SGI
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 7935 bytes
No DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: No restriction (0x00)
HT TX/RX MCS rate indexes supported: 0-15
HE Iftypes: managed
HE MAC Capabilities (0x08011a000040):
+HTC HE Supported
Trigger Frame MAC Padding Duration: 2
OM Control
Maximum A-MPDU Length Exponent: 3
A-MSDU in A-MPDU
HE PHY Capabilities: (0x2270ce120dc0b306423f00):
HE40/2.4GHz
242 tone RUs/2.4GHz
Device Class: 1
LDPC Coding in Payload
HE SU PPDU with 1x HE-LTF and 0.8us GI
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
Full Bandwidth UL MU-MIMO
Partial Bandwidth UL MU-MIMO
DCM Max Constellation: 2
DCM Max Constellation Rx: 2
SU Beamformee
Beamformee STS <= 80Mhz: 3
Ng = 16 SU Feedback
Ng = 16 MU Feedback
Codebook Size SU Feedback
Codebook Size MU Feedback
Triggered CQI Feedback
Partial Bandwidth Extended Range
PPE Threshold Present
Power Boost Factor ar
HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
20MHz in 40MHz HE PPDU 2.4GHz
DCM Max BW: 1
Longer Than 16HE SIG-B OFDM Symbols
Non-Triggered CQI Feedback
TX 1024-QAM
RX 1024-QAM
RX Full BW SU Using HE MU PPDU with Compression SIGB
RX Full BW SU Using HE MU PPDU with Non-Compression SIGB
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07
HE Iftypes: AP
HE MAC Capabilities (0x00011a081044):
+HTC HE Supported
BSR
OM Control
Maximum A-MPDU Length Exponent: 3
BQR
A-MSDU in A-MPDU
OM Control UL MU Data Disable RX
HE PHY Capabilities: (0x0220ce120000a000000c00):
HE40/2.4GHz
LDPC Coding in Payload
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
Full Bandwidth UL MU-MIMO
Partial Bandwidth UL MU-MIMO
DCM Max Constellation: 2
DCM Max Constellation Rx: 2
Partial Bandwidth Extended Range
PPE Threshold Present
TX 1024-QAM
RX 1024-QAM
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07
Bitrates (non-HT):
* 1.0 Mbps (short preamble supported)
* 2.0 Mbps (short preamble supported)
* 5.5 Mbps (short preamble supported)
* 11.0 Mbps (short preamble supported)
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 2412 MHz [1] (30.0 dBm)
* 2417 MHz [2] (30.0 dBm)
* 2422 MHz [3] (30.0 dBm)
* 2427 MHz [4] (30.0 dBm)
* 2432 MHz [5] (30.0 dBm)
* 2437 MHz [6] (30.0 dBm)
* 2442 MHz [7] (30.0 dBm)
* 2447 MHz [8] (30.0 dBm)
* 2452 MHz [9] (30.0 dBm)
* 2457 MHz [10] (30.0 dBm)
* 2462 MHz [11] (30.0 dBm)
* 2467 MHz [12] (30.0 dBm)
* 2472 MHz [13] (30.0 dBm)
* 2484 MHz [14] (disabled)
Band 2:
Capabilities: 0x9ff
RX LDPC
HT20/HT40
SM Power Save disabled
RX Greenfield
RX HT20 SGI
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 7935 bytes
No DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: No restriction (0x00)
HT TX/RX MCS rate indexes supported: 0-15
VHT Capabilities (0x339071b2):
Max MPDU length: 11454
Supported Channel Width: neither 160 nor 80+80
RX LDPC
short GI (80 MHz)
TX STBC
SU Beamformee
MU Beamformee
RX antenna pattern consistency
TX antenna pattern consistency
VHT RX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT RX highest supported: 0 Mbps
VHT TX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT TX highest supported: 0 Mbps
HE Iftypes: managed
HE MAC Capabilities (0x08011a000040):
+HTC HE Supported
Trigger Frame MAC Padding Duration: 2
OM Control
Maximum A-MPDU Length Exponent: 3
A-MSDU in A-MPDU
HE PHY Capabilities: (0x4470ce120dc0b306423f00):
HE40/HE80/5GHz
242 tone RUs/5GHz
Device Class: 1
LDPC Coding in Payload
HE SU PPDU with 1x HE-LTF and 0.8us GI
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
Full Bandwidth UL MU-MIMO
Partial Bandwidth UL MU-MIMO
DCM Max Constellation: 2
DCM Max Constellation Rx: 2
SU Beamformee
Beamformee STS <= 80Mhz: 3
Ng = 16 SU Feedback
Ng = 16 MU Feedback
Codebook Size SU Feedback
Codebook Size MU Feedback
Triggered CQI Feedback
Partial Bandwidth Extended Range
PPE Threshold Present
Power Boost Factor ar
HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
20MHz in 40MHz HE PPDU 2.4GHz
DCM Max BW: 1
Longer Than 16HE SIG-B OFDM Symbols
Non-Triggered CQI Feedback
TX 1024-QAM
RX 1024-QAM
RX Full BW SU Using HE MU PPDU with Compression SIGB
RX Full BW SU Using HE MU PPDU with Non-Compression SIGB
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07
HE Iftypes: AP
HE MAC Capabilities (0x00011a081044):
+HTC HE Supported
BSR
OM Control
Maximum A-MPDU Length Exponent: 3
BQR
A-MSDU in A-MPDU
OM Control UL MU Data Disable RX
HE PHY Capabilities: (0x0420ce120000a000000c00):
HE40/HE80/5GHz
LDPC Coding in Payload
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
Full Bandwidth UL MU-MIMO
Partial Bandwidth UL MU-MIMO
DCM Max Constellation: 2
DCM Max Constellation Rx: 2
Partial Bandwidth Extended Range
PPE Threshold Present
TX 1024-QAM
RX 1024-QAM
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07
Bitrates (non-HT):
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 5180 MHz [36] (23.0 dBm)
* 5200 MHz [40] (23.0 dBm)
* 5220 MHz [44] (23.0 dBm)
* 5240 MHz [48] (23.0 dBm)
* 5260 MHz [52] (20.0 dBm) (radar detection)
* 5280 MHz [56] (20.0 dBm) (radar detection)
* 5300 MHz [60] (20.0 dBm) (radar detection)
* 5320 MHz [64] (20.0 dBm) (radar detection)
* 5500 MHz [100] (27.0 dBm) (radar detection)
* 5520 MHz [104] (27.0 dBm) (radar detection)
* 5540 MHz [108] (27.0 dBm) (radar detection)
* 5560 MHz [112] (27.0 dBm) (radar detection)
* 5580 MHz [116] (27.0 dBm) (radar detection)
* 5600 MHz [120] (disabled)
* 5620 MHz [124] (disabled)
* 5640 MHz [128] (disabled)
* 5660 MHz [132] (27.0 dBm) (radar detection)
* 5680 MHz [136] (27.0 dBm) (radar detection)
* 5700 MHz [140] (27.0 dBm) (radar detection)
* 5720 MHz [144] (27.0 dBm) (radar detection)
* 5745 MHz [149] (30.0 dBm)
* 5765 MHz [153] (30.0 dBm)
* 5785 MHz [157] (30.0 dBm)
* 5805 MHz [161] (30.0 dBm)
* 5825 MHz [165] (30.0 dBm)
* 5845 MHz [169] (disabled)
* 5865 MHz [173] (disabled)
Band 4:
HE Iftypes: managed
HE MAC Capabilities (0x08011a000040):
+HTC HE Supported
Trigger Frame MAC Padding Duration: 2
OM Control
Maximum A-MPDU Length Exponent: 3
A-MSDU in A-MPDU
HE PHY Capabilities: (0x4470ce120dc0b306423f00):
HE40/HE80/5GHz
242 tone RUs/5GHz
Device Class: 1
LDPC Coding in Payload
HE SU PPDU with 1x HE-LTF and 0.8us GI
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
Full Bandwidth UL MU-MIMO
Partial Bandwidth UL MU-MIMO
DCM Max Constellation: 2
DCM Max Constellation Rx: 2
SU Beamformee
Beamformee STS <= 80Mhz: 3
Ng = 16 SU Feedback
Ng = 16 MU Feedback
Codebook Size SU Feedback
Codebook Size MU Feedback
Triggered CQI Feedback
Partial Bandwidth Extended Range
PPE Threshold Present
Power Boost Factor ar
HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
20MHz in 40MHz HE PPDU 2.4GHz
DCM Max BW: 1
Longer Than 16HE SIG-B OFDM Symbols
Non-Triggered CQI Feedback
TX 1024-QAM
RX 1024-QAM
RX Full BW SU Using HE MU PPDU with Compression SIGB
RX Full BW SU Using HE MU PPDU with Non-Compression SIGB
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07
HE Iftypes: AP
HE MAC Capabilities (0x00011a081044):
+HTC HE Supported
BSR
OM Control
Maximum A-MPDU Length Exponent: 3
BQR
A-MSDU in A-MPDU
OM Control UL MU Data Disable RX
HE PHY Capabilities: (0x0420ce120000a000000c00):
HE40/HE80/5GHz
LDPC Coding in Payload
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
Full Bandwidth UL MU-MIMO
Partial Bandwidth UL MU-MIMO
DCM Max Constellation: 2
DCM Max Constellation Rx: 2
Partial Bandwidth Extended Range
PPE Threshold Present
TX 1024-QAM
RX 1024-QAM
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07
Bitrates (non-HT):
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 5955 MHz [1] (24.0 dBm)
* 5975 MHz [5] (24.0 dBm)
* 5995 MHz [9] (24.0 dBm)
* 6015 MHz [13] (24.0 dBm)
* 6035 MHz [17] (24.0 dBm)
* 6055 MHz [21] (24.0 dBm)
* 6075 MHz [25] (24.0 dBm)
* 6095 MHz [29] (24.0 dBm)
* 6115 MHz [33] (24.0 dBm)
* 6135 MHz [37] (24.0 dBm)
* 6155 MHz [41] (24.0 dBm)
* 6175 MHz [45] (24.0 dBm)
* 6195 MHz [49] (24.0 dBm)
* 6215 MHz [53] (24.0 dBm)
* 6235 MHz [57] (24.0 dBm)
* 6255 MHz [61] (24.0 dBm)
* 6275 MHz [65] (24.0 dBm)
* 6295 MHz [69] (24.0 dBm)
* 6315 MHz [73] (24.0 dBm)
* 6335 MHz [77] (24.0 dBm)
* 6355 MHz [81] (24.0 dBm)
* 6375 MHz [85] (24.0 dBm)
* 6395 MHz [89] (24.0 dBm)
* 6415 MHz [93] (24.0 dBm)
* 6435 MHz [97] (disabled)
* 6455 MHz [101] (disabled)
* 6475 MHz [105] (disabled)
* 6495 MHz [109] (disabled)
* 6515 MHz [113] (disabled)
* 6535 MHz [117] (disabled)
* 6555 MHz [121] (disabled)
* 6575 MHz [125] (disabled)
* 6595 MHz [129] (disabled)
* 6615 MHz [133] (disabled)
* 6635 MHz [137] (disabled)
* 6655 MHz [141] (disabled)
* 6675 MHz [145] (disabled)
* 6695 MHz [149] (disabled)
* 6715 MHz [153] (disabled)
* 6735 MHz [157] (disabled)
* 6755 MHz [161] (disabled)
* 6775 MHz [165] (disabled)
* 6795 MHz [169] (disabled)
* 6815 MHz [173] (disabled)
* 6835 MHz [177] (disabled)
* 6855 MHz [181] (disabled)
* 6875 MHz [185] (disabled)
* 6895 MHz [189] (disabled)
* 6915 MHz [193] (disabled)
* 6935 MHz [197] (disabled)
* 6955 MHz [201] (disabled)
* 6975 MHz [205] (disabled)
* 6995 MHz [209] (disabled)
* 7015 MHz [213] (disabled)
* 7035 MHz [217] (disabled)
* 7055 MHz [221] (disabled)
* 7075 MHz [225] (disabled)
* 7095 MHz [229] (disabled)
* 7115 MHz [233] (disabled)
Supported commands:
* new_interface
* set_interface
* new_key
* start_ap
* new_station
* new_mpath
* set_mesh_config
* set_bss
* authenticate
* associate
* deauthenticate
* disassociate
* join_ibss
* join_mesh
* remain_on_channel
* set_tx_bitrate_mask
* frame
* frame_wait_cancel
* set_wiphy_netns
* set_channel
* tdls_mgmt
* tdls_oper
* start_sched_scan
* probe_client
* set_noack_map
* register_beacons
* start_p2p_device
* set_mcast_rate
* connect
* disconnect
* channel_switch
* set_qos_map
* set_multicast_to_unicast
* set_sar_specs
WoWLAN support:
* wake up on disconnect
* wake up on magic packet
* wake up on pattern match, up to 1 patterns of 1-128 bytes,
maximum packet offset 0 bytes
* can do GTK rekeying
* wake up on network detection, up to 10 match sets
software interface modes (can always be added):
* AP/VLAN
* monitor
valid interface combinations:
* #{ managed } <= 4, #{ AP } <= 1,
total <= 4, #channels <= 1, STA/AP BI must match
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
Device supports TX status socket option.
Device supports HT-IBSS.
Device supports SAE with AUTHENTICATE command
Device supports scan flush.
Device supports per-vif TX power setting
Driver supports full state transitions for AP/GO clients
Driver supports a userspace MPM
Device supports active monitor (which will ACK incoming frames)
Device supports configuring vdev MAC-addr on create.
Device supports randomizing MAC-addr in scans.
Device supports randomizing MAC-addr in sched scans.
max # scan plans: 1
max scan plan interval: 65535
max scan plan iterations: 0
Supported TX frame types:
* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
* IBSS: 0x40 0xb0 0xc0 0xd0
* managed: 0x40 0xb0 0xd0
* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* mesh point: 0xb0 0xc0 0xd0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* P2P-device: 0x40 0xd0
Supported extended features:
* [ RRM ]: RRM
* [ SET_SCAN_DWELL ]: scan dwell setting
* [ BEACON_RATE_LEGACY ]: legacy beacon rate setting
* [ BEACON_RATE_HT ]: HT beacon rate setting
* [ BEACON_RATE_VHT ]: VHT beacon rate setting
* [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
* [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
* [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
* [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
* [ AIRTIME_FAIRNESS ]: airtime fairness scheduling
* [ AQL ]: Airtime Queue Limits (AQL)
* [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
* [ SCAN_FREQ_KHZ ]: scan on kHz frequency support
* [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support
root@OpenWrt:~# iw dev
phy#0
Interface wlan0
ifindex 6
wdev 0x3
addr e0:e1:a9:36:68:6d
ssid CP_EAP2
type AP
channel 36 (5180 MHz), width: 40 MHz, center1: 5190 MHz
txpower 3.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 18 0 0 0 0 1712 20
Hi @copyliu
Strange is what we do around here.
Try limiting both radios to WPA2 AES. Make sure the country code is set for both radios. It should not matter for 2.4 but will for 5. Are you using AC or AX? If AX, try AC for now and see if it helps.
Do you have other wifi radios in the box?
Did you have the adapter in a usb3 port when you booted the os the first time as a new burn?
Luci is not 100% good with WiFi 6 yet and is a no-go with WiFi 6e so I am mostly only using ssh to change wireless setting instead of Luci. This will change with time but for now...
@morrownr
I can see only 1 radio on my openWRT, and country code is set. I also set it to open network(no encrypt) but no luck, 5G client immediately drop after connected,
Take a look at both log files after a reboot.
Status > System log
Are you seeing any ERRORs or WARNs or anything that looks wrong?
I have no experience with OpenWRT on x86. only on ARM so I have no background of where bugs for that platform may be.
from logread
Wed Nov 9 17:44:04 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Wed Nov 9 17:44:04 2022 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Wed Nov 9 17:44:04 2022 kern.info kernel: [ 4028.313618] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Wed Nov 9 17:44:04 2022 daemon.notice hostapd: wlan0: interface state COUNTRY_UPDATE->ENABLED
Wed Nov 9 17:44:04 2022 daemon.notice hostapd: wlan0: AP-ENABLED
Wed Nov 9 17:44:05 2022 daemon.notice netifd: Wireless device 'radio0' is now up
Wed Nov 9 17:44:05 2022 daemon.notice netifd: Network device 'wlan0' link is up
Wed Nov 9 17:44:05 2022 daemon.notice netifd: Interface 'tempwlan' is enabled
Wed Nov 9 17:44:05 2022 daemon.notice netifd: Interface 'tempwlan' is setting up now
Wed Nov 9 17:44:05 2022 daemon.notice netifd: Interface 'tempwlan' is now up
Wed Nov 9 17:44:05 2022 daemon.notice netifd: Interface 'tempwlan' has link connectivity
Wed Nov 9 17:44:42 2022 daemon.debug hostapd: wlan0: STA 64:**:**:**:**:23 IEEE 802.11: authentication OK (open system)
Wed Nov 9 17:44:42 2022 daemon.debug hostapd: wlan0: STA 64:**:**:**:**:23 MLME: MLME-AUTHENTICATE.indication(64:**:**:**:**:23, OPEN_SYSTEM)
Wed Nov 9 17:44:42 2022 daemon.debug hostapd: wlan0: STA 64:**:**:**:**:23 MLME: MLME-DELETEKEYS.request(64:**:**:**:**:23)
Wed Nov 9 17:44:42 2022 daemon.info hostapd: wlan0: STA 64:**:**:**:**:23 IEEE 802.11: authenticated
Wed Nov 9 17:44:42 2022 daemon.debug hostapd: wlan0: STA 64:**:**:**:**:23 IEEE 802.11: association OK (aid 1)
Wed Nov 9 17:44:42 2022 daemon.info hostapd: wlan0: STA 64:**:**:**:**:23 IEEE 802.11: associated (aid 1)
Wed Nov 9 17:44:42 2022 daemon.notice hostapd: wlan0: AP-STA-CONNECTED 64:**:**:**:**:23
Wed Nov 9 17:44:42 2022 daemon.debug hostapd: wlan0: STA 64:**:**:**:**:23 MLME: MLME-ASSOCIATE.indication(64:**:**:**:**:23)
Wed Nov 9 17:44:42 2022 daemon.debug hostapd: wlan0: STA 64:**:**:**:**:23 MLME: MLME-DELETEKEYS.request(64:**:**:**:**:23)
Wed Nov 9 17:44:42 2022 daemon.debug hostapd: wlan0: STA 64:**:**:**:**:23 IEEE 802.11: binding station to interface 'wlan0'
Wed Nov 9 17:44:42 2022 daemon.info hostapd: wlan0: STA 64:**:**:**:**:23 RADIUS: starting accounting session 5384E144CD573907
Wed Nov 9 17:44:45 2022 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED 64:**:**:**:**:23
Wed Nov 9 17:44:45 2022 daemon.debug hostapd: wlan0: STA 64:**:**:**:**:23 IEEE 802.11: deauthenticated
it looks nothing wrong but client just drop connection
I took at look at my log file using this same adapter and I don't see the following line:
4:42 2022 daemon.info hostapd: wlan0: STA 64:::::23 RADIUS: starting accounting session 5384E144CD573907
Could it be a security related setting?
I think I was misconfig something before, and now I can bring up AP with a separate bridge, now I try to bridge to my main bridge (I hope my OpenWRT machine run as a bridged AP) then got kernel panic
[ 91.643844] skbuff: skb_under_panic: text:ffffffffa02faeb6 len:110 put:4 head:ffff888002f23400 data:ffff888002f233fc tail:0x6a end:0xc0 dev:
wlan0
[ 91.648791] ------------[ cut here ]------------
[ 91.650630] Kernel BUG at 0xffffffff81a29fae [verbose debug info unavailable]
[ 91.653866] invalid opcode: 0000 [#1] SMP PTI
[ 91.655389] CPU: 6 PID: 2751 Comm: mt76-tx phy0 Not tainted 5.10.146 #0
[ 91.657283] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014
[ 91.659646] RIP: 0010:0xffffffff81a29fae
[ 91.660784] Code: 48 70 57 8b b8 b8 00 00 00 57 8b b8 b4 00 00 00 57 48 c7 c7 a8 05 1a 82 ff b0 c8 00 00 00 4c 8b 88 c0 00 00 00 e8 a4 08 fc
ff <0f> 0b 55 48 c7 c1 00 13 0c 82 48 89 e5 48 8b 55 08 e8 a0 ff ff ff
[ 91.667137] RSP: 0018:ffffc9000223bb20 EFLAGS: 00010286
[ 91.669113] RAX: 0000000000000085 RBX: ffff8880035e4b40 RCX: 0000000000000000
[ 91.671657] RDX: ffff88800f9a23e0 RSI: ffff88800f99ca20 RDI: ffff88800f99ca20
[ 91.674280] RBP: ffffc9000223bb40 R08: 0000000000000000 R09: ffffc9000223b918
[ 91.676693] R10: ffffc9000223b910 R11: ffffffff824aa9c8 R12: ffff888004dcb200
[ 91.678818] R13: ffff888004bd27c0 R14: 0000000000000002 R15: 000000000000006a
[ 91.681217] FS: 0000000000000000(0000) GS:ffff88800f980000(0000) knlGS:0000000000000000
[ 91.684188] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 91.686940] CR2: 00007f8007fc2000 CR3: 0000000005984006 CR4: 0000000000370ee0
[ 91.689828] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 91.692839] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 91.696137] Call Trace:
[ 91.697232] 0xffffffff81a29fc4
[ 91.699295] 0xffffffffa02faeb6 [mt7921_common@00000000502f0ab8+0xc000]
[ 91.702279] 0xffffffffa02f4102 [mt76_usb@000000007320743a+0x5000]
[ 91.704717] 0xffffffffa02e3233 [mt76@00000000674e50eb+0xb000]
[ 91.707156] 0xffffffffa02e4069 [mt76@00000000674e50eb+0xb000]
[ 91.709429] 0xffffffffa02e42f9 [mt76@00000000674e50eb+0xb000]
[ 91.712001] 0xffffffffa02ff835 [mt7921_common@00000000502f0ab8+0xc000]
[ 91.715715] 0xffffffffa02de4d5 [mt76@00000000674e50eb+0xb000]
[ 91.718190] 0xffffffff810d8223
[ 91.719482] ? 0xffffffffa02de460 [mt76@00000000674e50eb+0xb000]
[ 91.721609] ? 0xffffffff810d8100
[ 91.723116] 0xffffffff81003c1f
[ 91.724252] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet pppox ppp_generic nft_r
eject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft
also try with debian testing
[ 126.456794] mt7921u 2-4:1.3: firmware: direct-loading firmware mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin
[ 126.456847] mt7921u 2-4:1.3: HW/SW Version: 0x8a108a10, Build Time: 20220908210919a
[ 126.476462] mt7921u 2-4:1.3: firmware: direct-loading firmware mediatek/WIFI_RAM_CODE_MT7961_1.bin
[ 126.476508] mt7921u 2-4:1.3: WM Firmware Version: ____010000, Build Time: 20220908211021
[ 128.133306] mt7921u 2-4:1.3 wlxe0e1a936686d: renamed from wlan0
[ 180.651960] br0: port 2(wlxe0e1a936686d) entered blocking state
[ 180.651997] br0: port 2(wlxe0e1a936686d) entered disabled state
[ 180.652812] device wlxe0e1a936686d entered promiscuous mode
[ 181.227902] IPv6: ADDRCONF(NETDEV_CHANGE): wlxe0e1a936686d: link becomes ready
[ 181.228036] br0: port 2(wlxe0e1a936686d) entered blocking state
[ 181.228058] br0: port 2(wlxe0e1a936686d) entered forwarding state
[ 186.305237] skbuff: skb_under_panic: text:ffffffffc0cbd4c5 len:128 put:4 head:ffff9caaf4292000 data:ffff9caaf4291ffc tail:0x7c end:0xc0 dev:wlxe0e1a936686d
[ 186.305366] ------------[ cut here ]------------
[ 186.305382] kernel BUG at net/core/skbuff.c:120!
[ 186.305412] invalid opcode: 0000 [#1] PREEMPT SMP PTI
[ 186.305430] CPU: 5 PID: 2689 Comm: mt76-tx phy1 Kdump: loaded Not tainted 6.0.0-2-amd64 #1 Debian 6.0.5-1
[ 186.305455] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
[ 186.305475] RIP: 0010:skb_panic+0x48/0x4a
[ 186.305507] Code: 4f 70 50 8b 87 c0 00 00 00 50 8b 87 bc 00 00 00 50 ff b7 d0 00 00 00 4c 8b 8f c8 00 00 00 48 c7 c7 a8 8d 7e bd e8 7e ab fc ff <0f> 0b 48 8b 14 24 48 c7 c1 a0 75 52 bd e8 a6 ff ff ff 48 8b 14 24
[ 186.305548] RSP: 0018:ffffa9918095fb70 EFLAGS: 00010246
[ 186.305563] RAX: 000000000000008f RBX: ffff9caafcbcd100 RCX: 0000000000000000
[ 186.305580] RDX: 0000000000000000 RSI: ffffffffbd77ed12 RDI: 00000000ffffffff
[ 186.305602] RBP: ffff9caaf4342c90 R08: 0000000000000000 R09: ffffa9918095fa08
[ 186.305618] R10: 0000000000000003 R11: ffffffffbded2128 R12: ffff9caac7fb2060
[ 186.305632] R13: 0000000000000002 R14: 000000000000007c R15: 0000000000000002
[ 186.306258] FS: 0000000000000000(0000) GS:ffff9caafed40000(0000) knlGS:0000000000000000
[ 186.307201] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 186.307891] CR2: 00007f849da13a28 CR3: 00000000090b2003 CR4: 0000000000370ee0
[ 186.308539] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 186.309149] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 186.309556] Call Trace:
[ 186.309978] <TASK>
[ 186.310389] skb_push.cold+0x10/0x10
[ 186.311190] mt7921_usb_sdio_tx_prepare_skb+0x105/0x180 [mt7921_common]
[ 186.311817] mt76u_tx_queue_skb+0x87/0x1d0 [mt76_usb]
[ 186.312591] __mt76_tx_queue_skb+0x41/0xa0 [mt76]
[ 186.313314] mt76_txq_schedule.part.0+0x1d3/0x3e0 [mt76]
[ 186.314017] ? mt76_get_min_avg_rssi+0x130/0x130 [mt76]
[ 186.314685] mt76_txq_schedule_all+0x19/0x30 [mt76]
[ 186.315373] mt7921_tx_worker+0x45/0xc0 [mt7921_common]
[ 186.316002] __mt76_worker_fn+0x49/0x80 [mt76]
[ 186.316590] kthread+0xe6/0x110
[ 186.317265] ? kthread_complete_and_exit+0x20/0x20
[ 186.317895] ret_from_fork+0x1f/0x30
[ 186.318468] </TASK>
[ 186.319009] Modules linked in: ccm bridge stp llc intel_rapl_msr intel_rapl_common intel_pmc_core_pltdrv intel_pmc_core kvm_intel kvm irqbypass ghash_clmulni_intel btusb btrtl btbcm btintel aesni_intel btmtk mt7921u crypto_simd cryptd mt7921_common rapl bluetooth mt76_connac_lib mt76_usb iTCO_wdt mt76 intel_pmc_bxt jitterentropy_rng iTCO_vendor_support pcspkr virtio_rng sha512_ssse3 mac80211 watchdog binfmt_misc sha512_generic rng_core virtio_balloon libarc4 ctr virtio_console drbg cfg80211 ansi_cprng ecdh_generic rfkill bochs ecc drm_vram_helper drm_ttm_helper ttm drm_kms_helper evdev button joydev sg serio_raw drm fuse efi_pstore configfs qemu_fw_cfg ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic dm_mod sd_mod hid_generic t10_pi usbhid hid crc64_rocksoft crc64 sr_mod crc_t10dif cdrom crct10dif_generic virtio_net ahci net_failover libahci xhci_pci virtio_scsi failover libata xhci_hcd crct10dif_pclmul crct10dif_common crc32_pclmul scsi_mod virtio_pci crc32c_intel
[ 186.319107] virtio_pci_legacy_dev usbcore virtio_pci_modern_dev i2c_i801 psmouse scsi_common i2c_smbus lpc_ich virtio usb_common virtio_ring