Re: iwlwifi speed test report

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Mon, 14 Apr 2025 19:36:23 UTC
On Mon, 14 Apr 2025, Lars Tunkrans wrote:

Hi,

first of all thank you for testing and reporting back!

>    Today  14:th of  April at 18:00 UTC.    I  installed  new iwlwifi  
> firmware   from  ports   and  refreshed   /usr/src tree  from  Git,  and  
> rebuildt the  kernel

Which branch?  main or stable/14?


>     I also  reconfigured my old   4G/Wifi  Modem-gateway to     B/G/N   2.4 
> Gbit  band,   40 Mhz
>
>     looks like  Im now  running   11ng  300 Mbits  to  the 4G/WIFI modem.
>
>     4G speed   is  ofcourse    lower

Where do you get the 300Mbit/s from?  Just the theoretical value?


>     Wlan0    now  says  :
>
> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
> options=0
> ether f4:7b:09:b0:ba:3f
> inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255
> groups: wlan
> ssid   xxxxxx    channel 1 (2412 MHz 11g ht/40+) bssid 50:9f:27:79:c2:a3

Blessed are you.  Your radio environment must be very quiet that you
manage to get on a 40Mhz channel on 11g (or the AP is set to force now?)!


> regdomain ETSI country SE authmode WPA2/802.11i privacy ON
> deftxkey UNDEF TKIP 2:128-bit txpower 30 bmiss 7 scanvalid 60

You are using TKIP which is not yet supported for crypto offload so either you
do not have hw_crypto enabled (which the newer firmware would) as well or you
are not getting reasonable throughtput as ampdurx would be automatically
disabled by LinuxKPI and it looks like from the next line of the
ifconfig output that it got (both RX and TX as it syas -ampdu; TX is disabled
on purpose in the current version).

Do you have any chance to enable/switch to CCMP on the AP?

What does:
sysctl compat.linuxkpi.80211.hw_crypto compat.linuxkpi.iwlwifi_11n_disable compat.linuxkpi.iwlwifi_disable_11ac
show for all three?

And once you are associated and have some traffic, what does
sysctl compat.linuxkpi.80211.wlan0
say?

> protmode CTS -ampdu ampdulimit 8k ampdudensity 8 -amsdutx amsdurx
> shortgi -ldpctx ldpcrx -uapsd wme roaming MANUAL
> parent interface: iwlwifi0
> media: IEEE 802.11 Wireless Ethernet *MCS mode 11ng*
> status: associated
> nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>
>
> and   /var/run/dmesg.boot  says  this    with  verbose boot and
>
> compat.linuxkpi.iwlwifi_11n_disable=0
>
>       in  /boot/loader.conf
>
>  What is this  iwl-debug-yoyo.bin   ?  where is  it  to be found  ?    do  i  
> need  it  ?

Nowhere.  It can be ignored.  https://wiki.freebsd.org/WiFi/Iwlwifi/#Frequently_Asked_Questions


> iwlwifi0: using IRQs 152-165 for MSI-X
> iwlwifi0: Detected crf-id 0x3617, cnv-id 0x20000302 wfpm id 0x80000000
> iwlwifi0: PCI dev 06f0/0070, rev=0x351, rfid=0x10a100
> iwlwifi0: Detected Intel(R) Wi-Fi 6 AX201 160MHz
> iwlwifi-QuZ-a0-hr-b0-77.ucode: could not load firmware image, error 8
> Trying to load binary firmware from 
> /boot/firmware/iwlwifi-QuZ-a0-hr-b0-77.ucode
> firmware: '/boot/firmware/iwlwifi-QuZ-a0-hr-b0-77.ucode' version 0: 1406124 
> bytes loaded at 0xfffffe01b8114000
> iwlwifi-QuZ-a0-hr-b0-77.ucode: Loaded binary firmware using 
> /boot/firmware/iwlwifi-QuZ-a0-hr-b0-77.ucode
> iwlwifi0: successfully loaded firmware image 'iwlwifi-QuZ-a0-hr-b0-77.ucode'
> iwlwifi0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.37
> iwl-debug-yoyo.bin: could not load firmware image, error 2
> Trying to load binary firmware from /boot/firmware/iwl-debug-yoyo.bin
> iwl-debug-yoyo.bin: could not load binary firmware 
> /boot/firmware/iwl-debug-yoyo.bin either
> iwl-debug-yoyo.bin: could not load firmware image, error 2
> Trying to load binary firmware from /boot/firmware/iwl-debug-yoyo.bin
> iwl-debug-yoyo.bin: could not load binary firmware 
> /boot/firmware/iwl-debug-yoyo.bin either
> iwl-debug-yoyo_bin: could not load firmware image, error 2
> Trying to load binary firmware from /boot/firmware/iwl-debug-yoyo_bin
> iwl-debug-yoyo_bin: could not load binary firmware 
> /boot/firmware/iwl-debug-yoyo_bin either
> iwl_debug_yoyo_bin: could not load firmware image, error 2
> Trying to load binary firmware from /boot/firmware/iwl_debug_yoyo_bin
> iwl_debug_yoyo_bin: could not load binary firmware 
> /boot/firmware/iwl_debug_yoyo_bin either
> iwlwifi0: loaded firmware version 77.0b4c06ad.0 QuZ-a0-hr-b0-77.ucode op_mode 
> iwlmvm
> iwlwifi0: Detected RF HR B5, rfid=0x10a100
> iwlwifi0: base HW address: f4:7b:09:b0:ba:3f
> iwlwifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
> iwlwifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> iwlwifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 
> 24Mbps 36Mbps 48Mbps 54Mbps
> iwlwifi0: 2T2R
> iwlwifi0: 11na MCS 20MHz
> iwlwifi0: MCS 0-7: 6.5Mbps - 65Mbps
> iwlwifi0: MCS 8-15: 13Mbps - 130Mbps
> iwlwifi0: 11na MCS 20MHz SGI
> iwlwifi0: MCS 0-7: 7Mbps - 72Mbps
> iwlwifi0: MCS 8-15: 14.5Mbps - 144.5Mbps
> iwlwifi0: 11na MCS 40MHz:
> iwlwifi0: MCS 0-7: 13.5Mbps - 135Mbps
> iwlwifi0: MCS 8-15: 27Mbps - 270Mbps
> iwlwifi0: 11na MCS 40MHz SGI:
> iwlwifi0: MCS 0-7: 15Mbps - 150Mbps
> iwlwifi0: MCS 8-15: 30Mbps - 300Mbps
> iwlwifi0: 11ng MCS 20MHz
> iwlwifi0: MCS 0-7: 6.5Mbps - 65Mbps
> iwlwifi0: MCS 8-15: 13Mbps - 130Mbps
> iwlwifi0: 11ng MCS 20MHz SGI
> iwlwifi0: MCS 0-7: 7Mbps - 72Mbps
> iwlwifi0: MCS 8-15: 14.5Mbps - 144.5Mbps
> iwlwifi0: 11ng MCS 40MHz:
> iwlwifi0: MCS 0-7: 13.5Mbps - 135Mbps
> iwlwifi0: MCS 8-15: 27Mbps - 270Mbps
> iwlwifi0: 11ng MCS 40MHz SGI:
> iwlwifi0: MCS 0-7: 15Mbps - 150Mbps
> iwlwifi0: MCS 8-15: 30Mbps - 300Mbps

-- 
Bjoern A. Zeeb                                                     r15:7