Page MenuHomeFreeBSD

iwx: clean up TX AMPDU session establishment and checking
ClosedPublic

Authored by adrian on Thu, Nov 13, 4:36 AM.
Referenced Files
F136272230: D53725.diff
Sun, Nov 16, 11:37 PM
F136222333: D53725.diff
Sun, Nov 16, 6:02 PM
Unknown Object (File)
Sun, Nov 16, 3:47 AM
Unknown Object (File)
Sun, Nov 16, 1:46 AM
Unknown Object (File)
Sun, Nov 16, 1:46 AM
Unknown Object (File)
Sun, Nov 16, 1:46 AM
Unknown Object (File)
Sun, Nov 16, 1:46 AM
Unknown Object (File)
Sat, Nov 15, 11:51 PM
Subscribers

Details

Summary

iwx: clean up TX AMPDU session establishment and checking

  • Send a TX AMPDU exchange successfully; we were allocating the AMPDU TX queue but returning 0 to net80211 was telling it to not establish the TX AMPDU session and none of the BA session tracking stuff would work.
  • Clean up the TX AMPDU queue lookup in the transmit path - only QoS data frames are allowed, not qos null-data, cf/ack/etc frames; only send them if the AMPDU session is established.
  • Tell net80211 that we've established the TX AMPDU session once the firmware queue has been created.
  • Check to make sure we're not double (or more) creating TX AMDPU sessions - only allocate a qid if we're not doing AMPDU yet.
  • Delete IWX_FLAG_AMPDUTX - it's now being properly tracked!

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68624
Build 65507: arc lint + arc unit

Event Timeline

more "correct" fixes, i hope!

adrian edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Thu, Nov 13, 9:26 AM

I am reluctant to click on Request Changes for this but maybe you can still fix the local bits before committing.

It's A-MPDU not AMPDU. sed-replace

sys/dev/iwx/if_iwx.c
3528

could be an uint8_t or if you really wanted an uint16_t

3557

We need to get rid of the magic number. I guess even a bool passing true or defining 1 to something in net80211 will do us good.

10962
/*
 * There is ...
This revision now requires review to proceed.Fri, Nov 14, 1:42 AM
This revision was not accepted when it landed; it landed in state Needs Review.Fri, Nov 14, 2:37 AM
This revision was automatically updated to reflect the committed changes.