Page MenuHomeFreeBSD

ath_hal_ar9300: implement the TX/RX chainmask override for AR9300 HAL
ClosedPublic

Authored by adrian on Sun, Dec 29, 5:29 AM.
Referenced Files
Unknown Object (File)
Mon, Jan 6, 7:45 PM
Unknown Object (File)
Mon, Jan 6, 2:51 PM
Unknown Object (File)
Mon, Jan 6, 12:12 PM
Unknown Object (File)
Mon, Jan 6, 10:45 AM
Unknown Object (File)
Sat, Jan 4, 9:13 AM
Unknown Object (File)
Fri, Jan 3, 10:56 PM
Unknown Object (File)
Thu, Jan 2, 5:14 PM
Unknown Object (File)
Tue, Dec 31, 3:27 AM
Subscribers

Details

Summary

This commit implements the missing capability set handlers for
setting the transmit and receive chainmasks. I did this for the
AR5416 and later chips years ago, but not for these.

This is especially useful when you're only hooking up one or two
antennas on a 3 antenna device - or you just want to test it like
that.

It also requires updating the number of supported transmit/receive
streams, so also add them here.

Locally Tested:

  • AR9300, STA mode, 1, 2 and 3 stream TX/RX configuration

Diff Detail

Repository
rG FreeBSD src repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 61383
Build 58267: arc lint + arc unit

Event Timeline

generally looks fine

sys/contrib/dev/ath/ath_hal/ar9300/ar9300_misc.c
1083–1085

This is the same expression as above, yes? Why is this one wrapped and the other not?

1091–1092

It's not possible for this to be true, right? It could just be assert <= 3?

sys/contrib/dev/ath/ath_hal/ar9300/ar9300_misc.c
1091–1092

i'm mostly copy-pasta'ing the existing code. What I really need to do is extract owl_get_ntxchains() into the HAL layer and then reuse it everywhere, and do all the sanity checking there.

(It's a BIT of a PITA because it's not txantenna == num tx streams for all chips, same as rx antenna not always num rx streams. I need to go bring more sanity to that mess.)

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