Page MenuHomeFreeBSD

ath_rate_sample: fix setting HT rates
ClosedPublic

Authored by adrian on Sat, Mar 1, 10:40 PM.
Referenced Files
F111392197: D49197.id.diff
Mon, Mar 3, 5:13 AM
F111361071: D49197.diff
Sun, Mar 2, 8:29 PM
F111345259: D49197.id151727.diff
Sun, Mar 2, 3:54 PM
F111345161: D49197.id151733.diff
Sun, Mar 2, 3:52 PM
Unknown Object (File)
Sun, Mar 2, 12:00 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.Sat, Mar 1, 11:01 PM
This revision was automatically updated to reflect the committed changes.