freebsd-skq/sys/dev/iwm
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_iwm_binding.c iwm: add 'opt_wlan.h' include into source files. 2016-05-19 23:31:00 +00:00
if_iwm_binding.h
if_iwm_debug.h
if_iwm_led.c iwm(4) synchronize driver to DragonFlyBSD version and recent f/w update. 2016-07-26 00:02:17 +00:00
if_iwm_led.h iwm(4) synchronize driver to DragonFlyBSD version and recent f/w update. 2016-07-26 00:02:17 +00:00
if_iwm_mac_ctxt.c iwm(4) synchronize driver to DragonFlyBSD version and recent f/w update. 2016-07-26 00:02:17 +00:00
if_iwm_mac_ctxt.h Import OpenBSD's iwm WiFi driver for Intel 3160/7260/7265. 2015-08-08 06:06:48 +00:00
if_iwm_pcie_trans.c iwm(4) synchronize driver to DragonFlyBSD version and recent f/w update. 2016-07-26 00:02:17 +00:00
if_iwm_pcie_trans.h
if_iwm_phy_ctxt.c iwm(4) synchronize driver to DragonFlyBSD version and recent f/w update. 2016-07-26 00:02:17 +00:00
if_iwm_phy_ctxt.h
if_iwm_phy_db.c iwm(4) synchronize driver to DragonFlyBSD version and recent f/w update. 2016-07-26 00:02:17 +00:00
if_iwm_phy_db.h [iwm] Add and use iwm_phy_db_free(), to plug phy_db memory leak. 2016-06-23 01:11:52 +00:00
if_iwm_power.c iwm(4) synchronize driver to DragonFlyBSD version and recent f/w update. 2016-07-26 00:02:17 +00:00
if_iwm_power.h Import OpenBSD's iwm WiFi driver for Intel 3160/7260/7265. 2015-08-08 06:06:48 +00:00
if_iwm_scan.c iwm: fix scanning for hidden SSIDs. 2016-09-06 10:08:32 +00:00
if_iwm_scan.h iwm(4) synchronize driver to DragonFlyBSD version and recent f/w update. 2016-07-26 00:02:17 +00:00
if_iwm_time_event.c [iwm] Use htole16 for policy field in struct iwm_time_event_cmd_v2. 2016-09-19 22:06:00 +00:00
if_iwm_time_event.h
if_iwm_util.c iwm(4) synchronize driver to DragonFlyBSD version and recent f/w update. 2016-07-26 00:02:17 +00:00
if_iwm_util.h iwm(4) synchronize driver to DragonFlyBSD version and recent f/w update. 2016-07-26 00:02:17 +00:00
if_iwm.c net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00
if_iwmreg.h [iwm] Use IWM_DEFAULT_SCAN_CHANNELS define as default for sc_capa_n_scan_channels. 2016-09-19 22:23:46 +00:00
if_iwmvar.h net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00