Page MenuHomeFreeBSD

ath_rate_sample: fix setting HT rates
ClosedPublic

Authored by adrian on Mar 1 2025, 10:40 PM.
Referenced Files
Unknown Object (File)
Fri, Apr 11, 12:52 AM
Unknown Object (File)
Mon, Apr 7, 7:05 AM
Unknown Object (File)
Tue, Mar 25, 8:37 PM
Unknown Object (File)
Mon, Mar 17, 1:46 PM
Unknown Object (File)
Mar 9 2025, 1:24 PM
Unknown Object (File)
Mar 8 2025, 8:32 AM
Unknown Object (File)
Mar 5 2025, 6:19 PM
Unknown Object (File)
Mar 5 2025, 9:42 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.