FreeBSD src
Go to file
Adrian Chadd 7ff1939db0 [ath] [ath_hal] break out the duration calculation to optionally include SIFS.
The pre-11n calculations include SIFS, but the 11n ones don't.

The reason is that (mostly) the 11n hardware is doing the SIFS calculation
for us but the pre-11n hardware isn't.  This means that we're over-shooting
the times in the duration field for non-11n frames on 11n hardware, which
is OK, if not a little inefficient.

Now, this is all fine for what the hardware needs for doing duration math
for ACK, RTS/CTS, frame length, etc, but it isn't useful for doing PHY
duration calculations.  Ie, given a frame to TX and its timestamp, what
would the end of the actual transmission time be; and similar for an
RX timestamp and figuring out its original length.

So, this adds a new field to the duration routines which requests
SIFS or no SIFS to be included.  All the callers currently will call
it requesting SIFS, so this /should/ be a glorious no-op.  I'm however
planning some future work around airtime fairness and positioning which
requires these routines to have SIFS be optional.

Notably though, the 11n version doesn't do any SIFS addition at the moment.
I'll go and tweak and verify all of the packet durations before I go and
flip that part on.

Tested:

* AR9330, STA mode
* AR9330, AP mode
* AR9380, STA mode
2016-07-15 06:39:35 +00:00
bin Back out non-collating [a-z] ranges. 2016-07-14 09:34:42 +00:00
cddl zpool(8): update Hot Spares section to mention zfsd(8) 2016-07-13 21:27:10 +00:00
contrib Back out non-collating [a-z] ranges. 2016-07-14 09:45:07 +00:00
crypto Revert r301551, which added blacklistd(8) to sshd(8). 2016-06-24 23:22:42 +00:00
etc Start jails non-parallel if jail_parallel_start is NO. This was true 2016-07-14 20:17:08 +00:00
gnu Back out non-collating [a-z] ranges. 2016-07-14 09:47:49 +00:00
include Remove incorrect attributes from posix_memalign(3) declaration. 2016-07-05 22:30:29 +00:00
kerberos5 DIRDEPS_BUILD: Update dependencies 2016-06-14 16:55:05 +00:00
lib Fix aio system call wrappers in librt. 2016-07-14 23:28:53 +00:00
libexec Fix race for incrementally rebuilding VERSION_MAP. 2016-07-03 17:28:39 +00:00
release Reduce the set of things on the disc1 image to those on the bootonly image. 2016-07-13 02:07:36 +00:00
rescue DIRDEPS_BUILD: Fix and hookup rescue/rescue to the build. 2016-05-26 23:20:40 +00:00
sbin r302561 broke buildworld. This patch fixes that. 2016-07-11 13:41:40 +00:00
secure Revert r301551, which added blacklistd(8) to sshd(8). 2016-06-24 23:22:42 +00:00
share Fix rendering issues. 2016-07-14 23:35:55 +00:00
sys [ath] [ath_hal] break out the duration calculation to optionally include SIFS. 2016-07-15 06:39:35 +00:00
targets Add clang-format under WITH_CLANG_EXTRAS. 2016-06-17 16:46:58 +00:00
tests On FreeBSD there is a setsockopt option SO_USER_COOKIE which allows 2016-07-08 23:44:09 +00:00
tools Allow to install various components of the locales independantly 2016-07-08 23:07:48 +00:00
usr.bin Include command line arguments in core dump process info. 2016-07-14 23:20:05 +00:00
usr.sbin Fix up the order in which jail creation processes are run, to preserve 2016-07-14 20:15:55 +00:00
.arcconfig Remove project.name which is a product of a bygone era. 2016-04-21 04:33:07 +00:00
.arclint
COPYRIGHT
LOCKS
MAINTAINERS Add myself to MAINTAINERS. 2016-03-14 16:27:43 +00:00
Makefile Revert r302670 and r302671 for now. 2016-07-13 01:35:53 +00:00
Makefile.inc1 When building multiple kernels using KERNCONF, non-existent KERNCONF 2016-07-15 04:43:38 +00:00
Makefile.libcompat WITH_SYSTEM_COMPILER: Avoid using GCC4.8+ logic on native GCC4.2 platforms. 2016-06-29 01:50:30 +00:00
ObsoleteFiles.inc Don't delete usr/share/local/kk_KZ.UTF-8 with "make delete-old" after r302329 2016-07-14 14:16:20 +00:00
README README: remove nonexistent 'games' directory. 2016-05-18 10:43:13 +00:00
UPDATING Document that missing KERNCONF files will now cause buildkernel to fail. 2016-07-15 04:50:40 +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.  See build(7)
and 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.  See build(7), config(8),
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
for more information.

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 kernel configuration files reside in the sys/<arch>/conf
sub-directory.  GENERIC is the default configuration used in release builds.
NOTES contains entries and documentation for all possible
devices, not just those commonly used.


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.

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.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

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