From nobody Tue Apr 05 19:11:53 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 48CDC1A897DA; Tue, 5 Apr 2022 19:11:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KXy1k11kzz3w5k; Tue, 5 Apr 2022 19:11:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649185914; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AlGYIzHzljjwQ6HqUVaFpf/L+qeadr/46a8C2lesiaM=; b=KlRUSHqmt8hUXB2aOL43DX0Zf/jYqNXQ3DCDrb7REzbbaL/eb0frJ6RbXJ/V/TZymSO+0R B/aPcshTUquss09gwDaxIxvmSV8PVyLNBOX1Wt/rJ0iZZEINoU7NLo4cX0qh2mc+HAEcvW kTzZxgNyijZYESiw5E8OfYr25oCORKs/tUp0ryYmtQ4ifqnlE/49DmYMPk8nbwONW2+oZM IhoXeJgBe9jcQzj33HLctQ7D+/O8W2VfZ4kGFKPb0aiGcBd8uiENInD/pm3wQHeaBnA/vH /9l0yYGvrMX1OPHEt6E5IuBpNOF9MyaVWx8Kk5/HdzvuV6lxfS4/QxlOzi1pBw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 00DE446B9; Tue, 5 Apr 2022 19:11:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 235JBrpG097292; Tue, 5 Apr 2022 19:11:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 235JBrbL097291; Tue, 5 Apr 2022 19:11:53 GMT (envelope-from git) Date: Tue, 5 Apr 2022 19:11:53 GMT Message-Id: <202204051911.235JBrbL097291@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: a7352cbd4d67 - releng/13.1 - net80211: correct types for nf and rssi List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.1 X-Git-Reftype: branch X-Git-Commit: a7352cbd4d67aa90790626213afde74cd6de34a1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649185914; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AlGYIzHzljjwQ6HqUVaFpf/L+qeadr/46a8C2lesiaM=; b=Lwk4HOanvYZb6pI5DOxSbO4Dv8Rer8CHhFMYcCsONs1mQI9YiXeF+UTJJ1JYwzhDATUvLb LunYvBtQQteNfwxYwjamCceg2XVSdB32+dDt6e3Mv0aWOjO8X/nywFRo3iwGQvqMAjHMDl LbInrk8Jqs64JNN//n5Y5aq8RI6lr64mi/xssC38mTnkBiyqB9UeLU5Y/wafcWGFiT5aYD llPo6L9Cm3ezkAw8TGAAoOIBPA3PzEzDIbKLK4Adqbgb5jr8FyiyinRWiuy3ESQeXuD4sJ ZfalwyvrCKeYNLhDQdY4dTO2sehYS90In2zDW2dCR4HXZaoS3vlKQdlMouPWWg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649185914; a=rsa-sha256; cv=none; b=G04ZTovXspUT1A5WYngjgCzrbT/ZXpCIhyNZL/xikOav0wGFw4JfUOzr2D1zR6c2D/pEv8 LMvhnJyLYXqn5TPFMHdRgGY+jhFexAspRiN8GZRLWFmEiF6cwC1zD0enum4vPc76rEJbYH P3nSArPeh/nU7Bdz59WPEfPPNOeRH/lG6NokRy6aWNjU12Pn9orwEBmlbgmG7u5kKSKUAQ x6V8WE4oWHxChOM+8foAzCnAuowRKF2KAIIr9kgjW17o0O6vNqvJ9VF/f3WbJQfo2oC4WQ sXXwDFVn7FoFeYHyYTm1N8FwE7JUigooFm/8IWV/Kh5piRfMYiSLKvq4WVGIaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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 AuthorDate: 2022-04-01 22:30:02 +0000 Commit: Bjoern A. Zeeb 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 */