Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Apr 2022 22:41:10 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 4a22cd6c4e5f - main - net80211: correct types for nf and rssi
Message-ID:  <202204012241.231MfA1I080082@gitrepo.freebsd.org>

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

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

commit 4a22cd6c4e5f4fc4a38aa7400742d4005c5ae3de
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-01 22:30:02 +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
    MFC after:      3 days
---
 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?202204012241.231MfA1I080082>