[Banana BPI-R4] Wifi7 status

  1. BE200
    As in the thread.
    Not working with Banana Pi BPI-R4 board. It is an Intel familly so we cannot expect here AP mode.

  2. WCN7851/QCNCM865
    As in the thread.
    Not working with Banana Pi BPI-R4 board as probably we hit the pci bug for ath12k module.

  3. MT7925/MT7927

Based on https://wikidevi.wi-cat.ru/MediaTek:

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

Based on https://wikidevi.wi-cat.ru/Mt76
MT7925 - 802.11a/b/g/n/ac/ax/be 2T2R 2.4/5G/6GHz PCIe/USB Chip (6.7+)

As the snashopt OpenWrt is with kernel 6.6.32 we cannot expect it working it as you can see below:




mt7925 Makefile config can be taken from here and copied to package/kernel/mt76/Makefile

2 Likes

I've ordered a sample Emwicon WMX8402 and will share my experiences here as soon as it has arrived.
Emwicon has not finished its firmware right now therefore don't expect miracles :wink:

We'll probably move to a more recent wireless stack in the future, but I have no idea which kernel is going to be LTS after 6.6. The wireless stack OpenWrt uses is often (if the timeframe allows it) one LTS version ahead of the LTS used as the OpenWrt kernel itself.

I was thinking about that card but the prise is really high. It uses also ath12k...

New test....

Debian GNU/Linux trixie/sid bpi-r4 ttyS0 (Bpi-Router-Linux image from Frank-W)

root@bpi-r4:~# uname -r
6.9.0-bpi-r4-main

root@bpi-r4:~# lsmod |grep 792
mt7925e 16384 0
mt7925_common 77824 1 mt7925e
mt792x_lib 40960 2 mt7925e,mt7925_common
mt76_connac_lib 53248 4 mt792x_lib,mt7925e,mt7915e,mt7925_common
mt76 86016 5 mt792x_lib,mt7925e,mt7915e,mt76_connac_lib,mt7925_common
mac80211 811008 5 mt792x_lib,mt76,mt7915e,mt76_connac_lib,mt7925_common
cfg80211 806912 5 mt76,mt7915e,mac80211,mt76_connac_lib,mt7925_common

root@bpi-r4:~# dmesg |grep -i firmwa
[ 17.406726] mt7925e 0001:01:00.0: WM Firmware Version: ____000000, Build Time: 20231227093232

wlan0 -> AP4G (MT7916AN)
wlan1 -> AP6G (MT7916AN)
wlan2 -> AP7G (MT7925) >> we make tests with that card

Based on https://variwiki.com/index.php?title=Wifi_NetworkManager#Creating_WiFi_AP it seems we could have a potentail issue to setup WIFI7 AP as not yet supported.

hostapd.conf:
interface=uap0
#driver=nl80211

ssid=AP7G
channel=173

#7G-Support
disable_11be=0
wmm_enabled=1
hw_mode=a
country_code=PL
ieee80211ax=1
ieee80211be=1
he_oper_chwidth=1
he_oper_centr_freq_seg0_idx=155

#security
wpa=2
wpa_passphrase=xxxxx
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP

root@bpi-r4:~# iw uap0 info
Interface uap0
ifindex 18
wdev 0x200000002
addr 1c:ce:51:ef:02:be
ssid AP7G
type AP
wiphy 2
channel 173 (5865 MHz), width: 20 MHz, center1: 5865 MHz
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
nmcli device wifi
obraz

However, Im not able to pick up any from wifi7 frequencies for MT7925 (band4):

                   * 5955.0 MHz [1] (23.0 dBm)
                    * 5975.0 MHz [5] (23.0 dBm)
                    * 5995.0 MHz [9] (23.0 dBm)
                    * 6015.0 MHz [13] (23.0 dBm)
                    * 6035.0 MHz [17] (23.0 dBm)
                    * 6055.0 MHz [21] (23.0 dBm)
                    * 6075.0 MHz [25] (23.0 dBm)
                    * 6095.0 MHz [29] (23.0 dBm)
                    * 6115.0 MHz [33] (23.0 dBm)
                    * 6135.0 MHz [37] (23.0 dBm)
                    * 6155.0 MHz [41] (23.0 dBm)
                    * 6175.0 MHz [45] (23.0 dBm)
                    * 6195.0 MHz [49] (23.0 dBm)
                    * 6215.0 MHz [53] (23.0 dBm)
                    * 6235.0 MHz [57] (23.0 dBm)
                    * 6255.0 MHz [61] (23.0 dBm)
                    * 6275.0 MHz [65] (23.0 dBm)
                    * 6295.0 MHz [69] (23.0 dBm)
                    * 6315.0 MHz [73] (23.0 dBm)
                    * 6335.0 MHz [77] (23.0 dBm)
                    * 6355.0 MHz [81] (23.0 dBm)
                    * 6375.0 MHz [85] (23.0 dBm)
                    * 6395.0 MHz [89] (23.0 dBm)
                    * 6415.0 MHz [93] (23.0 dBm)

