From nobody Wed Apr 1 04:34:08 2026 X-Original-To: dev-commits-src-branches@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 4flsZT3VdBz6RbpK for ; Wed, 01 Apr 2026 04:34:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4flsZT0Scgz3M6p for ; Wed, 01 Apr 2026 04:34:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775018049; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a8L8MRIlDP3NVhRR+o1GMmtsZg/RaWzH8BPOIbALV88=; b=Xa4R8IaKPJJ4TP85dydrSaDVxVrPZMCiMuPZoAp22W5/kzSPlqO9xEMprxSlklT7uLJtFS RKlwNKy+CSy7WGOE0UgnnNnFINiKRb0OI5NZ8JAQamxUrydqo7YahqlcAAfyvx8lAFHpCX kTVRrx+3De+P0GvrNGa2z7jENkuLOtb8FYe69fPrKO7D6wDC10U0lK55jkiExULh9nE7BQ 8kCNmvllMkvjzBXn42ZCJjfmi2hxlHG6LPSf/ChEq9pm4xOjZHrgGNfpwa+aWonqxkSV23 xB4Q8la0WUohu0K7EG14JJE6D/rt4sRsGnHbsXiogdIXCbcmQdkECwt/6nNFMg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775018049; a=rsa-sha256; cv=none; b=E6kNz2b31mfU2HIdL5L3CWZUDrZcmALnxwMArDLxS6BKlSXsiNDebTyVZq5QDM9wLDb3eZ yeyfQVF0bKH2C8SPw0zBUHNWfB7SToYC3qGtiRig/bMSA4VoOFAgzTDSnHy8MOUuGrM+69 lRUuqPhsbg2t2B5cmCSziirUYO3exvF/6AFn1d3/ZaUcm0FoPAht97lnhCSF8LkUZ/2aaD MC9m7vioJKmDs61BY7IR8SwAe9dF38epa/w4ZaeKPnXueWodeDTXnlwXiv8NpFOZwXJwG9 sVjEXEXznNqRDn0ntjSLMlav3OfM4eAjD7164pdEjtJ+yLegkqp2PCLrWvTlVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775018049; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a8L8MRIlDP3NVhRR+o1GMmtsZg/RaWzH8BPOIbALV88=; b=Bj/0nB+7iFb7A0p9PWbpXkwzADyTOQFmddmt4EY0A7PJVXEwD1u/Ux9x2TFAZIgxEa8o2Z sejliA8rY+69FLwOu3Ij2igeXCqFkESdcVBMKfne7SygJzyEp6isHSh4N07n4d09XL1W7P Df1l+hQE/8POJdVA4Bb8FiRwxnhDg4iyB96dtd8/5drDcjbcgCls95IQNP7JNqbRtMUMee 5043sfjMlQdg6rMT8LLCqpZY+R1m7a5WNy+QytzJACtggNhrs20zswEjpjjAMfVkszSi+d mfrZLk3liG17hiEfcGt6CFFJKElrFr8m2t/NYXrd5yEwJi39+7YyJ0n/PoT7fA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4flsZS75glz11Dq for ; Wed, 01 Apr 2026 04:34:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 42713 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 01 Apr 2026 04:34:08 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Bjoern A. Zeeb Subject: git: f4e018e9a49b - stable/14 - net80211: fix VHT160/80P80/80 chanwidth selection in the "40-" case List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: f4e018e9a49b7bf4ddced51ad1ffc4415182cb45 Auto-Submitted: auto-generated Date: Wed, 01 Apr 2026 04:34:08 +0000 Message-Id: <69cca040.42713.ac63325@gitrepo.freebsd.org> The branch stable/14 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=f4e018e9a49b7bf4ddced51ad1ffc4415182cb45 commit f4e018e9a49b7bf4ddced51ad1ffc4415182cb45 Author: Bjoern A. Zeeb AuthorDate: 2026-03-08 00:57:33 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-04-01 04:33:47 +0000 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 Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D55717 (cherry picked from commit 6cfd2b93e68061c7831016b91c2e308d01658764) (cherry picked from commit 68fcf0b94c5167f89481052f358064c9b6732553) --- sys/net80211/ieee80211_ht.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/net80211/ieee80211_ht.c b/sys/net80211/ieee80211_ht.c index db5d7a90918c..697841a0ce86 100644 --- a/sys/net80211/ieee80211_ht.c +++ b/sys/net80211/ieee80211_ht.c @@ -38,6 +38,7 @@ #include #include +#include #include #include #include @@ -2028,11 +2029,11 @@ do { \ } /* CCFS1 > 0 and | CCFS1 - CCFS0 | = 8 */ - if (ni->ni_vht_chan2 > 0 && (ni->ni_vht_chan2 - ni->ni_vht_chan1) == 8) + if (ni->ni_vht_chan2 > 0 && abs(ni->ni_vht_chan2 - ni->ni_vht_chan1) == 8) can_vht160 = can_vht80 = true; /* CCFS1 > 0 and | CCFS1 - CCFS0 | > 16 */ - if (ni->ni_vht_chan2 > 0 && (ni->ni_vht_chan2 - ni->ni_vht_chan1) > 16) + if (ni->ni_vht_chan2 > 0 && abs(ni->ni_vht_chan2 - ni->ni_vht_chan1) > 16) can_vht80p80 = can_vht80 = true; /* CFFS1 == 0 */