freebsd-nq/sys/dev/bwi
Andriy Voskoboinyk f6930bec33 net80211: ieee80211_ratectl*: switch to reusable KPI
Replace various void * / int argument combinations with common structures:
- ieee80211_ratectl_tx_status for *_tx_complete();
- ieee80211_ratectl_tx_stats for *_tx_update();

While here, improve amrr_tx_update() for a bit:
1. In case, if receiver is not known (typical for Ralink USB drivers),
refresh Tx rate for all nodes on the interface.
2. There was a misuse:
- otus(4) sends non-decreasing counters (as originally intended);
- but ural(4), rum(4) and run(4) are using 'read & clear' registers
to obtain statistics for some period of time (and those 'last period'
values are used as arguments for tx_update()). If arguments are not big
enough, they are just discarded after the next call.

Fix: move counting into *_tx_update()
(now otus(4) will zero out all node counters after every tx_update() call)

Tested with:
- Intel 3945BG (wpi(4)), STA mode.
- WUSB54GC (rum(4)), STA / HOSTAP mode.
- RTL8188EU (urtwn(4)), STA mode.

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D8037
2016-10-02 20:35:55 +00:00
..
bitops.h
bwimac.c net80211 & wireless drivers: remove duplicate defines (noop) 2015-09-22 02:44:59 +00:00
bwimac.h To avoid sleeping in firmware_get() with bwi mutex held, call 2015-05-27 22:30:21 +00:00
bwiphy.c net80211 & wireless drivers: remove duplicate defines (noop) 2015-09-22 02:44:59 +00:00
bwiphy.h
bwirf.c sys/dev: use our nitems() macro when it is avaliable through param.h. 2016-04-19 23:37:24 +00:00
bwirf.h
if_bwi_pci.c Setup the interrupt handler after bwi_attach(). If IRQ is shared, interrupt 2015-05-27 22:27:15 +00:00
if_bwi.c net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00
if_bwireg.h
if_bwivar.h Replay r286410. Change KPI of how device drivers that provide wireless 2015-08-27 08:56:39 +00:00