The branch main has been updated by adrian:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=057db5b227d0e1c1d14c7dbc67c6613e328d1735

commit 057db5b227d0e1c1d14c7dbc67c6613e328d1735
Author:     Adrian Chadd <adr...@freebsd.org>
AuthorDate: 2024-11-26 01:50:50 +0000
Commit:     Adrian Chadd <adr...@freebsd.org>
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 {

Reply via email to