Page MenuHomeFreeBSD

ath_rate_sample: fix setting HT rates
ClosedPublic

Authored by adrian on Mar 1 2025, 10:40 PM.
Referenced Files
F163077177: D49197.id151733.diff
Sun, Jul 19, 9:20 PM
Unknown Object (File)
Sat, Jul 18, 7:08 AM
Unknown Object (File)
Sat, Jun 27, 1:26 PM
Unknown Object (File)
Mon, Jun 22, 8:09 PM
Unknown Object (File)
May 31 2026, 1:02 AM
Unknown Object (File)
May 18 2026, 10:58 PM
Unknown Object (File)
May 18 2026, 5:29 AM
Unknown Object (File)
May 18 2026, 5:29 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.