Go to file
Adrian Chadd d2a72d673f Begin adding support to explicitly set the current chainmask.
Right now the only way to set the chainmask is to set the hardware
configured chainmask through capabilities.  This is fine for forcing
the chainmask to be something other than what the hardware is capable
of (eg to reduce TX/RX to one connected antenna) but it does change what
the HAL hardware chainmask configuration is.

For operational mode changes, it (may?) make sense to separately control
the TX/RX chainmask.

Right now it's done as part of ar5416_reset.c - ar5416UpdateChainMasks()
calculates which TX/RX chainmasks to enable based on the operating mode.
(1 for legacy and whatever is supported for 11n operation.)  But doing
this in the HAL is suboptimal - the driver needs to know the currently
configured chainmask in order to correctly enable things for each
TX descriptor.  This is currently done by overriding the chainmask
config in the ar5416 TX routines but this has to disappear - the AR9300
HAL support requires the driver to dynamically set the TX chainmask based
on the TX power and TX rate in order to meet mini-PCIe slot power
requirements.

So:

* Introduce a new HAL method to set the operational chainmask variables;
* Introduce null methods for the previous generation chipsets;
* Add new driver state to record the current chainmask separate from
  the hardware configured chainmask.

Part #2 of this will involve disabling ar5416UpdateChainMasks() and moving
it into the driver; as well as properly programming the TX chainmask
based on the currently configured HAL chainmask.

Tested:

* AR5416, STA mode - both legacy (11a/11bg) and 11n rates - verified
  that AR_SELFGEN_MASK (the chainmask used for self-generated frames like
  ACKs and RTSes) is correct, as well as the TX descriptor contents is
  correct.
2013-02-25 22:42:43 +00:00
bin Enhance test(1) by adding provision to compare any combination of the 2013-02-25 19:05:40 +00:00
cddl MFV v242732: 2013-02-25 12:33:31 +00:00
contrib Pull in r175962 from upstream llvm trunk: 2013-02-23 22:48:12 +00:00
crypto Import change 6d783560e4aad1e680097d11e89755647a5aba87 from upstream 2013-02-19 17:38:18 +00:00
etc If rtadvd_interfaces is set to "none", start rtadvd without listing 2013-02-25 17:07:42 +00:00
games Remove political propaganda 2013-02-05 14:39:37 +00:00
gnu kgdb enhancements! 2013-02-19 02:09:18 +00:00
include FreeBSD uses #if __BSD_VISIBLE to hide non-standard functions, fix this. 2013-02-14 19:26:58 +00:00
kerberos5 Add -lheimntlm to LDADD directly. 2013-02-11 09:45:24 +00:00
lib libc/opendir: Improve behaviour of union uniquifier: 2013-02-24 20:53:32 +00:00
libexec Since clang 3.2 now has an option to suppress warnings about implicitly 2013-02-16 20:17:31 +00:00
release the NO_PAM option has been finally removed in favor of WITHOUT_PAM. 2013-02-18 02:08:41 +00:00
rescue
sbin Add i/o error counters to hastd(8) and make hastctl(8) display 2013-02-25 20:09:07 +00:00
secure Merge OpenSSL 1.0.1e. 2013-02-13 23:07:20 +00:00
share Document VFCF_SBDRY. 2013-02-21 22:21:45 +00:00
sys Begin adding support to explicitly set the current chainmask. 2013-02-25 22:42:43 +00:00
tools Enhance test(1) by adding provision to compare any combination of the 2013-02-25 19:05:40 +00:00
usr.bin Remove EOL whitespace. 2013-02-25 17:32:10 +00:00
usr.sbin Get rid of unused struct member. 2013-02-25 20:31:47 +00:00
COPYRIGHT Happy New Year 2013! 2012-12-31 11:22:55 +00:00
LOCKS Test commit to make sure commit mail works after moving the server. 2012-12-29 16:03:23 +00:00
MAINTAINERS Fix typo ('a' and 'o' are not the same letter apparently) 2012-10-22 14:48:14 +00:00
Makefile Import OpenSSL 1.0.1e. 2013-02-13 22:15:56 +00:00
Makefile.inc1 In all situations where we need to bootstrap yacc, we also need to 2013-02-25 22:25:56 +00:00
ObsoleteFiles.inc Add more obsolete files. 2013-02-09 13:28:49 +00:00
README Import OpenSSL 1.0.1e. 2013-02-13 22:15:56 +00:00
UPDATING - Fix typo 2013-01-30 10:23:38 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The ``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html