From nobody Tue Dec 03 05:32:39 2024 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 4Y2TnM4kc0z5fn1d; Tue, 03 Dec 2024 05:32:39 +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 4Y2TnM2ys0z46CT; Tue, 3 Dec 2024 05:32:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733203959; 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=77QqagvbLojaCYZjISuZjhuNy0McKcNd+qJVuCvDj6s=; b=OJAqLjj4eN342fsAOl+Lr9XDrQQ7jtbMIb0okk0S9wtQxJExzvoUpZk1WH6+Ry5k2BGKSh lORVEdfVEp5rDxWtK+mCNN2L0U8VoTxWpPGrKW+CU+eh7b7r29PsPI17Cra4p0UlwIXvA6 dtTgqDrI/24fR1lrW+AwGUpe93FqBy1/snnT2qJ+SkNljmucH10lf1jCTGyonEqhR/Y57U 7G9ElFbVB0rxAiYlnOpmRUVQ4S1FcT7t/PuBK2m7AaGuaiOnaSS1HliLkFe/cNOmy5YPFl tB1x0fnGmUBKUoW2Zs9pN790avjXtgwGGgGD3xTmUPwX/gM9JMqshtq9cvn88Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733203959; 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=77QqagvbLojaCYZjISuZjhuNy0McKcNd+qJVuCvDj6s=; b=N88af5wfNr/F2OFHq5GCCgNdG0wVRnD8a9VAyQnu3oXl6X48r7DDxDhDnrF3TF3CjglLDF wzSc+u0p7z2w2L/MBCA4lpctgAxboCK1pY9ZKV05uE/z1V7CQfg6r/bUdksv1K0NQWTOB2 +2OWwcC+MxTNwbgFB2Jr49nWDauWLs/6nxQe1ZMOF8FrfoTNHqQ1UGnMkhaTm3kkzu+6Qx A1UkJ3X4SwooVNlc4v16zVQpduWZzlkWwN0b+pzBiQy3e21xZS9JgtAxHuwypGtzQ+JO8Y Uuwx2XZbYumKlqKhjzackwSmG8w5M0Blr5Bff2Baq4MoF2PeWP204zdClV3Cig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733203959; a=rsa-sha256; cv=none; b=oxS9ecQoAcfcfVQ1uMVqNVssfckQuQgrIW9sL3/d1WHArpOmNdN3xA9CbdpFZGm31uv93U 2xVMezAblUbimOZlV4Y0t5L5dE0wV26HKKKJ61ZoA+yijoaseqO2LRLl3P2XTWCSKw46Re BGgUW+wPoCguXtpv+DAWrnapc1SBc2gzIjU8SPd90F2i6uXXY3y+E5l5b1IPTHaSxgZFLQ mwN0xn7FfKZJKyL7Va7NuQ9b6seJZ5jebO8QKp68qZ5WqxnPIkmOdRObEygPYR+7rAEllW 14iJQ01wgc/o1tZRaShql1xF/7UD4EomQDG+oFgVpi6HSMXQ+Wi1pF/GnduLsg== 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 4Y2TnM2BFNz18W7; Tue, 3 Dec 2024 05:32:39 +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 4B35WdRE042144; Tue, 3 Dec 2024 05:32:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B35WdUZ042141; Tue, 3 Dec 2024 05:32:39 GMT (envelope-from git) Date: Tue, 3 Dec 2024 05:32:39 GMT Message-Id: <202412030532.4B35WdUZ042141@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: 057db5b227d0 - main - iwn: use ieee80211_ht_check_tx_ht() 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: 057db5b227d0e1c1d14c7dbc67c6613e328d1735 Auto-Submitted: auto-generated The branch main has been updated by adrian: URL: https://cgit.FreeBSD.org/src/commit/?id=057db5b227d0e1c1d14c7dbc67c6613e328d1735 commit 057db5b227d0e1c1d14c7dbc67c6613e328d1735 Author: Adrian Chadd AuthorDate: 2024-11-26 01:50:50 +0000 Commit: Adrian Chadd CommitDate: 2024-12-03 05:32:26 +0000 iwn: use ieee80211_ht_check_tx_ht() ieee80211_ht_check_tx_ht() now implements the "is this a HT node with actual HT rates I can transmit to." Differential Revision: https://reviews.freebsd.org/D47755 Reviewed by: bz --- sys/dev/iwn/if_iwn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/iwn/if_iwn.c b/sys/dev/iwn/if_iwn.c index db3eb37ced9e..b887ebf842e1 100644 --- a/sys/dev/iwn/if_iwn.c +++ b/sys/dev/iwn/if_iwn.c @@ -4480,7 +4480,7 @@ iwn_tx_rate_to_linkq_offset(struct iwn_softc *sc, struct ieee80211_node *ni, /* * Figure out if we're using 11n or not here. */ - if (IEEE80211_IS_CHAN_HT(ni->ni_chan) && ni->ni_htrates.rs_nrates > 0) + if (ieee80211_ht_check_tx_ht(ni)) is_11n = 1; else is_11n = 0; @@ -5358,7 +5358,7 @@ iwn_set_link_quality(struct iwn_softc *sc, struct ieee80211_node *ni) * 11n _and_ we have some 11n rates, or don't * try. */ - if (IEEE80211_IS_CHAN_HT(ni->ni_chan) && ni->ni_htrates.rs_nrates > 0) { + if (ieee80211_ht_check_tx_ht(ni)) { rs = (struct ieee80211_rateset *) &ni->ni_htrates; is_11n = 1; } else {