Page MenuHomeFreeBSD

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

Authored by bz on Mon, Nov 17, 2:53 PM.
Tags
None
Referenced Files
F136902633: D53789.diff
Thu, Nov 20, 1:39 PM
F136893777: D53789.id166603.diff
Thu, Nov 20, 12:02 PM
F136893768: D53789.id.diff
Thu, Nov 20, 12:02 PM
F136893629: D53789.id166572.diff
Thu, Nov 20, 12:01 PM
F136893006: D53789.diff
Thu, Nov 20, 11:55 AM
Unknown Object (File)
Tue, Nov 18, 7:52 AM
Unknown Object (File)
Tue, Nov 18, 2:39 AM
Unknown Object (File)
Tue, Nov 18, 1:48 AM
Subscribers
None

Details

Reviewers
jrm
Group Reviewers
Ports Committers
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

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 68702
Build 65585: arc lint + arc unit

Event Timeline

bz requested review of this revision.Mon, Nov 17, 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.Tue, Nov 18, 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.Tue, Nov 18, 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.