HomeFreeBSD

net80211: fix VHT160/80P80/80 chanwidth selection in the "40-" case

Description

net80211: fix VHT160/80P80/80 chanwidth selection in the "40-" case

Depending on the base channel ni_vht_chan2 - ni_vht_chan1 can be
negative. Apply abs() as indicated in the comments right above

CCFS1 - CCFS0= 8 or > 16

in order to fix the channel width selection.

Sponsored by: The FreeBSD Foundation
PR: 293645
Fixes: 4bf049bfeefd9
MFC after: 3 days
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D55717

Details

Provenance
bzAuthored on Mar 8 2026, 12:57 AM
Reviewer
adrian
Differential Revision
D55717: net80211: fix VHT160/80P80/80 chanwidth selection in the "40-" case
Parents
rG53c69fd933dc: LinuxKPI: 802.11: lkpi_sta_auth_to_scan() fail graciously on lsta == NULL
Branches
Unknown
Tags
Unknown