aboutsummaryrefslogtreecommitdiff
path: root/sys/net80211
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2025-01-12 15:48:59 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2025-02-26 19:29:36 +0000
commit46de4d9fc21dfd8945e95135f607ba4fdfdf3d78 (patch)
treeca083be8ba9c725aa66cab7227a67f05c1929d19 /sys/net80211
parent7067450010931479f8dd97e51e4c5bf6a4d34c7e (diff)
net80211: change ieee80211_ratectl_rate() to not return a rix
There are only a few places where the returned rix is used: * linuxkpi - logging * bwi/bwn - used for finding a fallback rate to choose, which honestly should be returned by the ratectl API * iwm - building the rateset to program into firmware Everyone else uses the dot11rate value in ni->ni_txnode. This is a precursor for VHT and later rate support; where currently there aren't rate tables in ieee80211_phy.c for VHT and later rates. Although it's likely doable to add tables for VHT, 11ax and MU-OFDMA (HE) rates are sufficiently larger/different to just not fit in the current scheme without more refactoring. Differential Revision: https://reviews.freebsd.org/D48603 Reviewed by: bz, thj
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_ratectl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_ratectl.h b/sys/net80211/ieee80211_ratectl.h
index 2eae34763ed4..0e5beb5185cb 100644
--- a/sys/net80211/ieee80211_ratectl.h
+++ b/sys/net80211/ieee80211_ratectl.h
@@ -127,12 +127,12 @@ ieee80211_ratectl_node_deinit(struct ieee80211_node *ni)
vap->iv_rate->ir_node_deinit(ni);
}
-static int __inline
+static void __inline
ieee80211_ratectl_rate(struct ieee80211_node *ni, void *arg, uint32_t iarg)
{
const struct ieee80211vap *vap = ni->ni_vap;
- return vap->iv_rate->ir_rate(ni, arg, iarg);
+ vap->iv_rate->ir_rate(ni, arg, iarg);
}
static __inline void