git: a7352cbd4d67 - releng/13.1 - net80211: correct types for nf and rssi

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Tue, 05 Apr 2022 19:11:53 UTC
The branch releng/13.1 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=a7352cbd4d67aa90790626213afde74cd6de34a1

commit a7352cbd4d67aa90790626213afde74cd6de34a1
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-04-01 22:30:02 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2022-04-05 19:11:00 +0000

    net80211: correct types for nf and rssi
    
    NF and RSSI should be signed and not unsigned to avoid problems.
    Change the type accordingly.
    
    Sponsored by:   The FreeBSD Foundation
    Approved by:    re (gjb)
    
    (cherry picked from commit 4a22cd6c4e5f4fc4a38aa7400742d4005c5ae3de)
    (cherry picked from commit 7311128e69b8927d866f9db8c9fa7c5d54eff692)
---
 sys/net80211/_ieee80211.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/net80211/_ieee80211.h b/sys/net80211/_ieee80211.h
index 754e4647e82f..3444dfe0a7fa 100644
--- a/sys/net80211/_ieee80211.h
+++ b/sys/net80211/_ieee80211.h
@@ -602,8 +602,8 @@ struct ieee80211_rx_stats {
 	int16_t c_rssi_ext[IEEE80211_MAX_CHAINS];	/* per-chain RSSI */
 
 	/* 32 bits */
-	uint8_t c_nf;			/* global NF */
-	uint8_t c_rssi;			/* global RSSI */
+	int8_t c_nf;			/* global NF */
+	int8_t c_rssi;			/* global RSSI */
 	uint8_t c_chain;		/* number of RX chains involved */
 	uint8_t c_rate;			/* legacy; 11n rate code; VHT MCS */