freebsd-nq/sys/dev/ath
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
..
ath_dfs/null dev/ath: minor spelling fixes in comments. 2016-05-02 19:56:48 +00:00
ath_hal [ath] [ath_hal] break out the duration calculation to optionally include SIFS. 2016-07-15 06:39:35 +00:00
ath_rate [ath] [ath_hal] break out the duration calculation to optionally include SIFS. 2016-07-15 06:39:35 +00:00
ah_osdep.c [ath] remove the inline version of the register access macros. 2016-01-03 17:58:11 +00:00
ah_osdep.h [ath] remove the inline version of the register access macros. 2016-01-03 17:58:11 +00:00
if_ath_ahb.c Remove the references to the TX IC lock - i ended up solving this 2015-09-29 03:37:17 +00:00
if_ath_alq.c
if_ath_alq.h [ath] add a placeholder event for debuggin EDMA TX FIFO push events. 2016-06-09 22:01:05 +00:00
if_ath_beacon.c [ath] [ath_hal] break out the duration calculation to optionally include SIFS. 2016-07-15 06:39:35 +00:00
if_ath_beacon.h
if_ath_btcoex_mci.c Fix kernel build. Improper definition location of a variable. 2016-06-02 01:59:41 +00:00
if_ath_btcoex_mci.h [ath] commit initial bluetooth coexistence support for the MCI NICs. 2016-06-02 00:51:36 +00:00
if_ath_btcoex.c [ath] remove now unused parameters. 2016-06-04 08:56:30 +00:00
if_ath_btcoex.h [ath] commit initial bluetooth coexistence support for the MCI NICs. 2016-06-02 00:51:36 +00:00
if_ath_debug.c
if_ath_debug.h [ath] add BTCOEX debug section; modify DPRINTF() to take a no-arg format string. 2016-05-31 04:09:17 +00:00
if_ath_descdma.c [ath] migrate ioctl and busdma memory operations out into separate source files. 2015-11-24 03:42:58 +00:00
if_ath_descdma.h [ath] migrate ioctl and busdma memory operations out into separate source files. 2015-11-24 03:42:58 +00:00
if_ath_ioctl.c dev/ath: minor spelling fixes in comments. 2016-05-02 19:56:48 +00:00
if_ath_ioctl.h [ath] migrate ioctl and busdma memory operations out into separate source files. 2015-11-24 03:42:58 +00:00
if_ath_keycache.c net80211: drop redundant 3rd parameter from iv_key_set(). 2015-10-03 21:48:27 +00:00
if_ath_keycache.h net80211: drop redundant 3rd parameter from iv_key_set(). 2015-10-03 21:48:27 +00:00
if_ath_led.c
if_ath_led.h
if_ath_lna_div.c dev/ath: minor spelling fixes in comments. 2016-05-02 19:56:48 +00:00
if_ath_lna_div.h
if_ath_misc.h net80211: replace internal LE_READ_*/LE_WRITE_* macro with system 2016-04-20 18:29:30 +00:00
if_ath_pci_devlist.h
if_ath_pci.c dev/ath: minor spelling fixes in comments. 2016-05-02 19:56:48 +00:00
if_ath_rx_edma.c [ath] don't debug RX EDMA descriptors that are not yet complete. 2016-06-17 17:01:32 +00:00
if_ath_rx_edma.h
if_ath_rx.c dev/ath: minor spelling fixes in comments. 2016-05-02 19:56:48 +00:00
if_ath_rx.h Begin plumbing ieee80211_rx_stats through the receive path. 2015-05-25 16:37:41 +00:00
if_ath_spectral.c
if_ath_spectral.h
if_ath_sysctl.c [ath] report node queue overflows. 2016-06-09 21:59:36 +00:00
if_ath_sysctl.h
if_ath_tdma.c [ath] [ath_hal] break out the duration calculation to optionally include SIFS. 2016-07-15 06:39:35 +00:00
if_ath_tdma.h
if_ath_tsf.h
if_ath_tx_edma.c [ath] fix TX throughput for EDMA chips by pushing more into the TX FIFO. 2016-06-21 15:38:20 +00:00
if_ath_tx_edma.h
if_ath_tx_ht.c [ath] [ath_hal] break out the duration calculation to optionally include SIFS. 2016-07-15 06:39:35 +00:00
if_ath_tx_ht.h
if_ath_tx.c [ath] [ath_hal] break out the duration calculation to optionally include SIFS. 2016-07-15 06:39:35 +00:00
if_ath_tx.h net80211: separate mbuf cleanup from ieee80211_fragment() 2015-10-12 03:27:08 +00:00
if_ath.c [ath_hal] retire a "long RX desc" flag, store/use the TX/RX timestamp length. 2016-07-08 21:34:39 +00:00
if_athdfs.h
if_athioctl.h [ath] Add counters for STBC TX and LDPC TX. 2016-04-29 01:51:27 +00:00
if_athrate.h
if_athvar.h [ath] add a new buf flag, marking a buffer as involved with ToA/ToD positioning. 2016-07-08 22:20:35 +00:00