git: if_iwm - Fix up RSSI calculations for scan results and normal RX operations.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sun Sep 18 01:12:21 PDT 2016


commit d7ecd68be5ad5eebfdec4059c00330235786927f
Author: Imre Vadász <imre at vdsz.com>
Date:   Sun Sep 18 10:07:27 2016 +0200

    if_iwm - Fix up RSSI calculations for 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.
    
    Taken-From: FreeBSD (SVN r305917)

Summary of changes:
 sys/dev/netif/iwm/if_iwm.c | 38 ++++++++++++++++++++++++++++++++------
 1 file changed, 32 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d7ecd68be5ad5eebfdec4059c00330235786927f


-- 
DragonFly BSD source repository


More information about the Commits mailing list