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

First Sighting: mt7925 m.2 card (WiFi 7) (be careful with mt7927) #431

Open
morrownr opened this issue May 9, 2024 · 64 comments
Open

First Sighting: mt7925 m.2 card (WiFi 7) (be careful with mt7927) #431

morrownr opened this issue May 9, 2024 · 64 comments

Comments

@morrownr
Copy link
Owner

morrownr commented May 9, 2024

There may be other cards with the mt7925 chipsets but this is the first one I have seen for sale:

https://zfishtek.com/index.php/product/mt7925-wireless-lan-card/

This is NOT a recommendation for the above product. What this message is about is to point out that the mt7925 chipsets are flowing to product makers. Cards almost always come to market before USB adapters. That is just the way it is so now that we see cards on the market, it probably means that adapters will be available soon. It is hard to say how soon but sometime this year is a reasonable expectation.

The driver for the mt7925 chipset has been in the Linux kernel since kernel 6.7.

Edit: Warning: Cards with the mt7927 chip are available as well but driver support for the mt7927 chip is not in the kernel yet.

If anyone gets a card with a mt7925 chipset, please give us a report.

@morrownr

@ilikenwf
Copy link

I found a few on aliexpress and have one coming to play with.

@morrownr
Copy link
Owner Author

Hi @ilikenwf

I found a few on aliexpress and have one coming to play with.

I am looking forward to your report. None of us out here in the real world know what kind of shape the mt7925 driver is in so any word would be appreciated.

Thanks

@ilikenwf
Copy link

I'm just taking a $30 risk because my QCNFA765 keeps having persistent bugs even despite the fixes and I'm kinda tired of it...I'll take dysfunctional wifi 7 with functional 6E over dysfunctional 6E...

@ilikenwf
Copy link

...and I'm sure once this chip is perfected the price will 2x-4x.

@morrownr morrownr changed the title First Sighting: mt7925 m.2 card (WiFi 7) First Sighting: mt7925 m.2 card (WiFi 7) (be careful with mt7927) May 16, 2024
@morrownr
Copy link
Owner Author

FYI: A user report indicates the mt7925 driver does not support the mt7927 chip that you may see. It would be wise to get cards with the mt7925 chip and not the mt7927 until we can sort this out.

@ilikenwf
Copy link

ilikenwf commented May 16, 2024

If that's the case I can attempt to help sort it or otherwise wait til it is - the linux wireless wiki suggests this chip is supported since kernel 6.7 though? I run Arch...so that's not an issue.

Come to think of it I'm not sure if this really counts as USB or not unless it's using the USB (saying bus here after feels redundant) through the E key slot on my board.

@ilikenwf
Copy link

ilikenwf commented May 16, 2024

Here is the one I have coming:

https://www.aliexpress.us/item/3256806768193339.html

Appears to be the 7925 so I spoke too soon. Haven't had my coffee yet.

@morrownr
Copy link
Owner Author

Haven't had my coffee yet.

I am working on my coffee. This is a coffee kind of day.

I am finding more info...see next msg.

@morrownr
Copy link
Owner Author

morrownr commented May 16, 2024

MT7925

Wi-Fi 7, WPA3, 2.4/5/6GHz, 4.5Gbps,
DBDC, BW 160MHz, 4K QAM, MLO,
BT 5.3 LE, MRC, MRU, HDT, 6 nm
FCC ID: RAS-MT7925B22M

MT7927

Wi-Fi 7, WPA3, 2.4/5/6GHz, 6.5Gbps,
DBDC, BW 320MHz, 4K QAM, MLO,
BT 5.3 LE, MRC, MRU, HDT, 6 nm
FCC ID: RAS-MT7927 • AMD RZ738

It appears that the only difference between the chips is that the mt7925 supports 160 Mhz channel width and the mt7927 supports 320 MHz channel width.

Indications are that the driver for the mt7927 chip has not been added to the kernel yet.

@ilikenwf
Copy link

ilikenwf commented May 16, 2024

I have not seen any mt7927s in my travels so far.

@morrownr
Copy link
Owner Author

@ilikenwf
Copy link

ilikenwf commented May 29, 2024

1b:00.0 Network controller: MEDIATEK Corp. Device 0717
	Subsystem: Foxconn International, Inc. Device e106
	Flags: bus master, fast devsel, latency 0, IRQ 236
	Memory at bfc00000 (64-bit, non-prefetchable) [size=2M]
	Memory at bfe00000 (64-bit, non-prefetchable) [size=32K]
	Capabilities: [80] Express Endpoint, IntMsgNum 0
	Capabilities: [e0] MSI: Enable+ Count=1/32 Maskable+ 64bit+
	Capabilities: [f8] Power Management version 3
	Capabilities: [100] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
	Capabilities: [108] Latency Tolerance Reporting
	Capabilities: [110] L1 PM Substates
	Capabilities: [200] Advanced Error Reporting
	Kernel driver in use: mt7925e
	Kernel modules: mt7925e

So far it just works...I don't have a 7 AP, though.

@morrownr
Copy link
Owner Author

Three words I like to hear... "it just works".

@ilikenwf
Copy link

There may be occasional issues with the buffer but that could also be openwrt or interference, or my router, so I have to narrow that down.

At times, if I have issues, I have to restart NetworkManager too, though - it doesn't like being shut off and then immediately back on.

@morrownr
Copy link
Owner Author

I have noticed a couple of mt7925 M.2 cards on Amazon US this week so I may grab one soon so I can test along with you.

We are talking about a new driver that includes code for a new generation of wireless so it will have bugs. I have been noticing patches going in. It isn't just the Mediatek WiFi 7 drivers but Intel, Qualcomm and Realtek as well. I still have no idea what Realtek's USB strategy is for WiFi 7. Since this site is primarily about USB WiFi, I watch it more closely and I can usually pick up some hints prior to product introduction but not with Realtek this time. Mediatek's driver support plan is well known as USB and PCIe support for WiFi 7 is in the mt7925u and mt7925e drivers that have been in the kernel since 6.7. I expect mt7927 support soon.

