Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 May 2016 19:40:26 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r299131 - head/sys/dev/bwn
Message-ID:  <201605051940.u45JeQje041389@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Thu May  5 19:40:26 2016
New Revision: 299131
URL: https://svnweb.freebsd.org/changeset/base/299131

Log:
  [bwn] fix signed-ness of the rssi parameter.
  
  It's a uint8_t from the hardware.
  
  Found by: gcc

Modified:
  head/sys/dev/bwn/if_bwn.c

Modified: head/sys/dev/bwn/if_bwn.c
==============================================================================
--- head/sys/dev/bwn/if_bwn.c	Thu May  5 19:38:53 2016	(r299130)
+++ head/sys/dev/bwn/if_bwn.c	Thu May  5 19:40:26 2016	(r299131)
@@ -5434,7 +5434,7 @@ bwn_hwrate2ieeerate(int rate)
  * Valid for A, B, G, LP PHYs.
  */
 static int8_t
-bwn_rx_rssi_calc(struct bwn_mac *mac, int8_t in_rssi,
+bwn_rx_rssi_calc(struct bwn_mac *mac, uint8_t in_rssi,
     int ofdm, int adjust_2053, int adjust_2050)
 {
 	struct bwn_phy *phy = &mac->mac_phy;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605051940.u45JeQje041389>