HomeFreeBSD

linux80211: fix default deflink.rx_nss

Description

linux80211: fix default deflink.rx_nss

Native Linux implementation sets this as a maximum between 1 and
ht/vht/eht rx SS'es, FreeBSD does the same, but uses 0 as a minimum,
which leads setting it to 0 if we're not in ht/vht case.

This 0 was breaking rtw89 driver, when it was trying to determine
SS number by subtracting 1 from rx_nss and passing the value to the
hardware.

After this patch rtw89 association and simple ping work reliably,
but more work is needed to make the driver robust with heavy traffic
(iperf3) and being long idle.

Reviewed by: bz
Sponsored by: Future Crew LLC
Differential Revision: https://reviews.freebsd.org/D46528

(cherry picked from commit f5a58c2da23930ee4870f2eb54788f4669b9aa33)

Details

Provenance
mishaAuthored on Sep 6 2024, 6:04 PM
bzCommitted on Oct 9 2024, 7:19 PM
Reviewer
bz
Differential Revision
D46528: linux80211: fix default deflink.rx_nss
Parents
rGc8c12a517b31: LinuxKPI: 802.11: move functions between header files
Branches
Unknown
Tags
Unknown