svn commit: r299131 - head/sys/dev/bwn

Adrian Chadd adrian at FreeBSD.org
Thu May 5 19:40:27 UTC 2016


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;


More information about the svn-src-all mailing list