freebsd-skq/sys/dev/usb/wlan
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
..
if_rsu.c rsu: do not restart calibration task when going out of RUN state. 2016-09-25 19:13:07 +00:00
if_rsureg.h net80211 drivers: eliminate any references to sc_rxtap_len/sc_txtap_len (never used here) 2015-10-12 05:21:51 +00:00
if_rum.c net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00
if_rumfw.h
if_rumreg.h rum: add legacy power saving support (STA mode). 2016-03-21 22:29:24 +00:00
if_rumvar.h net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00
if_run.c net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00
if_runreg.h run: switch to ieee80211_add_channel_list_*() 2016-05-26 15:05:37 +00:00
if_runvar.h net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00
if_uath.c net80211 + drivers: hide size of 'bands' array behind a macro. 2016-04-29 22:14:11 +00:00
if_uathreg.h
if_uathvar.h net80211 drivers: eliminate any references to sc_rxtap_len/sc_txtap_len (never used here) 2015-10-12 05:21:51 +00:00
if_upgt.c net80211 + drivers: hide size of 'bands' array behind a macro. 2016-04-29 22:14:11 +00:00
if_upgtvar.h net80211 drivers: eliminate any references to sc_rxtap_len/sc_txtap_len (never used here) 2015-10-12 05:21:51 +00:00
if_ural.c net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00
if_uralreg.h
if_uralvar.h net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00
if_urtw.c urtw: fix unused variable assignments. 2016-06-02 12:01:58 +00:00
if_urtwreg.h urtw: switch to ieee80211_add_channel_list_2ghz(). 2016-05-26 16:15:10 +00:00
if_urtwvar.h net80211 drivers: eliminate any references to sc_rxtap_len/sc_txtap_len (never used here) 2015-10-12 05:21:51 +00:00
if_zyd.c net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00
if_zydfw.h
if_zydreg.h net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00