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
F106179961: D47766.diff
Thu, Dec 26, 5:18 PM
F106165965: D47766.id146991.diff
Thu, Dec 26, 11:38 AM
F106161364: D47766.id146992.diff
Thu, Dec 26, 9:50 AM
F106155638: D47766.id147520.diff
Thu, Dec 26, 7:37 AM
F106147929: D47766.id147341.diff
Thu, Dec 26, 4:42 AM
Unknown Object (File)
Wed, Dec 25, 9:47 AM
Unknown Object (File)
Sat, Dec 21, 11:30 AM
Unknown Object (File)
Fri, Dec 20, 9:05 PM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 60909
Build 57793: arc lint + arc unit

Event Timeline

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

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.Thu, Nov 28, 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.Thu, Dec 5, 7:31 AM
This revision was automatically updated to reflect the committed changes.