Page MenuHomeFreeBSD

rtwn: use ieee80211_ht_get_node_ampdu_density(), fix programming MAX_AGG
ClosedPublic

Authored by adrian on Tue, Nov 26, 5:06 PM.
Referenced Files
Unknown Object (File)
Thu, Dec 5, 7:30 AM
Unknown Object (File)
Fri, Nov 29, 8:44 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.Thu, Nov 28, 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.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.