opnsense-src/sys/dev
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
..
aac
aacraid
acpi_support Fix the deciKelvin to Celsius conversion in kernel. 2016-05-22 13:58:32 +00:00
acpica Remove a tunable and always reset system clock while resuming with ACPI. 2016-07-13 19:16:32 +00:00
adb
adlink
advansys
ae
age
agp
aha
ahb
ahci Fix ahci(4) driver attach to controller with 32 ports. 2016-07-07 22:10:10 +00:00
aic
aic7xxx
alc
ale
alpm
altera
amdpm
amdsbwd
amdsmb
amdtemp Fix the deciKelvin to Celsius conversion in kernel. 2016-05-22 13:58:32 +00:00
amr
an Reject ioctl commands for FLSHGCHR and FLSHPCHR if the size is greater 2016-05-24 13:57:23 +00:00
arcmsr
asmc
ata
ath [ath] [ath_hal] break out the duration calculation to optionally include SIFS. 2016-07-15 06:39:35 +00:00
atkbdc Use OF_prop_free instead of direct call to free(9) 2016-05-18 23:39:31 +00:00
auxio
bce
beri
bfe
bge bge: Force chipid to 5720 A0 for 5717 C0 in an early place 2016-06-01 05:15:11 +00:00
bhnd bhnd(4): Add bus pass-aware discovery of platform devices (PMU, 2016-07-12 02:16:48 +00:00
bktr
bm
buslogic
bvm
bwi bwi: switch to ieee80211_add_channel_list_2ghz(). 2016-05-26 16:48:20 +00:00
bwn [bwn] don't use a 1MB CCK RTS frame for 11a OFDM transmissions. 2016-06-06 07:09:02 +00:00
bxe
cadence
cardbus
cas
ce
cesa Use proper interface for FDT parsing and memory mapping in CESA 2016-06-03 18:54:16 +00:00
cfe
cfi
ciss Update some of the TBD entries in ciss(4) to match what's in the pci 2016-05-24 01:42:21 +00:00
cm
cmx
coretemp Fix the deciKelvin to Celsius conversion in kernel. 2016-05-22 13:58:32 +00:00
cp
cpuctl Replace a number of conflations of mp_ncpus and mp_maxid with either 2016-07-06 14:09:49 +00:00
cpufreq
cs
ct
ctau
cx
cxgb (Re-do r302574 with corrected commit message..) 2016-07-11 16:56:51 +00:00
cxgbe Remove redundant declaration for tcp_dooptions, similar to r302576 2016-07-11 17:11:18 +00:00
cy
cyapa
dc
dcons
de
digi
dpaa Set the TLB caching properties for portals at attach time. 2016-05-25 01:23:19 +00:00
dpms
dpt
drm
drm2 Always panic if an invalid capability is passed to capable(..) instead of 2016-07-14 13:55:38 +00:00
dwc EXTRES: Add OF node as argument to all <foo>_get_by_ofw_<bar>() functions. 2016-07-10 18:28:15 +00:00
e1000 Do not initialize the adapter on MTU change when adapter status is down. 2016-07-07 03:39:18 +00:00
ed
eisa
en
ep
esp
et
etherswitch Remove erroneous lock assertions 2016-06-06 10:07:57 +00:00
ex
exca
extres EXTRES: Add OF node as argument to all <foo>_get_by_ofw_<bar>() functions. 2016-07-10 18:28:15 +00:00
fatm
fb Fix NULL-dereference panic if VESA reports zero modes. 2016-05-17 19:00:09 +00:00
fdc
fdt INTRNG - change the way how an interrupt mapping data are provided 2016-06-05 16:20:12 +00:00
fe
ffec Fix erronious mixed use of tx/rx variables/constants in the same expression. 2016-05-27 22:14:39 +00:00
filemon Cleanup COMPAT_FREEBSD32 support. 2016-06-05 18:16:33 +00:00
firewire
flash Add support for Atmel at25df641 flash 2016-06-08 14:22:16 +00:00
fxp
gem
glxiic
glxsb
gpio INTRNG: As follow up of r301451, implement mapping and configuration 2016-06-07 05:08:24 +00:00
gxemul
hatm
hifn
hme
hpt27xx
hptiop
hptmv
hptnr
hptrr
hwpmc Don't panic in hwpmc when stopping sampling. 2016-05-28 13:05:39 +00:00
hyperv hyperv/vmbus: Rework sglist sending. 2016-07-15 06:29:19 +00:00
ic
ichiic Fix ig4 operation for certain machines 2016-05-30 09:05:24 +00:00
ichsmb
ichwd
ida
ie
if_ndis
iicbus EXTRES: Add OF node as argument to all <foo>_get_by_ofw_<bar>() functions. 2016-07-10 18:28:15 +00:00
iir
intpm
io
ioat ioat(4): Check ring links at grow/shrink in INVARIANTS 2016-07-12 21:57:05 +00:00
ipmi
ips
ipw ipw: switch to ieee80211_add_channel() 2016-05-19 22:19:35 +00:00
isci isci: fix ATA PASSTHROUGH fixed sense data format 2016-07-06 20:48:42 +00:00
iscsi Consistently use 'unsigned int' for session IDs. 2016-06-09 13:04:57 +00:00
iscsi_initiator
iser Fix build on i386. 2016-05-27 11:37:02 +00:00
isl
ismt
isp Pass proper for 23xx arguments to isp_endcmd(). 2016-05-20 11:56:16 +00:00
ispfw
iwi
iwm [iwm] Use mbuf for large firmware commands, like OpenBSD does. 2016-06-23 01:13:30 +00:00
iwn iwn: add watchdog for scanning. 2016-05-26 11:12:36 +00:00
ixgb Do not initialize the adapter on MTU change when adapter status is down. 2016-07-07 03:39:18 +00:00
ixgbe Do not initialize the adapter on MTU change when adapter status is down. 2016-07-07 03:39:18 +00:00
ixl Do not initialize the adapter on MTU change when adapter status is down. 2016-07-07 03:39:18 +00:00
jme
joy
kbd Use unsigned version of min() when handling arguments of SETFKEY ioctl. 2016-05-17 22:28:42 +00:00
kbdmux
ksyms
le Use OF_prop_free instead of direct call to free(9) 2016-05-18 23:39:31 +00:00
led
lge
lmc
malo
mbox
mc146818
mca
mcd
md
mdio
mem
mfi
mge
mii Add support for Atmel at25df641 flash 2016-06-08 14:22:16 +00:00
mk48txx
mlx
mlx5 Use correct Q-counter output array. 2016-06-23 09:23:37 +00:00
mly
mmc
mn
mpr Use real values to calculate Max I/O size instead of guessing. 2016-07-12 19:34:10 +00:00
mps Use real values to calculate Max I/O size instead of guessing. 2016-07-12 19:34:10 +00:00
mpt
mrsas Added support for Avago/Broadcom Cutlass(12 Gbps- 16 port count) controllers. 2016-06-02 12:26:55 +00:00
mse
msk
mvs
mwl mwl: switch to ieee80211_add_channel*(). 2016-05-19 22:28:46 +00:00
mxge
my
nand
ncr
nctgpio
ncv
netfpga10g/nf10bmac
netmap
nfe
nfsmb
nge
nmdm
nsp
ntb ntb: Fix LINT 2016-07-12 05:41:34 +00:00
null
nvd
nvme Commit the bits of nda that were missed. This should fix the build. 2016-06-10 06:04:53 +00:00
nvram
nvram2env [nvram2env] fix nvram2env to scan all of memory, not 1/4th 2016-05-23 03:51:15 +00:00
nxge nxge(4): Remove useless self-assignment. 2016-06-03 15:33:21 +00:00
oce
ofw OFWPCI: Fix style(9). 2016-07-11 08:24:04 +00:00
otus
ow
patm
pbio
pccard
pccbb Implement a proper detach method for the PCI-PCI bridge driver. 2016-05-20 00:03:22 +00:00
pcf
pci Remove support for the arm64 pre-INTRNG interrupt framework from the PCI 2016-07-14 16:52:18 +00:00
pcn
pdq
pms
powermac_nvram
ppbus
ppc
proto
psci
pst
pty
puc
qlxgb
qlxgbe net: Use M_HASHTYPE_OPAQUE_HASH if the mbuf flowid has hash properties 2016-06-07 04:51:50 +00:00
qlxge net: Use M_HASHTYPE_OPAQUE_HASH if the mbuf flowid has hash properties 2016-06-07 04:51:50 +00:00
quicc
ral - Replace the magic numbers with something more readable. 2016-06-08 02:37:23 +00:00
random Revert previous commit, until issue with sparc64 resolved. 2016-06-09 14:44:05 +00:00
rc
rccgpio
re
rl
rndtest
rp
rt
rtwn rtwn: fix Tx processing, add some busdma synchronization. 2016-06-20 22:45:19 +00:00
safe
sbni
scc
scd
sdhci Add a convenience macro that masks all the bits related to clock divisors 2016-05-26 02:55:41 +00:00
sec
sf
sfxge sfxge(4): bump version to the closest out-of-tree driver version 2016-06-09 12:33:53 +00:00
sge
si
siba Switch mips/sentry5 to bhnd(4), and unify with mips/broadcom 2016-06-04 19:53:47 +00:00
siis
sio
sis
sk
smbus
smc
sn
snc
snp
sound Add support for simplex USB MIDI devices, which only provide BULK or 2016-05-31 15:05:50 +00:00
speaker
spibus [spigen] add initial spigen driver from green@ 2016-05-26 07:02:20 +00:00
ste
stg
stge
streams
sym Add a riscv define. 2016-06-01 14:03:13 +00:00
syscons
tdfx
terasic
ti
tl
tpm
trm
tsec Add an alternate compatible string for eTSEC devices. 2016-05-19 00:04:58 +00:00
twa
twe
tws
tx
txp
uart EXTRES: Add OF node as argument to all <foo>_get_by_ofw_<bar>() functions. 2016-07-10 18:28:15 +00:00
ubsec
urtwn urtwn: use m_get2() in Rx path. 2016-06-24 23:43:19 +00:00
usb EXTRES: Add OF node as argument to all <foo>_get_by_ofw_<bar>() functions. 2016-07-10 18:28:15 +00:00
utopia
vge
viapm
viawd
videomode
virtio
vkbd
vmware/vmxnet3
vnic INTRNG - change the way how an interrupt mapping data are provided 2016-06-05 16:20:12 +00:00
vr
vt
vte
vx
vxge
watchdog
wb
wbwd
wds
wi wi: fix a typo. 2016-05-20 08:58:06 +00:00
wl
wpi
wtap
xe
xen xen/timer: re-introduce the inittodr call in the resume path 2016-06-09 16:15:01 +00:00
xilinx
xl