Keep us posted as you continue testing.

@patrakov
Copy link

patrakov commented Jun 2, 2024

So far it just works...

Please provide a definition of "works", i.e., what exactly has been tested. Client mode, or AP mode? Does WDS work? Can more than one SSID be created? Is the advertisement of the DBDC capability true?

@ilikenwf
Copy link

ilikenwf commented Jun 2, 2024

Well, I'm using it on a client device and so I haven't tried setting up a network on it, though if it weren't for my openwrt devices that would be a killer idea if it were slightly more reliable.

Right now, on kernel 6.9, I find that after running for 12-24 hours I eventually need to reboot to get it running properly. I'm assuming some kernel module issue or perhaps a buffer issue somewhere, but things get slow and then eventually despite having a valid IP, the connection becomes useless - not sure if due to latency/speed or if something else is happening. While I can restart the networking service or reset the card, only a real reboot seems to fix it.

I'm running Arch so sometime I could setup a test network, perhaps, and connect some random devices to it if I need to...I also should have thought to capture a dmesg log before my last reboot, but I'm still drinking my coffee...

@morrownr
Copy link
Owner Author

morrownr commented Jun 2, 2024

@ilikenwf

if it weren't for my openwrt devices that would be a killer idea if it were slightly more reliable...

I just checked and it appears the mt7925 driver is already in the current stable version of OpenWRT:

kmod-mt792x-usb

I think they named it that because it will cover the 7925 and 7927 chips as the 7927 code goes in.

What you seeing in the log?

$ sudo dmesg | grep mt7

I'm a little hesitant to jump all over making a bug report on this driver right now because 6.9 seems to have had some stack issues that need to be resolved before we blame individual drivers.

@ilikenwf
Copy link

ilikenwf commented Jun 2, 2024

[ 10.224161] mt7925e 0000:1b:00.0: ASIC revision: 79250000
[ 10.303401] mt7925e 0000:1b:00.0: HW/SW Version: 0x8a108a10, Build Time: 20231227093012a
[ 10.647100] mt7925e 0000:1b:00.0: WM Firmware Version: ____000000, Build Time: 20231227093232

@morrownr
Copy link
Owner Author

morrownr commented Jun 3, 2024

Well, that is clean. I'll see about getting my own little card soon so that I can play along.

@Muh87
Copy link

Muh87 commented Jun 7, 2024

Can anyone who has MT7925 share the output of "iw list" ?
I want to know if 160 MHz is allowed for AP mode .
Thanks in advance .

@morrownr
Copy link
Owner Author

morrownr commented Jun 7, 2024

@ilikenwf

Right now, on kernel 6.9, I find that after running for 12-24 hours I eventually need to reboot to get it running properly. I'm assuming some kernel module issue or perhaps a buffer issue somewhere, but things get slow and then eventually despite having a valid IP, the connection becomes useless - not sure if due to latency/speed or if something else is happening. While I can restart the networking service or reset the card, only a real reboot seems to fix it.

The stack is undergoing a lot of work at the moment so folks like you out there on the bleeding edge are helping figure out what needs to be fixed but I am curious in this case if turning off Scatter/Gather would help:

If the result of the following command is Y, then it is on:

