Page MenuHomeFreeBSD

rtwn: add rtwn_ctl_vhtrate(), some cleanups
ClosedPublic

Authored by adrian on Dec 15 2024, 10:59 PM.
Referenced Files
Unknown Object (File)
Fri, Jan 10, 5:05 AM
Unknown Object (File)
Wed, Jan 1, 1:00 AM
Unknown Object (File)
Dec 26 2024, 3:32 AM
Unknown Object (File)
Dec 26 2024, 12:33 AM
Unknown Object (File)
Dec 25 2024, 2:25 PM
Unknown Object (File)
Dec 25 2024, 7:02 AM
Unknown Object (File)
Dec 23 2024, 5:46 PM
Unknown Object (File)
Dec 23 2024, 1:16 PM
Subscribers

Details

Summary
  • Add a placeholder rtwn_ctl_vhtrate() which returns the dot11rate control rate to use for the given VHT rate index. Since net80211 currently doesn't have any VHT PHY tables, there's no mapping for us to leverage so just return OFDM 12M for now.
  • Use the new macro to convert rate index to MCS rate
  • Add a printf() in rate2ridx if it's passed a HT/VHT rate.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 61186
Build 58070: arc lint + arc unit

Event Timeline

bz added inline comments.
sys/dev/rtwn/if_rtwn_ridx.h
100

return takes ()

otherwise I am fine with it if you are.

sys/dev/rtwn/if_rtwn_ridx.h
116

and while here you could add them here too and the file might be neat and tidy ;-)

129

Here too.

This revision is now accepted and ready to land.Tue, Dec 31, 9:05 AM
This revision was automatically updated to reflect the committed changes.