From nobody Sat Mar 1 23:33:13 2025 X-Original-To: dev-commits-src-main@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 4Z51bZ30VMz59N3y; Sat, 01 Mar 2025 23:33:14 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z51bZ0CKVz3mP9; Sat, 01 Mar 2025 23:33:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740871994; 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=QMLLCKuGteYfLPcbL/bGMY4vfsC0namrxaNGcl2MfCI=; b=X5pBpiFO1v0iBrcndy5P7SzKg1x66sclGVq3qjiLhRwMfTLz82fcltafXfI0AZsPSoEoub mA3HXgO/sxqCfJU1Q/SbOiexiNWNY9KDEWj+uiyWzDULRSh8VLTdhutliuDDAGmJdizcdq mozzedxYJiGbk0wO3CJ9DXwTNZnDlh9WtiugO1HEP9JQssNijb/L6ees6OO4phOysLpIgg wIjQZ8RB5s+jbmpxKzOBccvGyLI6m733VNu+o5JXbQXSCX3HcmsYOzOXFWQlUSbkKV70DT qqi78Bq+eA/16CqM4ELBgIjC9MeeFsw520RCoKvBjPdOXN71CZswWIKkQVP4Zg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1740871994; a=rsa-sha256; cv=none; b=dsalzDRACkP9H9aAQDkdJ9ufHQFO+4pxXqbh4C1qKIXA+FLppPafsJl3HUTDjSese0zVxm qqYybXniMcD8c2TIsUAcDHvAqZteA9aYz7PNGknH687ZO2xsrj7RpnlsCgpYO5U449ef1j ihWbxw9F+t5ioLoy6XR+nNMSlUI+t/Z4fxNhAx56cB/cUJIrR84XvuML4fCHKdbUie5Nh+ 99TJ2KRWKRnUgoBPRDYAZpCABAhEZTa5N+sJDYevE/PNKP2YWw7GWA0rWZcjm7bfH1wbGu NcywMf176P3VMK39G5/w3n5W/qjogSje0sD4D0OhmQ5PiqsVXcOxKUyRY1qcIA== 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=1740871994; 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=QMLLCKuGteYfLPcbL/bGMY4vfsC0namrxaNGcl2MfCI=; b=R3RTtDa9dddW0ZWCAFqLZbh0zD8vu4YLF8TKQsjmA82Et1IgOGJvn32wX2Iwuf4alyMVxm 2nVL6EoBB15EkgTzDonKLCLWc2kDi71Cv5tEe6/b7MO08pnPmHQESPZfbHyHkzThu9ZDSU s8U35BXUIYfHidKo608h4dv82Yql5xohMRpQdkZ4YTY/X3Y2axk0hausEQLAqTjeYtlYVB /liTq0E1O7psdxeMrhWVxuWI4sXOdwGdBbLgK5wYXH3DKOmQ9p7BQ7ft64HbbS+pF11Ccj TVVAkHGOCF8Z4T60AZ6Us0xd4EUjU9ey6A8W13s2KHRmRN9ik8p03jqBCoEq1Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Z51bY6M2Szd1j; Sat, 01 Mar 2025 23:33:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 521NXDlK052852; Sat, 1 Mar 2025 23:33:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 521NXDtY052849; Sat, 1 Mar 2025 23:33:13 GMT (envelope-from git) Date: Sat, 1 Mar 2025 23:33:13 GMT Message-Id: <202503012333.521NXDtY052849@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Adrian Chadd Subject: git: 10c633ab1204 - main - ath_rate_sample: fix setting HT rates List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: adrian X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 10c633ab1204e13d6fbad9f0f474229eed5fd280 Auto-Submitted: auto-generated The branch main has been updated by adrian: URL: https://cgit.FreeBSD.org/src/commit/?id=10c633ab1204e13d6fbad9f0f474229eed5fd280 commit 10c633ab1204e13d6fbad9f0f474229eed5fd280 Author: Adrian Chadd AuthorDate: 2025-03-01 22:38:53 +0000 Commit: Adrian Chadd CommitDate: 2025-03-01 23:32:56 +0000 ath_rate_sample: fix setting HT rates ieee80211_node_set_txrate_ht_mcsrate() takes an MCS rate from 0..76, the high bit (IEEE80211_RATE_MCS) must not be set. This is definitely my fault - I likely didn't get to testing this diff when I changed it from ieee80211_node_set_txrate_dot11rate() just before landing. Differential Revision: https://reviews.freebsd.org/D49197 Reviewed by: bz --- sys/dev/ath/ath_rate/sample/sample.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/ath/ath_rate/sample/sample.c b/sys/dev/ath/ath_rate/sample/sample.c index 8fba3c68099f..291d1ec64ed7 100644 --- a/sys/dev/ath/ath_rate/sample/sample.c +++ b/sys/dev/ath/ath_rate/sample/sample.c @@ -857,7 +857,8 @@ ath_rate_findrate(struct ath_softc *sc, struct ath_node *an, */ if (rt->info[best_rix].phy == IEEE80211_T_HT) ieee80211_node_set_txrate_ht_mcsrate( - &an->an_node, MCS(best_rix)); + &an->an_node, + MCS(best_rix) & IEEE80211_RATE_VAL); else ieee80211_node_set_txrate_dot11rate( &an->an_node,