grep [[:alnum:]] /sys/module/mt76_usb/parameters/*

To turn it off:

sudo -i
echo "options mt76_usb disable_usb_sg=1" >> /etc/modprobe.d/mt76_usb.conf
exit
sudo reboot

@patrakov
Copy link

patrakov commented Jun 7, 2024

@morrownr I think your previous comment is for a different card. There is no USB WiFi involved in @ilikenwf's setup.

@ilikenwf
Copy link

ilikenwf commented Jun 7, 2024

Yes, my card is PCIe

@morrownr
Copy link
Owner Author

morrownr commented Jun 7, 2024

Yes, my card is PCIe

Serious lack of coffee around here this morning. What was I thinking?

@dudez7
Copy link

dudez7 commented Jun 8, 2024

FYI @ A Quick Look at MSI's New Roamii Mesh Systems and WiFi 7 USB Dongle

""MSI was also showing off the BE6500 WiFi 7 USB adapter which is a tri-band dongle and the first of its kind that we've seen. It supports speeds of up to 2880 Mbps on the 6 and 5 GHz bands and 688 Mbps on the 2.4 GHz band, assuming you have a suitable WiFi 7 router or access point. It also offers support for MLO and interestingly enough, it also has built in drives, which means you don't need to download drivers to get it up and running. Finally MSI is promising support for Windows 10 and 11, as well as Linux. So far Windows 10 has lacked proper support for WiFi 7 devices, so this is an interesting development.""

Guess it could be based on mt7925?

@morrownr
Copy link
Owner Author

morrownr commented Jun 8, 2024

Guess it could be based on mt7925?

Well, we only have two companies that produce usb wifi chips these days. It has to be either a Mediatek or Realtek chip. The details do appear to match the mt7925 but I have no details at all on what Realtek is up to regarding usb wifi. The fact that Linux support is mentioned by MSI could be a big hint that it is indeed the Mediatek chip.

I'll do some snooping around to see what I can find. I have already found the below link:

https://www.tp-link.com/us/home-networking/usb-adapter/archer-tbe400uh/

TP-Link using a Mediatek chip? Something just froze over if it is true.

@morrownr
Copy link
Owner Author

morrownr commented Jun 8, 2024

FYI: One thing I do know about Realtek and WiFi 7 support for Linux is that Realtek cannot use the same technology as their out-of-kernel drivers have used as there is code in the Linux kernel that will stop Linux wifi 7 drivers that are not fully compliant with modern standards. So things can't be business as usual concerning Realtek and usb wifi 7. They could add usb support to rtw89 but I have not seen any indications of that so far. My best guess right now is that Realtek has simply fallen way behind Mediatek with usb wifi on Linux and maybe on other platforms as well.

@morrownr
Copy link
Owner Author

Hi @joshschmelzle

Thanks for posting. What is your opinion of the chip/driver so far?

@Muh87
Copy link

Muh87 commented Jun 13, 2024

Thank you so much for the reply .
I see it supports 160 MHz as an access point , hopefully it would be possible to get 2400 MBPS when connected to it .

@morrownr
Copy link
Owner Author

I see it supports 160 MHz as an access point , hopefully it would be possible to get 2400 MBPS when connected to it .

I order an M.2 mt7925 card yesterday so I should have one soon. We'll see what speeds we get. My router is only WiFi 6 but it can push packets fairly well. For testing AP mode, my RasPi4B is setup and runs as a dual band AP but does not support M.2 so I'll have to figure out how to test AP mode.

@Muh87
Copy link

Muh87 commented Jun 13, 2024

what is the maximum bandwidth you could achieve with RasPi4B as AP mode ? were you ever able to surpass 1200 MBPS ?

@lmcarneiro
Copy link

lmcarneiro commented Jun 17, 2024

Hi everyone, I bought a Legion 9i and it came with the mt7927 card. I read in this repo that it's basically the same card as the mt7925 but has higher bandwidth. Should the mt7927 card work with the mt7925 driver? If not, is updating the driver to include support for mt7927 a big change? Sorry if this isn't the place to ask these questions, I just want to use my dumb laptop without attachments!

Also, if there's any diagnostics I can do to help out let me know.

@morrownr
Copy link
Owner Author

Hi @lmcarneiro

Should the mt7927 card work with the mt7925 driver?

Not yet. Support for the mt7927 has not been merged.

If not, is updating the driver to include support for mt7927 a big change?

It is something that Mediatek is going to have to do. Be patient.

Also, if there's any diagnostics I can do to help out let me know.

Just use a supported usb wifi adapter until the driver is available. It is like having a toy that you can't play with.

@morrownr
Copy link
Owner Author

My M.2 mt7925 arrived last week. I installed it in a Mini PC that I have. The distro is Ubuntu 24.04. The card came to life. Connection was uneventful. Use has been uneventful in managed mode. I do not have a WiFi 7 / 6 GHz capable AP yet so have not tested that. Nothing bad to report regarding wifi at this point.

Bluetooth, on the other hand, did not come up so I investigated. The firmware and driver were in place in Ubuntu 24.04. Further investigation led to the answer. The vid-pid for the bluetooth capability was simply not in the kernel yet but I found a patch that has already gone in so help is already on the way there. I have a PCIe card with the mt7922 chip and the bluetooth works perfectly with it so I would expect the same with the mt7925.

I will continue to monitor linux-wireless for patches that add mt7927 support. Hopefully that comes soon.

@morrownr

@patrakov
Copy link

Does 160 MHz channel width work? Do you have any speed test results?

@morrownr
Copy link
Owner Author

@patrakov

Does 160 MHz channel width work?

I can test that, I have a WiFi 6 dual band router that is capable of 160 MHz. It is currently offline. Give me a change to finish the testing that I am doing and I work on this.

Do you have any speed test results?

I just did a quick test with iperf3 with a WiFi 5 dual band router that can handle 80 MHz channel width. It showed 645 Mbps. That is what I would expect. I do have a PCIe card with the mt7922 chip that is in my main dev box that gives me over 1 Gbps with my WiFi 6 router so that is what I will expect from this mt7925 card... I'll get some results posted as able.

@morrownr
Copy link
Owner Author

@patrakov

Here is an initial test with WiFi 6, 160 MHz:

$ iperf3 -c 192.168.1.1
Connecting to host 192.168.1.1, port 5201
[  5] local 192.168.1.212 port 43230 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  99.5 MBytes   834 Mbits/sec    0    970 KBytes       
[  5]   1.00-2.00   sec   130 MBytes  1.09 Gbits/sec    0    970 KBytes       
[  5]   2.00-3.00   sec   127 MBytes  1.07 Gbits/sec    0    970 KBytes       
[  5]   3.00-4.00   sec   127 MBytes  1.06 Gbits/sec    0    970 KBytes       
[  5]   4.00-5.00   sec   130 MBytes  1.09 Gbits/sec    0    970 KBytes       
[  5]   5.00-6.00   sec   125 MBytes  1.05 Gbits/sec    0    970 KBytes       
[  5]   6.00-7.00   sec  66.2 MBytes   556 Mbits/sec    2    970 KBytes       
[  5]   7.00-8.00   sec  40.2 MBytes   338 Mbits/sec    3   1.41 KBytes       
[  5]   8.00-9.00   sec  39.5 MBytes   331 Mbits/sec    2   1.03 MBytes       
[  5]   9.00-10.00  sec  43.4 MBytes   364 Mbits/sec    2   1.06 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   928 MBytes   778 Mbits/sec    9             sender
[  5]   0.00-10.05  sec   925 MBytes   772 Mbits/sec                  receiver

It is not clear to me why we saw the drop in the last part of the test. I'll have to continue testing. It could be a result of a lot of things. What I do know is that the mt7925 driver is not perfect yet. It can't be because these modern WiFi 6 and 7 drivers are incredibly complex. It is mind bending to me. Like Dorthy once said to Todo, I don't think we are in Kansas anymore.

I think it was last week when I saw a series of 48 patches go through for this driver. I think it was mostly to add capability but I did not have time to investigate all 48 patches. So, for now, my testing shows solid stable managed mode performance on my WiFi 5 router. We did not get the performance I was looking for with the WiFi 6 router as I was expecting sustained performance above 1 Gbps.

I think it is reasonable most Linux users wanting WiFi 7 to expect the mt7925 driver to start solidifying by around time for this years LTS kernel which looks like it will be 6.12.

@morrownr
Copy link
Owner Author

morrownr commented Jul 4, 2024

Update:

I saw another large patch set for the mt7925 flow into linux-wireless yesterday. It consist of 29 patches and adds support for MLO. The addition of MLO support may signal that mt7927 support will be coming soon.

Testing:

I tested with Linux Mint 22 beta today. WiFi works, BT not yet. It appears that anything based on Ubuntu 24.04 should be good to go with the mt7925 chip. Will the recent large patches work their way back into Ubuntu's kernel 6.8? I do not know but there is a good change that it could happen. I'd say the lone patch to get BT going is a really high probability.

I'll forecast that any distro based on this year's LTS or later will be in really good shape with cards and adapters based on the mt7925 and mt7927 chips. It look like the LTS for this year will be 6.12 but I don't make that call so we will see.

@upsangel
Copy link

upsangel commented Jul 5, 2024

I got my MT7925 from taobao for about 15USD. Inserted into my N100 miniPC but nothing show up (lspci). Checked the M.2 slot only supports CNVI. I guess the MT7925 is a NGFF instead of CNVI?

@bjlockie
Copy link

bjlockie commented Jul 5, 2024

I think only Intel uses cnvi.
How do you know if an m2 slot only supports cnvi?
I have a laptop that has a cnvi Intel card that I want to replace with a mediatek.

@morrownr
Copy link
Owner Author

morrownr commented Jul 5, 2024

@bjlockie @upsangel

I don't have much experience with these little cards. What is the difference between cnvi and ngff?

@bjlockie
Copy link

bjlockie commented Jul 5, 2024

It is my understanding that Intel created CNvi so they could offload some of the processing from the M2 card to the CPU so they could make cheaper M2 cards.
Pretty stupid idea IMO. :-)

@morrownr
Copy link
Owner Author

morrownr commented Jul 5, 2024

so they could make cheaper M2 cards.

Ouch. Sounds like the Windows Modem thing from back in the 90's. I guess I was lucky that my Mini PC has a ngff slot and the mt7925 card I got is a ngff card. We really don't need this crap.

@upsangel
Copy link

upsangel commented Jul 6, 2024

How do you know if an m2 slot only supports cnvi? I have a laptop that has a cnvi Intel card that I want to replace with a mediatek.

I ask the manufacturer for a specs manual and found it says M.2 (cnvi)

I guess there's no way can tell from the appearance, and yes if it's an Intel CPU higher chance it's cnvi only. But I can't rule out no cnvi exists on AMD platform though.

@upsangel
Copy link

upsangel commented Jul 6, 2024

so they could make cheaper M2 cards.

Ouch. Sounds like the Windows Modem thing from back in the 90's. I guess I was lucky that my Mini PC has a ngff slot and the mt7925 card I got is a ngff card. We really don't need this crap.

Good on you! What platform is your mini pc? I hv ordered a minipcie to m.2m2 adapter hopefully it works.

@morrownr
Copy link
Owner Author

morrownr commented Jul 6, 2024

What platform is your mini pc?

AMD. It is a Beelink SER 5 Max 5800H. Been looking for a while. I am not a gamer and this thing is advertised as a game box but I figured I could detune it and I was able to detune it. That keeps the fans quiet. It came with a WiFi 6 Intel card. These days it can be somewhat hard to figure out what you are getting. A couple of years ago I got my wife a new laptop with Intel CPU and it came with a mt7921 chip card. Mediatek has an agreement with AMD so AMD rebrands and sells Mediatek based cards to computer makers.

I'm still evaluating the Mini PC so don't take what I did as a recommendation.

@upsangel
Copy link

upsangel commented Jul 6, 2024

AMD. It is a Beelink SER 5 Max 5800H

I got my N100 with 4 x 2.5GbE ports but no any WIFI. Did a quick research and find these:

WIFI7
M.2 NGFF: MT7925

WIFI6E
MINIPCIE: AX210 (MPE-AXE3000H)
M.2 CNVIO2: AX211
M.2 CNVIO2: AX411

Is MT7925 the most promising for AP mode on Linux? I saw some sources saying Intel's card AP mode is no hope.

@fs30000
Copy link

fs30000 commented Jul 6, 2024

Is MT7925 the most promising for AP mode on Linux? I saw some sources saying Intel's card AP mode is no hope.

Yeah, you can forget AP mode with intel cards. Only 2.4G works on them. Due to some legalilties, just google the kernel issues pages about it.

On my side, i'm battling to have this mt7925 working on a banana pi R4. Running debian instead of openwrt. I need a full linux system. I need to apply those recent MLO patches. Using this card while i don't catch of of those new wifi7 cards from sinovoip. Rare species... Hardly seen around :)

@upsangel
Copy link

upsangel commented Jul 6, 2024

On my side, i'm battling to have this mt7925 working on a banana pi R4.

Do you mean running MT7925 on vanilla Linux is even more challenging than on Openwrt? I am with perception that Linux kernel and driver support is more updated than Openwrt.

Edit: My bad understanding, you are working on the patching the vanilla Linux kernel to make MLO works, which will make it a "real" wifi7 card.

Using this card while i don't catch of of those new wifi7 cards from sinovoip. Rare species... Hardly seen around :)

I recently come across this BPI-R4-NIC-BE14 selling at about 70USB in China: https://m.tb.cn/h.ghODKMN?tk=adLd3Z6xznW HU0854 「BPI-R4-NIC-BE14 香蕉派开发板Banana Pi BPI-R4 wifi7模块」
Though it's ~5 times pricy than MT7925, would it be a good / better option for Banana?

@fs30000
Copy link

fs30000 commented Jul 6, 2024

On my side, i'm battling to have this mt7925 working on a banana pi R4.

Do you mean running MT7925 on vanilla Linux is even more challenging than on Openwrt? I am with perception that Linux kernel and driver support is more updated than Openwrt.

Yeah, you're right, those MLO patches are very recent, probably openwrt doesn't have them, but then, when the drivers come available to openwrt, configuring the card as an AP should be much easier in openwrt than doing it manually in vanilla linux. I haven't used openwrt tough, please clarify me if i'm wrong.

Using this card while i don't catch of of those new wifi7 cards from sinovoip. Rare species... Hardly seen around :)

I recently come across this BPI-R4-NIC-BE14 selling at about 70USB in China: https://m.tb.cn/h.ghODKMN?tk=adLd3Z6xznW HU0854 「BPI-R4-NIC-BE14 香蕉派开发板Banana Pi BPI-R4 wifi7模块」 Though it's ~5 times pricy than MT7925, would it be a good / better option for Banana?

Yeah, that one. does taoao have it in stock? I can't check, even after translating the page. Never used taobao, just aliexpress.
Supposedly, that card is a beast. The real deal. Plus the fact R4 has 2 sfp+ ports, wow... Still the sfp+ are suffering some kind of speed problems, probably going to get fixed with time.

@upsangel
Copy link

upsangel commented Jul 6, 2024

Yeah, that one. does taoao have it in stock? I can't check, even after translating the page. Never used taobao, just aliexpress. Supposedly, that card is a beast. The real deal. Plus the fact R4 has 2 sfp+ ports, wow... Still the sfp+ are suffering some kind of speed problems, probably going to get fixed with time.

Should be in stock because the page says 9 was sold (but no any review yet) I have purchased many different SBC boards from this seller and should be a reliable one (though I am not assuming any accountability).

R4 has been on market for a while but I still hesitate to get one. My major concern is not sure how to make the best use of it. I know it's fast with two fibre ports, but my current setup is still as the majority: RJ45 for all intranet devices. Hong Kong internet is fast but the fastest is 2.5GbE, that won't make use of the SPF+. That makes the R4 only for research purpose to me. I hope you can share some of your experience so I will pull the trigger.

Back to the BPI-R4-NIC-BE14, if you can't get one via your channel, I am glad to help. Shipping of small gadget from taobao to Hong Kong is nearly nothing, then from Hong Kong to your place shouldn't break a bank (ball park less than 10USD air to most part of the world).

@fs30000
Copy link

fs30000 commented Jul 6, 2024

Yeah, some were already sold. But went out of stock pretty quickly. Seriously, i doubt that seller has any, just like the sellers in aliexpress. I'll wait for the new batch, besides, new batch means more hardware fixes i think.

For me, R4 means faster wifi, which always gets handy in some situations. Plus the fact it has a nvme slot, as i want to throw backups in there as well. Thing is, apparently when a nvme disk is inserted, the sfp+ ports go down, due to some extra resistors installed on the board. They are making new batches with fixes around that. Still, it is possible to tape some "lanes" on the disk to make it work without problems. I haven't tested this yet.

Be aware, the RJ45 ports are only gigabit, but you can use sfp modules for RJ45 tough. Oh, and also bound 2 RJ45 ports if your switch allows it.

I'll report later how it goes about the R4 of course.

@fhteagle
Copy link

fhteagle commented Jul 6, 2024

So if I am correctly reading the iw list output:


valid interface combinations:
		 * #{ managed, P2P-client } <= 2, #{ AP, P2P-GO } <= 1,
		   total <= 2, #channels <= 2

This means the card is capable of making a single AP on two channels simultaneously? As in, it can be a DBDC and/or MLO provider?

@joshschmelzle - Once you get the new MLO patches that just landed a couple of days ago in play, can you check the iw list output again and see if this part of the output changes at all? Thanks.

MLO is the one feature I am really waiting for to make a move from Wifi 6 to 7. Finally got my Wifi 6 setup all stable throughout the house, so of course it is time to irritate my girl by starting again to tinker with things lol.

@patrakov
Copy link

patrakov commented Jul 6, 2024

@fhteagle you are misreading.

The card can provide an AP on one channel while being connected as a client to another channel. Or, it can connect as a client to two different APs on different channels. But it cannot act as an AP on two channels at once.

@morrownr
Copy link
Owner Author

morrownr commented Jul 6, 2024

@fhteagle

@patrakov is correct. The following is the clue:

#{ AP, P2P-GO } <= 1

You can't have more than one interface in AP mode.

Adding 2 AP capability has been on our wishlist. Not sure how difficult that would be but the Mediatek devs are neck deep in work on mt7925 and probably on mt7927 support as well... not to mention other Linux drivers they work. Mediatek has been bringing a lot of new SoCs and wireless chips online over the last few months and it is still ongoing. It appears that several SoCs they make are Linux only so they have to get it right and it is their Linux devs that have to do it.

@fs30000
Copy link

fs30000 commented Jul 6, 2024

Alright guys, i managed to have this card working on the banana pi r4 with some effort :) However i wonder if there are configs tweaks to make this better. Kernel 6.10-rc. Compiled latest hostapd.

iw list:

        wiphy index: 0
        max # scan SSIDs: 4
        max scan IEs length: 427 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
                 * P2P-client
                 * P2P-GO
        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: 1 usec (0x03)
                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: (0x2270ce126dc0b3064e3f00):
                                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
                                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
                                20MHz in 160/80+80MHz HE PPDU
                                80MHz in 160/80+80MHz HE PPDU
                                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
                EHT Iftypes: managed
                        EHT MAC Capabilities (0x0300):
                                NSEP priority access Supported
                                EHT OM Control Supported
                        EHT PHY Capabilities: (0xe80409fe10610c36):
                                NDP With  EHT-LTF And 3.2 µs GI
                                SU Beamformer
                                SU Beamformee
                                Beamformee SS (80MHz): 1
                                Beamformee SS (160MHz): 1
                                Number Of Sounding Dimensions (80MHz): 1
                                Number Of Sounding Dimensions (160MHz): 1
                                Ng = 16 SU Feedback
                                Ng = 16 MU Feedback
                                Codebook size (4, 2) SU Feedback
                                Codebook size (7, 5) MU Feedback
                                Triggered SU Beamforming Feedback
                                Triggered MU Beamforming Partial BW Feedback
                                Triggered CQI Feedback
                                Max Nc: 1
                                Non-Triggered CQI Feedback
                                Common Nominal Packet Padding: 2
                                Maximum Number Of Supported EHT-LTFs: 17
                                Support of MCS 15: 1
                                Non-OFDMA UL MU-MIMO (80MHz)
                                Non-OFDMA UL MU-MIMO (160MHz)
                                MU Beamformer (80MHz)
                                MU Beamformer (160MHz)
                        EHT MCS/NSS: (0x22222200000000000000000000):
                        EHT bw=20 MHz, max NSS for MCS 0-7: Rx=2, Tx=2
                        EHT bw=20 MHz, max NSS for MCS 8-9: Rx=2, Tx=2
                        EHT bw=20 MHz, max NSS for MCS 10-11: Rx=2, Tx=2
                        EHT bw=20 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
                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
                EHT Iftypes: AP
                        EHT MAC Capabilities (0x0300):
                                NSEP priority access Supported
                                EHT OM Control Supported
                        EHT PHY Capabilities: (0xe80409fe10610c36):
                                NDP With  EHT-LTF And 3.2 µs GI
                                SU Beamformer
                                SU Beamformee
                                Beamformee SS (80MHz): 1
                                Beamformee SS (160MHz): 1
                                Number Of Sounding Dimensions (80MHz): 1
                                Number Of Sounding Dimensions (160MHz): 1
                                Ng = 16 SU Feedback
                                Ng = 16 MU Feedback
                                Codebook size (4, 2) SU Feedback
                                Codebook size (7, 5) MU Feedback
                                Triggered SU Beamforming Feedback
                                Triggered MU Beamforming Partial BW Feedback
                                Triggered CQI Feedback
                                Max Nc: 1
                                Non-Triggered CQI Feedback
                                Common Nominal Packet Padding: 2
                                Maximum Number Of Supported EHT-LTFs: 17
                                Support of MCS 15: 1
                                Non-OFDMA UL MU-MIMO (80MHz)
                                Non-OFDMA UL MU-MIMO (160MHz)
                                MU Beamformer (80MHz)
                                MU Beamformer (160MHz)
                        EHT MCS/NSS: (0x22222200000000000000000000):
                        EHT bw=20 MHz, max NSS for MCS 0-7: Rx=2, Tx=2
                        EHT bw=20 MHz, max NSS for MCS 8-9: Rx=2, Tx=2
                        EHT bw=20 MHz, max NSS for MCS 10-11: Rx=2, Tx=2
                        EHT bw=20 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
                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] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm)
                        * 2472 MHz [13] (20.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 (0x339071f6):
                        Max MPDU length: 11454
                        Supported Channel Width: 160 MHz
                        RX LDPC
                        short GI (80 MHz)
                        short GI (160/80+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
                VHT extended NSS: supported
                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: (0x4c70ce126dc0b3064e3f00):
                                HE40/HE80/5GHz
                                HE160/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
                                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
                                20MHz in 160/80+80MHz HE PPDU
                                80MHz in 160/80+80MHz HE PPDU
                                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
                        HE RX MCS and NSS set 160 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 160 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
                EHT Iftypes: managed
                        EHT MAC Capabilities (0x0300):
                                NSEP priority access Supported
                                EHT OM Control Supported
                        EHT PHY Capabilities: (0xe80409fe10610c36):
                                NDP With  EHT-LTF And 3.2 µs GI
                                SU Beamformer
                                SU Beamformee
                                Beamformee SS (80MHz): 1
                                Beamformee SS (160MHz): 1
                                Number Of Sounding Dimensions (80MHz): 1
                                Number Of Sounding Dimensions (160MHz): 1
                                Ng = 16 SU Feedback
                                Ng = 16 MU Feedback
                                Codebook size (4, 2) SU Feedback
                                Codebook size (7, 5) MU Feedback
                                Triggered SU Beamforming Feedback
                                Triggered MU Beamforming Partial BW Feedback
                                Triggered CQI Feedback
                                Max Nc: 1
                                Non-Triggered CQI Feedback
                                Common Nominal Packet Padding: 2
                                Maximum Number Of Supported EHT-LTFs: 17
                                Support of MCS 15: 1
                                Non-OFDMA UL MU-MIMO (80MHz)
                                Non-OFDMA UL MU-MIMO (160MHz)
                                MU Beamformer (80MHz)
                                MU Beamformer (160MHz)
                        EHT MCS/NSS: (0x22222222222200000000000000):
                        EHT bw <= 80 MHz, max NSS for MCS 8-9: Rx=2, Tx=2
                        EHT bw <= 80 MHz, max NSS for MCS 10-11: Rx=2, Tx=2
                        EHT bw <= 80 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
                        EHT bw=160 MHz, max NSS for MCS 8-9: Rx=0, Tx=0
                        EHT bw=160 MHz, max NSS for MCS 10-11: Rx=0, Tx=0
                        EHT bw=160 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
                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: (0x0c20ce120000a000000c00):
                                HE40/HE80/5GHz
                                HE160/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
                        HE RX MCS and NSS set 160 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 160 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
                EHT Iftypes: AP
                        EHT MAC Capabilities (0x0300):
                                NSEP priority access Supported
                                EHT OM Control Supported
                        EHT PHY Capabilities: (0xe80409fe10610c36):
                                NDP With  EHT-LTF And 3.2 µs GI
                                SU Beamformer
                                SU Beamformee
                                Beamformee SS (80MHz): 1
                                Beamformee SS (160MHz): 1
                                Number Of Sounding Dimensions (80MHz): 1
                                Number Of Sounding Dimensions (160MHz): 1
                                Ng = 16 SU Feedback
                                Ng = 16 MU Feedback
                                Codebook size (4, 2) SU Feedback
                                Codebook size (7, 5) MU Feedback
                                Triggered SU Beamforming Feedback
                                Triggered MU Beamforming Partial BW Feedback
                                Triggered CQI Feedback
                                Max Nc: 1
                                Non-Triggered CQI Feedback
                                Common Nominal Packet Padding: 2
                                Maximum Number Of Supported EHT-LTFs: 17
                                Support of MCS 15: 1
                                Non-OFDMA UL MU-MIMO (80MHz)
                                Non-OFDMA UL MU-MIMO (160MHz)
                                MU Beamformer (80MHz)
                                MU Beamformer (160MHz)
                        EHT MCS/NSS: (0x22222222222200000000000000):
                        EHT bw <= 80 MHz, max NSS for MCS 8-9: Rx=2, Tx=2
                        EHT bw <= 80 MHz, max NSS for MCS 10-11: Rx=2, Tx=2
                        EHT bw <= 80 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
                        EHT bw=160 MHz, max NSS for MCS 8-9: Rx=0, Tx=0
                        EHT bw=160 MHz, max NSS for MCS 10-11: Rx=0, Tx=0
                        EHT bw=160 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
                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] (26.0 dBm) (radar detection)
                        * 5520 MHz [104] (26.0 dBm) (radar detection)
                        * 5540 MHz [108] (26.0 dBm) (radar detection)
                        * 5560 MHz [112] (26.0 dBm) (radar detection)
                        * 5580 MHz [116] (26.0 dBm) (radar detection)
                        * 5600 MHz [120] (26.0 dBm) (radar detection)
                        * 5620 MHz [124] (26.0 dBm) (radar detection)
                        * 5640 MHz [128] (26.0 dBm) (radar detection)
                        * 5660 MHz [132] (26.0 dBm) (radar detection)
                        * 5680 MHz [136] (26.0 dBm) (radar detection)
                        * 5700 MHz [140] (26.0 dBm) (radar detection)
                        * 5720 MHz [144] (13.0 dBm) (radar detection)
                        * 5745 MHz [149] (13.0 dBm)
                        * 5765 MHz [153] (13.0 dBm)
                        * 5785 MHz [157] (13.0 dBm)
                        * 5805 MHz [161] (13.0 dBm)
                        * 5825 MHz [165] (13.0 dBm)
                        * 5845 MHz [169] (13.0 dBm)
                        * 5865 MHz [173] (13.0 dBm)
                        * 5885 MHz [177] (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: (0x4c70ce126dc0b3064e3f00):
                                HE40/HE80/5GHz
                                HE160/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
                                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
                                20MHz in 160/80+80MHz HE PPDU
                                80MHz in 160/80+80MHz HE PPDU
                                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
                        HE RX MCS and NSS set 160 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 160 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
                EHT Iftypes: managed
                        EHT MAC Capabilities (0x0300):
                                NSEP priority access Supported
                                EHT OM Control Supported
                        EHT PHY Capabilities: (0xe80409fe10610c36):
                                NDP With  EHT-LTF And 3.2 µs GI
                                SU Beamformer
                                SU Beamformee
                                Beamformee SS (80MHz): 1
                                Beamformee SS (160MHz): 1
                                Number Of Sounding Dimensions (80MHz): 1
                                Number Of Sounding Dimensions (160MHz): 1
                                Ng = 16 SU Feedback
                                Ng = 16 MU Feedback
                                Codebook size (4, 2) SU Feedback
                                Codebook size (7, 5) MU Feedback
                                Triggered SU Beamforming Feedback
                                Triggered MU Beamforming Partial BW Feedback
                                Triggered CQI Feedback
                                Max Nc: 1
                                Non-Triggered CQI Feedback
                                Common Nominal Packet Padding: 2
                                Maximum Number Of Supported EHT-LTFs: 17
                                Support of MCS 15: 1
                                Non-OFDMA UL MU-MIMO (80MHz)
                                Non-OFDMA UL MU-MIMO (160MHz)
                                MU Beamformer (80MHz)
                                MU Beamformer (160MHz)
                        EHT MCS/NSS: (0x22222222222200000000000000):
                        EHT bw <= 80 MHz, max NSS for MCS 8-9: Rx=2, Tx=2
                        EHT bw <= 80 MHz, max NSS for MCS 10-11: Rx=2, Tx=2
                        EHT bw <= 80 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
                        EHT bw=160 MHz, max NSS for MCS 8-9: Rx=0, Tx=0
                        EHT bw=160 MHz, max NSS for MCS 10-11: Rx=0, Tx=0
                        EHT bw=160 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
                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: (0x0c20ce120000a000000c00):
                                HE40/HE80/5GHz
                                HE160/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
                        HE RX MCS and NSS set 160 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 160 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
                EHT Iftypes: AP
                        EHT MAC Capabilities (0x0300):
                                NSEP priority access Supported
                                EHT OM Control Supported
                        EHT PHY Capabilities: (0xe80409fe10610c36):
                                NDP With  EHT-LTF And 3.2 µs GI
                                SU Beamformer
                                SU Beamformee
                                Beamformee SS (80MHz): 1
                                Beamformee SS (160MHz): 1
                                Number Of Sounding Dimensions (80MHz): 1
                                Number Of Sounding Dimensions (160MHz): 1
                                Ng = 16 SU Feedback
                                Ng = 16 MU Feedback
                                Codebook size (4, 2) SU Feedback
                                Codebook size (7, 5) MU Feedback
                                Triggered SU Beamforming Feedback
                                Triggered MU Beamforming Partial BW Feedback
                                Triggered CQI Feedback
                                Max Nc: 1
                                Non-Triggered CQI Feedback
                                Common Nominal Packet Padding: 2
                                Maximum Number Of Supported EHT-LTFs: 17
                                Support of MCS 15: 1
                                Non-OFDMA UL MU-MIMO (80MHz)
                                Non-OFDMA UL MU-MIMO (160MHz)
                                MU Beamformer (80MHz)
                                MU Beamformer (160MHz)
                        EHT MCS/NSS: (0x22222222222200000000000000):
                        EHT bw <= 80 MHz, max NSS for MCS 8-9: Rx=2, Tx=2
                        EHT bw <= 80 MHz, max NSS for MCS 10-11: Rx=2, Tx=2
                        EHT bw <= 80 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
                        EHT bw=160 MHz, max NSS for MCS 8-9: Rx=0, Tx=0
                        EHT bw=160 MHz, max NSS for MCS 10-11: Rx=0, Tx=0
                        EHT bw=160 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
                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] (23.0 dBm)
                        * 5975 MHz [5] (23.0 dBm)
                        * 5995 MHz [9] (23.0 dBm)
                        * 6015 MHz [13] (23.0 dBm)
                        * 6035 MHz [17] (23.0 dBm)
                        * 6055 MHz [21] (23.0 dBm)
                        * 6075 MHz [25] (23.0 dBm)
                        * 6095 MHz [29] (23.0 dBm)
                        * 6115 MHz [33] (23.0 dBm)
                        * 6135 MHz [37] (23.0 dBm)
                        * 6155 MHz [41] (23.0 dBm)
                        * 6175 MHz [45] (23.0 dBm)
                        * 6195 MHz [49] (23.0 dBm)
                        * 6215 MHz [53] (23.0 dBm)
                        * 6235 MHz [57] (23.0 dBm)
                        * 6255 MHz [61] (23.0 dBm)
                        * 6275 MHz [65] (23.0 dBm)
                        * 6295 MHz [69] (23.0 dBm)
                        * 6315 MHz [73] (23.0 dBm)
                        * 6335 MHz [77] (23.0 dBm)
                        * 6355 MHz [81] (23.0 dBm)
                        * 6375 MHz [85] (23.0 dBm)
                        * 6395 MHz [89] (23.0 dBm)
                        * 6415 MHz [93] (23.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
                 * set_bss
                 * authenticate
                 * associate
                 * deauthenticate
                 * disassociate
                 * join_ibss
                 * 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, P2P-client } <= 2, #{ AP, P2P-GO } <= 1,
                   total <= 2, #channels <= 2
        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)
        Driver/device bandwidth changes during BSS lifetime (AP/GO mode)
        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
                * [ ACK_SIGNAL_SUPPORT ]: ack signal level support
                * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
                * [ CAN_REPLACE_PTK0 ]: can safely replace PTK 0 when rekeying
                * [ 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
                * [ BEACON_RATE_HE ]: HE beacon rate support (AP/mesh)

hostapd conf:

interface=wlp1s0
bridge=lanbr0
driver=nl80211

# Control interface
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0


ssid=AP
wpa_passphrase=pass

auth_algs=3
macaddr_acl=0
ignore_broadcast_ssid=0
wpa=2

#wpa_key_mgmt=WPA-PSK
#wpa_key_mgmt=SAE WPA-PSK WPA-PSK-SHA256
##### needed for wifi 6
wpa_key_mgmt=SAE
ieee80211w=2
wpa_pairwise=CCMP CCMP-256
rsn_pairwise=CCMP CCMP-256


# Advertises the country_code and the set of allowed channels and transmit power levels
ieee80211d=1
# Enables support for 5GHz DFS channels (requires ieee80211d=1)
ieee80211h=1


########################################################### SPEEDS
#g --> 2GHz   a --> 5Ghz
hw_mode=a
channel=36

################################################ 2.4GHz

# IEEE 802.11n
ieee80211n=1
wmm_enabled=1
ht_capab=[RXLDPC][HT40+][SHORT-GI-20][SHORT-GI-40][GF][TX-STBC][RX-STBC1][MAX-AMSDU-7935][DSSS_CCK-40][SU-BEAMFORMEE]


########################################################## 5GHz
ieee80211ac=1

####### This mediatek card does not support 160 nor 80+80 in AP mode
# Channel width (0 = 40 MHz | 1 = 80 Mhz | 2 = 160 MHz | 3 = 80+80 MHz
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=42

vht_capab=[RXLDPC][VHT160][HT40+][SHORT-GI-20][SHORT-GI-40][SHORT-GI-80][SHORT-GI-160][TX-STBC][RX-STBC12][MAX-AMSDU-7935][DSSS_CCK-40][MAX-MPDU-11454][TX-STBC-2BY1][SU-BEAMFORMEE][MU-BEAMFORMEE][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN][MAX-A-MPDU-LEN-EXP7]

# does not work
#[VHT160-80PLUS80]

###################################################### WIFI 6
# WiFi 6 (bands 2.4 Ghz, 5 GHz and 6 GHz)
ieee80211ax=1
# Channel width (0 = 40 MHz. 1 = 80 Mhz)
he_oper_chwidth=1
# HE center channel (chan + 6)
he_oper_centr_freq_seg0_idx=42

#he_oper_centr_freq_seg0_idx=39
# used by clients to discern the source of interference
# each AP in your area needs to use a different number
# allowed: 1-63
he_bss_color=42


he_su_beamformer=1
he_su_beamformee=1
he_mu_beamformer=1
he_6ghz_max_ampdu_len_exp=7




########################### WIFI 7
#ieee80211be=1
#eht_su_beamformer=1
#eht_su_beamformee=1
#eht_mu_beamformer=1

EDIT: If i enable wifi7, i get crap speeds on 7.

@morrownr
Copy link
Owner Author

morrownr commented Jul 6, 2024

@fs30000

However i wonder if there are configs tweaks to make this better.

Probably. I'll try to help but tell me what band you are trying to enable and is this for WiFi 6 or 7? If it is for WiFi 6 or 7, I think you are missing some things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests