Page MenuHomeFreeBSD

net/wifi-firmware-kmod: generalize iwlwifi specific tunable writing
ClosedPublic

Authored by bz on Nov 17 2025, 2:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 20, 1:51 AM
Unknown Object (File)
Sun, Dec 14, 1:29 AM
Unknown Object (File)
Tue, Dec 9, 11:54 AM
Unknown Object (File)
Nov 30 2025, 8:15 AM
Unknown Object (File)
Nov 28 2025, 2:04 PM
Unknown Object (File)
Nov 28 2025, 4:33 AM
Unknown Object (File)
Nov 27 2025, 8:56 AM
Unknown Object (File)
Nov 27 2025, 4:37 AM
Subscribers
None

Details

Summary

Currently iwlwifi(4) is the only LinuxKPI based wireless driver able
to enable 11n/11ac. bz has added tunables to rtw88 and rtw89 in order
to allow them to gradually enable more modern standards as well.

Generalize the ports framework to not be iwlwifi-specifc anymore
in order to prepare for Realtek and others to gain 11n and 11ac
support.

At some point in time, along with a kernel change, we will then flip
the defaults and make this a "disable" rather than an enable option.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Nov 17 2025, 2:53 PM
bz created this revision.
net/wifi-firmware-kmod/Makefile.inc
128–130

Before you had _11n_disable and _disable_11ac=0. Now you have _11n_disable, _disable_11n, and _disable_11ac. Based on the comment, I believe this is intentional, but checking to be certain.

bz marked an inline comment as done.Nov 18 2025, 8:18 PM
bz added inline comments.
net/wifi-firmware-kmod/Makefile.inc
128–130

Yes it is intentional; iwlwifi has the "non-standard" name for 11n; realtek I kept it the normal disable_11xx way but I don't want it to be port specific and as mentioned setting an unknown line does not us.

Also see: https://man.freebsd.org/cgi/man.cgi?query=iwlwifi&apropos=0&sektion=0&manpath=FreeBSD+14.3-RELEASE+and+Ports&arch=default&format=html#LOADER_TUNABLES

bz marked an inline comment as done.Nov 18 2025, 9:58 PM
bz added inline comments.
net/wifi-firmware-kmod/Makefile.inc
128–130

DOH! What did I do... I'll need to pull the drivers straight. Doesn't make sense to do it the other way round. Sigh. Doesn't matter as for any supported (shipping) version they are hard coded to what is supported there. But in the future (16.0, 15.1, 14.4) that will matter.

compat.linuxkpi.rtw88_support_vht: 1
compat.linuxkpi.rtw88_support_ht: 1

So yes, the port is correct, the driver names are just silly but contrary to iwlwifi in rtw8x they are a (temporary) local addition of @bz. I hope we can just remove them all together after a period of testing again from rtw8x. Let's stay tuned.

Ok. I can't spot anything broken with the port.

This revision is now accepted and ready to land.Nov 26 2025, 8:40 PM