opnsense-src/sys/dev/iwm
Adrian Chadd 4083793433 [iwm] fix up RSSI calculations for both scan results and normal RX operations.
* hard code a noise floor of -96 for now. The noise floor update code returns
  some "interesting" values that I can't map to anything useful right now.
* Ensure a default noise floor is set - otherwise the initial scan results
  have a noise floor of '0'.
* Fix up the RSSI calculation to be correctly relative to the noise floor.
  The RSSI routines return an absolute value in dBm - so fix this up.
* Cap RSSI values appropriately.
* Ensure we pass in a 1/2 dB unit value in to net80211.

Tested:

* Intel 7260, STA mode

iwm0: <Intel Dual Band Wireless AC 7260> mem 0xf1400000-0xf1401fff irq 17 at device 0.0 on pci2
iwm0: hw rev 0x140, fw ver 16.242414.0, address xx:xx:xx:xx:xx:xx
2016-09-18 05:07:18 +00:00
..
if_iwm.c [iwm] fix up RSSI calculations for both scan results and normal RX operations. 2016-09-18 05:07:18 +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 [iwn] fix firmware command use in iwm_auth(). 2016-04-25 16:13:04 +00:00
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
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
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(4) synchronize driver to DragonFlyBSD version and recent f/w update. 2016-07-26 00:02:17 +00:00
if_iwm_time_event.h [iwn] fix firmware command use in iwm_auth(). 2016-04-25 16:13:04 +00:00
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_iwmreg.h iwm: fix scanning for hidden SSIDs. 2016-09-06 10:08:32 +00:00
if_iwmvar.h iwm(4) synchronize driver to DragonFlyBSD version and recent f/w update. 2016-07-26 00:02:17 +00:00