Page MenuHomeFreeBSD

ath_rate_sample: fix setting HT rates
ClosedPublic

Authored by adrian on Mar 1 2025, 10:40 PM.
Referenced Files
F152974980: D49197.id151733.diff
Sat, Apr 18, 10:37 AM
F152974977: D49197.id151727.diff
Sat, Apr 18, 10:37 AM
Unknown Object (File)
Sat, Apr 18, 8:36 AM
Unknown Object (File)
Wed, Apr 15, 11:02 AM
Unknown Object (File)
Wed, Apr 15, 9:50 AM
Unknown Object (File)
Tue, Apr 14, 1:42 AM
Unknown Object (File)
Mon, Apr 13, 6:14 PM
Unknown Object (File)
Fri, Apr 10, 1:59 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz added a subscriber: bz.

Commit message:

Fixes: 7067450010931479f8dd97e51e4c5bf6a4d34c7e

Once could argue we should add a warning to ieee80211_node_set_txrate_ht_mcsrate() if the high bit is set and clear it but the mcs > 76 check will also catch it quickly.

This revision is now accepted and ready to land.Mar 1 2025, 11:01 PM
This revision was automatically updated to reflect the committed changes.