From nobody Fri Apr 01 22:41:10 2022 X-Original-To: dev-commits-src-main@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 78A521A4FF2D; Fri, 1 Apr 2022 22:41:11 +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 4KVZs324Ktz4fp8; Fri, 1 Apr 2022 22:41:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648852871; 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=0sE4+IJTHVvCknU4cxSuDTin+FZ/ep+9NparvF9CNBI=; b=tLbD6nLpuswNp1zzR3LldA5PTZQHLhNXoMmpF5+GuPIMqUzeQyyHWg3Mz63WLAkdpKRDZs QT/nxoutP6buMHyG+6EtbPSrYqZNhCae4xl98t+tqsbGk/QUAs4u0ksqZ2lbemX5FeQSCS PNmGTovCHSpIfZwnTRsyM10OVWx2B8NRm6RkZq4I96LzWNCYb0xXV2+nZDJe0IBhiEW75G yy7x2aHwmC2Xss71Kb7Dw9baHSCBtzTYYNVMNxi9Iw5emWH2uJH2JZrxb8KNuU5OcWMyqi X4CT0ih0F3/oF8IvWImJF571kwfASJSR1+v/PxODU2S9ktBSp1jYmTO8gya0jg== 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 156131CFAF; Fri, 1 Apr 2022 22:41:11 +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 231MfA8g080083; Fri, 1 Apr 2022 22:41:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 231MfA1I080082; Fri, 1 Apr 2022 22:41:10 GMT (envelope-from git) Date: Fri, 1 Apr 2022 22:41:10 GMT Message-Id: <202204012241.231MfA1I080082@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 4a22cd6c4e5f - main - net80211: correct types for nf and rssi List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 4a22cd6c4e5f4fc4a38aa7400742d4005c5ae3de Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648852871; 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=0sE4+IJTHVvCknU4cxSuDTin+FZ/ep+9NparvF9CNBI=; b=VvI8MdI3qp2pLYFxOs43JAwPZUPGcTSE6NxnyVXk0pVkEdZeCofZ8JWpW2uVWY8O8I7FQf isY8mz/VgFPYdK1DzykdFoSfIsSoaYEkkXNvfH9fGkseO9qTX5NY7+Z7c/PrlRP3dGVZOM XK97PlZT2hNITrcRo7P2Z/9EsjRxWjNS4C+iY+JMDoVr+TmQG0H91aGPFB6zhhwM3h07ni KQtSa+AWNB25HKi/opb/vxMMOTZvJEsAl8LbTaCoXFTLVm1it7j7/clmdjTrzUOvdH0LR7 itv4f9gZ8aRTaYnLMrngXo3yJO4kiKUsdW/D9D2/hTZXgG3z7OXpeUwCHFSkZw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648852871; a=rsa-sha256; cv=none; b=HI/zgB5u7aSr+voKdP3OA0XM/41Oi+HyElpxfQ111mU++n3Eg03DmftzAzfu+Ejrr62dvD ibRluU0He0VTwZIW8VI5CRSTMPKlI/kuDR9YA1+Jmqs6NwXGE2F4BiywF8lVHDacNEowzr Kx5g+Ig/DfJo4CfuO7i4OH0rUmW/Szx13Md2c0UnS5Oa2U4q+dzlVP5ytST6J3pkgZYAtZ ZGQmEfCMVqZWhv+YI6x/+m1QND93dlHbboBIVm/wPeukP2M0F3+ZqvshNCYeVvEWllVfb4 ZxHyxVSu37HQXdaEyxOg4l6AMDwIUk0aDyHGYbZncxe2IiZNDQNFwyHrbzEcyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=4a22cd6c4e5f4fc4a38aa7400742d4005c5ae3de commit 4a22cd6c4e5f4fc4a38aa7400742d4005c5ae3de Author: Bjoern A. Zeeb AuthorDate: 2022-04-01 22:30:02 +0000 Commit: Bjoern A. Zeeb 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 */