Page MenuHomeFreeBSD

rtwn: add rtwn_ctl_vhtrate(), some cleanups
ClosedPublic

Authored by adrian on Dec 15 2024, 10:59 PM.
Referenced Files
F109367350: D48098.id147998.diff
Tue, Feb 4, 3:38 AM
Unknown Object (File)
Sun, Jan 26, 4:32 AM
Unknown Object (File)
Fri, Jan 10, 5:05 AM
Unknown Object (File)
Jan 1 2025, 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
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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

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

return takes ()

otherwise I am fine with it if you are.

sys/dev/rtwn/if_rtwn_ridx.h
116–129

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

142

Here too.

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