aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2024-11-26 01:50:50 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2024-12-03 05:32:26 +0000
commit057db5b227d0e1c1d14c7dbc67c6613e328d1735 (patch)
tree5736e1d004ce811551c7f04ab75f80176035ba09
parent2014462da5b3e630cdbf687d918bbfc0c3a344a4 (diff)
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
-rw-r--r--sys/dev/iwn/if_iwn.c4
1 files 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 {