root@bpi-r4:/etc/hostapd# iw reg get
global
country PL: DFS-ETSI
(2400 - 2483 @ 40), (N/A, 20), (N/A)
(5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
(5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
(5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
(5725 - 5875 @ 80), (N/A, 13), (N/A)
(5945 - 6425 @ 160), (N/A, 23), (N/A), NO-OUTDOOR
(57000 - 66000 @ 2160), (N/A, 40), (N/A)

iwlist frequency
uap0 32 channels in total; available frequencies :
Channel 01 : 2.412 GHz
Channel 02 : 2.417 GHz
Channel 03 : 2.422 GHz
Channel 04 : 2.427 GHz
Channel 05 : 2.432 GHz
Channel 06 : 2.437 GHz
Channel 07 : 2.442 GHz
Channel 08 : 2.447 GHz
Channel 09 : 2.452 GHz
Channel 10 : 2.457 GHz
Channel 11 : 2.462 GHz
Channel 12 : 2.467 GHz
Channel 13 : 2.472 GHz
Channel 36 : 5.18 GHz
Channel 40 : 5.2 GHz
Channel 44 : 5.22 GHz
Channel 48 : 5.24 GHz
Channel 52 : 5.26 GHz
Channel 56 : 5.28 GHz
Channel 60 : 5.3 GHz
Channel 64 : 5.32 GHz
Channel 100 : 5.5 GHz
Channel 104 : 5.52 GHz
Channel 108 : 5.54 GHz
Channel 112 : 5.56 GHz
Channel 116 : 5.58 GHz
Channel 120 : 5.6 GHz
Channel 124 : 5.62 GHz
Channel 128 : 5.64 GHz
Channel 132 : 5.66 GHz
Channel 136 : 5.68 GHz
Channel 140 : 5.7 GHz

Hostapd fails to start..

This is interesting regarding Wifi7 status:

Productinformation and price for the BPI-R4-NIC-BE14 wifi7 in both SinoVoip and Bipain store :slight_smile: (not in stock though)

I just recently got my own BPR-R4 and have a couple wifi7 cards to test, but im not going to do any better than DroZDi :wink:

a WCN785X, BE200, MT7925 and a very rare MT7927 (not even inserted to the latest kernel) :wink:

MT7925 here.

Ok, so i'm not using openwrt. I tried with Frank's Debian with kernel 6.10.0rc. With compiled latest hostapd.

It works, but file transfers via scp were unstable. I see many patches for it, but i don't know how to apply them, but to be honest, right now i don't have much time to test. As much as i am eager to have the R4 to substitute the current AP, i'll wait for kernel 6.11 or something.

If you want my procedures or something, just ask.

EDIT: Oh the links for card and adapter:

https://www.aliexpress.com/item/1005006626211720.html (Option A)

I used some patch antennas. iperf3 -R was around 100-110MBs. wifi6 mode. On wifi7, slow speeds. Didn't test much.

if you make any test just put all steps here as I did above

1 Like

Sure, please check my post at Banana's forum:

Plus my (most probably not perfect) 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

If any ideas for improvements or you want to request extra info, do tell me.

1 Like

I have prepared small tutorial how to create Debian image 6.10 trixie with modules for wifi7 (ath12k/mt7925).
Actually AP7G is allowed for 80211be on mt7925 but I need to make some tests if it is really 80211BE but no idea how to check it out :confused:
ap7g

1 Like

Tech specyification for MT7925B22M:

But as it was already discovered BTW160 is not possible, also this (not 4k QAM):
7925

Driver is not supporting MLO (mld_ap=1) :confused:
7925_1

It makes me thinking a bit that mt7925 is not good card as AP choice?

Wifi7 does work, but crap speeds. I haven't tested it much to be honest.

As for MLO, mediteak alredy sent kernel patches, but i don't know to apply all of them at once. Not going to apply one by one, that's 30+ of them :slight_smile: I tried patchwork's client, without success. I don't have much time for all of this.

MLO is not 'just' a question of kernel patches, but also of hostapd - there are lots of things missing all around before MLO becomes an option.

I was planning on using OpenWrt for wifi 7 hardware testing. I haven't had much luck finding information on the wiki.
Where can I find more information about current wifi 7 capabilities and the missing MLO features you mentioned?

At the source, the linux-wireless and hostapd mailing lists and the corresponding git development trees.

@nextgen-networks Any news about Emwicon WMX8402 tests? :slight_smile:

... sadly not a bit :-/

Had some problems with mussing dependencies for snapshot updates within the last week.
This has been fixed since one day.
I've to postpone investigation further due limited amount of time :frowning:

I really appreciate the effort, I have tried a couple of times - unfortunately it fails for me everytime.

Is it possible for you to upload a sd-image somewhere ?