From nobody Fri Feb 28 22:51:10 2025 X-Original-To: wireless@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Z4Njh4cnsz59R7l for ; Fri, 28 Feb 2025 22:51:20 +0000 (UTC) (envelope-from che@bein.link) Received: from mail.bein.link (bein.link [37.252.124.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z4Njg613qz420S; Fri, 28 Feb 2025 22:51:19 +0000 (UTC) (envelope-from che@bein.link) Authentication-Results: mx1.freebsd.org; none Received: from [192.168.1.11] (unknown [90.156.160.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.bein.link (Postfix) with ESMTPSA id C937E238384; Fri, 28 Feb 2025 22:50:23 +0000 (UTC) Message-ID: Date: Sat, 1 Mar 2025 03:51:10 +0500 List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-wireless@freebsd.org Sender: owner-freebsd-wireless@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: HT and VHT testing for modern iwlwifi chipsets (notes about others) To: "Bjoern A. Zeeb" , FreeBSD wireless mailing list References: <0r8nrq32-4980-r724-9snp-p9pqp2o50650@SerrOFQ.bet> Content-Language: en-US From: Maxim V Filimonov In-Reply-To: <0r8nrq32-4980-r724-9snp-p9pqp2o50650@SerrOFQ.bet> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=bein.link; s=mail; t=1740783024; bh=R15LAN2pFrJMPoNEYTfexrM3WMo=; h=Message-ID:Date:MIME-Version:Subject:To:References:From:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ZWFgVTYRXwwuje1XDICXZTrKyztSLw+j4CIDfCnOZoMRAqncXQxB2lU2m2o6SLjuBcr9zMsYCd8jmlYJ6W4arZv5JdkasNQfX6k5osMJcMC0KQUqoUdNLCbaIrs0sPMIzescyGp9bFkys6fp2MjYJqyWTvus/4bCcaZKLViHjNs= X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:196752, ipnet:37.252.120.0/21, country:NL] X-Rspamd-Queue-Id: 4Z4Njg613qz420S X-Spamd-Bar: ---- Hello Bjoern, My wifi card (AX201) doesn't seem to connect to a 802.11n network; it only uses 802.11a Here's the card itself: iwlwifi0@pci0:0:20:3:   class=0x028000 rev=0x00 hdr=0x00 vendor=0x8086 device=0x02f0 subvendor=0x8086 subdevice=0x0070     vendor     = 'Intel Corporation'     device     = 'Comet Lake PCH-LP CNVi WiFi'     class      = network % grep AX201 /var/log/all.log Mar  1 03:34:07 hamster kernel: iwlwifi0: Detected Intel(R) Wi-Fi 6 AX201 160MHz Here's my OS info: % uname -a FreeBSD hamster 15.0-CURRENT FreeBSD 15.0-CURRENT #16 main-n275691-5b511473999a: Wed Feb 26 20:55:54 +05 2025 root@hamster:/usr/obj/usr/src/amd64.amd64/sys/DEBOOG amd64 Here's what I chnged in loader.conf: % grep linuxkpi /boot/loader.conf compat.linuxkpi.80211.hw_crypto=1 compat.linuxkpi.iwlwifi_disable_11ac=0 compat.linuxkpi.iwlwifi_11n_disable=0 Another symptom would be that iwlwifi_disable_11ac doesn't seem to set to 0: % sysctl compat.linuxkpi.iwlwifi_disable_11ac compat.linuxkpi.iwlwifi_disable_11ac: 1 On 01.03.2025 02:35, Bjoern A. Zeeb wrote: > Hi, > > upfront: rtw88/rtw89 and older iwlwifi chipsets all need more work which > will continue. rtw88/rtw89 need LinuxKPI and net80211 changes, modern > iwlwifi chipsets will need a net80211 change for a clean solution which > is currently hardcoed in LinuxKPI, and older iwlwifi chipsets still need > driver changes due to GPL-only code. > > If you have an iwlwifi AX2xx or BExxx and you have successfully tested > HW_CYRPTO (see the other email thread here on wireless) then you have a > chance to test a first cut of HT20/40 and VHT20/40/80 (no 160 yet) > support by adding the following two tunables next to your hw_crypto one > in loader.conf: > > compat.linuxkpi.iwlwifi_11n_disable=0 > compat.linuxkpi.iwlwifi_disable_11ac=0 > > If you try this with any other (older) iwlwifi chipset (anything with > just numbers 3xxx, 7xxx, 8xxx, 9xxx etc.), with rtw88 or rtw89 it will > fail and I'll not provide support at this time unless you want to help > to make it work.  Otherwise you'll have to wait a few days/weeks > longer -- sorry. > > Also if you try this without the hw_crypto tunable on, it'll fail badly, > so please test that (independently) *first* if you haven't as that will > be my first question. > > I am sure there'll be plenty of rough edges to fix for me... but I > wanted to get the code out at this point. > > The last bits of the code have been in stable/14 since yesterday [1] and > main since [2] (beware that main has more wireless changes I haven't > rebased to yet for extra testing but they should not interfere). > > Once we have sufficient confidence that things work well enough I will > likely add the tunables to the firmware ports so it'll do the right > thing out of the box like was done for the rtw88 skb tunable and > eventually slip the policy once the majority works. > > > If things work the thanks should go to The FreeBSD Foundation, > if things don't work the problem reports go to me. > > Happy testing and a blessed weekend, > Bjoern > > [1] stable/14 > https://cgit.freebsd.org/src/commit/?h=stable/14&id=63c197298957c89fe3e7bd0c3392da74ed72a24b > [2] main: > https://cgit.freebsd.org/src/commit/?id=2c44f1ff6935e93f7774e526f2f1ab0a2812eab5 > -- wbr, Maxim Filimonov