git: 4a22cd6c4e5f - main - net80211: correct types for nf and rssi
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 01 Apr 2022 22:41:10 UTC
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 */