Page MenuHomeFreeBSD

rtwn: add rtwn_ctl_vhtrate(), some cleanups
ClosedPublic

Authored by adrian on Sun, Dec 15, 10:59 PM.
Referenced Files
Unknown Object (File)
Wed, Jan 1, 1:00 AM
Unknown Object (File)
Thu, Dec 26, 3:32 AM
Unknown Object (File)
Thu, Dec 26, 12:33 AM
Unknown Object (File)
Wed, Dec 25, 2:25 PM
Unknown Object (File)
Wed, Dec 25, 7:02 AM
Unknown Object (File)
Mon, Dec 23, 5:46 PM
Unknown Object (File)
Mon, Dec 23, 1:16 PM
Unknown Object (File)
Thu, Dec 19, 7:17 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 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.Tue, Dec 31, 9:05 AM
This revision was automatically updated to reflect the committed changes.