Page MenuHomeFreeBSD

rtwn: use ieee80211_ht_get_node_ampdu_density(), fix programming MAX_AGG
ClosedPublic

Authored by adrian on Nov 26 2024, 5:06 PM.
Referenced Files
Unknown Object (File)
Tue, Jan 7, 1:23 AM
Unknown Object (File)
Fri, Dec 27, 5:44 AM
Unknown Object (File)
Thu, Dec 26, 5:18 PM
Unknown Object (File)
Thu, Dec 26, 11:38 AM
Unknown Object (File)
Thu, Dec 26, 9:50 AM
Unknown Object (File)
Thu, Dec 26, 7:37 AM
Unknown Object (File)
Thu, Dec 26, 4:42 AM
Unknown Object (File)
Wed, Dec 25, 9:47 AM
Subscribers

Details

Summary
  • use ieee80211_ht_get_node_ampdu_density() now instead of the vap->iv_ampdu_density, so the correct density is used in AP/IBSS/mesh modes.
  • MAX_AGG controls how many frames are to be sent in an A-MPDU. It maps to ((MAX_AGG * 2) + 1) == npackets. 0x1f (31) means 64 packets. So, instead of hard-coding 0x1f, use the negotiated block-ack window size.

Diff Detail

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

Event Timeline

bz requested changes to this revision.Nov 28 2024, 1:00 AM
bz added a subscriber: bz.
bz added inline comments.
sys/dev/rtwn/rtl8192c/r92c_tx.c
300

If you do the assignment outside the declaration you don't have to wrap; also you can do it when you need it.
(same in the other file)

This revision now requires changes to proceed.Nov 28 2024, 1:00 AM

pull window calc code into their own routines

This revision was not accepted when it landed; it landed in state Needs Review.Dec 5 2024, 7:31 AM
This revision was automatically updated to reflect the committed changes.