Re: WARNING !ht_cap.ht_supported failed at...

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Wed, 16 Apr 2025 21:42:21 UTC
On Wed, 16 Apr 2025, Chris wrote:

Hi Chris,

> Well I just built and installed the net/wifi-firmware-iwlwifi-kmod
> on a year old world/kernel.

Just to be clear: your world and kernel are still a year old or did you
update them too afterwards?  If not, please do if you want to test
iwlwifi becasue there's no support for a year old current iwlwifi and
LinuxKPI here anymore, especially if you want to try VHT.  Otherwise
the next you'll report is year old bugs.  Sorry.


> But upon reboot (among other things)
> got the following:

I told you to install the respective flavour only but hey...

If this is an AX201 you did not install a recent port/package.
Your tunables are not reflecting what should be set.
Did you update your ports tree before building?

What does
% pkg info | grep wifi-firmware-iwlwifi
say?

What does
 	fwget -n
suggest?


> WARNING !ht_cap.ht_supported failed at 
> /usr/src/sys/contrib/dev/iwlwifi/iwl-nvm-parse.c:855
>
> I'm guessing I need to build a new world/kernel. This is on current.

Right and you mean on a year old current.  Please update.

The line now looks like ;-)
     855         },

> dmesg(8) returns:
> Detected Intel(R) Wi-Fi 6 AX201 160MHz, REV=0x370
>
> loader.conf(5) contains:
>
> compat.linuxkpi.iwlwifi_disable_11ac=0
> compat.linuxkpi.iwlwifi_disable_11ax=0

Right.  Please just install the firmware package and stop trying to set
random things yourself.  There's multiple correct samples in the last 7
weeks of wireless list archives if you don't trust what the package
would do for you.

(a) it is unclear if you have hw_crypto set?
 	sysctl compat.linuxkpi.80211.hw_crypto

(b) you have 11n disabled: iwlwifi_11n_disable=1 but 11ac/11ax on and
thus you get a warning.  This is not what the package would do.

(c) if you enable 11ax you are on your own.

(d) what does
 	cat /boot/loader.conf.d/iwlwifi-22000.conf
say?  If nothing, is there any file there?
 	ls -l /boot/loader.conf.d/iwlwifi-*.conf
If not then we are back to the beginning that the firmware is not
recent.  Start by installing a recent firmware package and then
do your kernel/world update.


Hope this helps,
Bjoern


> rc.conf(5) contains:
> wlans_iwlwifi0="wlan0"
> ifconfig_wlan0="WPA SYNCDHCP"
> ifconfig_wlan0_ipv6="inet6 accept_rtadv"
>
> sysctl returns these settings for iwlwifi:
> compat.linuxkpi.iwlwifi_mvm_power_scheme: 1
> compat.linuxkpi.iwlwifi_mvm_init_dbg: 0
> compat.linuxkpi.iwlwifi_disable_11be: 1
> compat.linuxkpi.iwlwifi_disable_11ax: 0
> compat.linuxkpi.iwlwifi_remove_when_gone: 0
> compat.linuxkpi.iwlwifi_disable_11ac: 0
> compat.linuxkpi.iwlwifi_power_level: 0
> compat.linuxkpi.iwlwifi_power_save: 0
> compat.linuxkpi.iwlwifi_led_mode: 0
> compat.linuxkpi.iwlwifi_bt_coex_active: 1
> compat.linuxkpi.iwlwifi_uapsd_disable: 3
> compat.linuxkpi.iwlwifi_nvm_file:
> compat.linuxkpi.iwlwifi_fw_restart: 1
> compat.linuxkpi.iwlwifi_amsdu_size: 0
> compat.linuxkpi.iwlwifi_11n_disable: 1
> compat.linuxkpi.iwlwifi_swcrypto: 0
> compat.linuxkpi.iwlwifi_debug: 0
>
> Thanks for any advice on how to best proceed.

-- 
Bjoern A. Zeeb                                                     r15:7