Page MenuHomeFreeBSD

rtwn: move to using ieee80211_node_get_txrate()
ClosedPublic

Authored by adrian on Jan 23 2025, 2:37 AM.
Referenced Files
Unknown Object (File)
Thu, Feb 27, 12:04 AM
Unknown Object (File)
Wed, Feb 26, 9:35 PM
Unknown Object (File)
Wed, Feb 26, 6:26 PM
Unknown Object (File)
Wed, Feb 26, 6:06 AM
Unknown Object (File)
Wed, Feb 26, 5:37 AM
Unknown Object (File)
Wed, Feb 26, 5:35 AM
Unknown Object (File)
Wed, Feb 26, 5:23 AM
Unknown Object (File)
Wed, Feb 26, 5:14 AM
Subscribers

Details

Summary

Migrate the transmit path to use ieee80211_node_get_txrate(), and handle
VHT rates.

Nothing is currently setting VHT rates, but the driver should now
be ready.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

thj added inline comments.
sys/dev/rtwn/if_rtwn_tx.c
172–173

We should remove the (void) cast while we are here

bz added inline comments.
sys/dev/rtwn/if_rtwn_tx.c
171

I think you want to leave the 0 out here or you'll only initialize the first element of the struct if I am not mistaken.

adrian added inline comments.
sys/dev/rtwn/if_rtwn_tx.c
171

according to brooks/jhb, { 0 } will zero-init all of the fields (but not the padding, which is fine here); {} is C++ / C23-ism and we're only recently at C17.

This revision is now accepted and ready to land.Sat, Feb 15, 12:34 PM