Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2022 15:39:53 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7311128e69b8 - stable/13 - net80211: correct types for nf and rssi
Message-ID:  <202204051539.235Fdr3f001398@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz:

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

commit 7311128e69b8927d866f9db8c9fa7c5d54eff692
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 14:47:08 +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
    
    (cherry picked from commit 4a22cd6c4e5f4fc4a38aa7400742d4005c5ae3de)
---
 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 */
 



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