From nobody Sun Feb 18 21:11:06 2024 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 4TdJHb2htxz5Blwn; Sun, 18 Feb 2024 21:11:07 +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 4TdJHb15zmz41xs; Sun, 18 Feb 2024 21:11:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708290667; 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=pjXm0Q9m0lgEeeTXJB2YRuZ64FJCNx992Jkf/TzokcA=; b=wcmVSqbk9S0e0hJlw3VGCSnGhq6lVM3Y4xwh3vpX4m+YAulgk55P1tE5hp3NaCZEoWoYlW n9BA4qSxZ5m0Vri8F2pn5yB9PFpjQTpORlfKNTzMU2TrIx2BD9qNH8HOI6dd6QhxakHBQx udxFsxFBcGp2IvvOU1T+Hb1ekllQerlTGyDLP+7k1p1pBgF5LuNa6z0syucYcC4xMWF6ax 8cjJ4vXmrFjq4y8Em9RZyvxV+kUXARnUcVNwB7AV5Y+b18KblN2PhQZY2GBoxYqUNTKNkr LE7rCgOUCKnkO+DX7MuZiXbQgZ04g6hetbQIovi68/MdqJe8DvPdO3EpdJPyIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708290667; 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=pjXm0Q9m0lgEeeTXJB2YRuZ64FJCNx992Jkf/TzokcA=; b=nFsuQpvbvbgiQzo4hF39dT6Dlyw+wm8loThQblgjfYtPaVv/Oa9tbFhewbm/82gFp4pOs/ hr7v8NbTkmUwe+2Y9s3QZh6ldg/ZDqDsFX8WRcd64lltoLCAyikPESFugmwxLN23cz4ZcR 56EIFcWH6VFHgv7QjBbdlrKYBRXRanIYbLHKhbhlPPwZuOSWyfKo9W50Qn8DW4Nzs5MHfi 0OmrOgeLiq3H7jjioPXIiqOw5dJQNIKSKAMWIQnHPyIJ06a+kyY5cp8oEg96TAccL4o1xf O0lJWsF7Vx7gwFhtA5uv1AkCS/pG/+RqIXi7VvyVYa81ig8cUOMZuqk0DTMGyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708290667; a=rsa-sha256; cv=none; b=Z6wE2HeGV7IlNAingkzoxa8abn47yV1BDALO25whjrkgzwgyuTbeWxfP5hwRsKHTxn8+oV vUunqkS7BnfDcI7lRJliH53e72zjSI9Hug7TPnKyr4VGveqWT7M4eecBARspqQM6fwwaQs J1mIHCTehF+G5tO2L57HcUWhm4qpfHMTZKwLZbQ+3ixfNMHdePk3w+vT89sHDWOdsgzq14 o9EKcpfoTubEKqKxpdcWzpjYAl8McgnvheU9QBS/afdBjrcbz/UhhMgNmjJDgIUd9y1ERo 3QICDQIEmshbzFGiYsOFmeNImggaRZWH1VnM1aWKSG1ydfS5+5RVTMCh/HBF4A== 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 4TdJHb0D4sz16Kr; Sun, 18 Feb 2024 21:11:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41ILB6mO013018; Sun, 18 Feb 2024 21:11:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41ILB6B9013015; Sun, 18 Feb 2024 21:11:06 GMT (envelope-from git) Date: Sun, 18 Feb 2024 21:11:06 GMT Message-Id: <202402182111.41ILB6B9013015@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: 826c28fa983a - stable/14 - net80211: ieee80211_dump_node() check for channel to be set 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 826c28fa983a0534fba5e78b4d5d1a4ae50673f1 Auto-Submitted: auto-generated The branch stable/14 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=826c28fa983a0534fba5e78b4d5d1a4ae50673f1 commit 826c28fa983a0534fba5e78b4d5d1a4ae50673f1 Author: Bjoern A. Zeeb AuthorDate: 2023-11-30 18:20:22 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-02-18 16:42:00 +0000 net80211: ieee80211_dump_node() check for channel to be set Avoid panics in case ieee80211_dump_node() gets called before a channel context is set. Sponsored by: The FreeBSD Foundation (cherry picked from commit c93be3079be5f07fe3596ec389826e45f5dc82bd) --- sys/net80211/ieee80211_node.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index f277293ceb14..123da34ad3f1 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -2647,7 +2647,8 @@ ieee80211_dump_node(struct ieee80211_node_table *nt __unused, printf("\tbssid %s essid \"%.*s\" channel %u:0x%x\n", ether_sprintf(ni->ni_bssid), ni->ni_esslen, ni->ni_essid, - ni->ni_chan->ic_freq, ni->ni_chan->ic_flags); + (ni->ni_chan != IEEE80211_CHAN_ANYC) ? ni->ni_chan->ic_freq : 0, + (ni->ni_chan != IEEE80211_CHAN_ANYC) ? ni->ni_chan->ic_flags : 0); printf("\tinact %u inact_reload %u txrate %u\n", ni->ni_inact, ni->ni_inact_reload, ni->ni_txrate); printf("\thtcap %x htparam %x htctlchan %u ht2ndchan %u\n",