From nobody Mon Feb 19 08:07:42 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 4TdZsB53z5z5B2rr; Mon, 19 Feb 2024 08:07:42 +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 4TdZsB3ZQgz4JyR; Mon, 19 Feb 2024 08:07:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708330062; 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=+FVj7+P+816pJRu3Six/+VCGOybRemETCfBod/YdgMw=; b=Y/S3YecOthsFU3vZOQEsoaJ9KiXidtPqfzf4FoDtX6/JseMKkA/gtM8tcTyGBUOPiMVGOv UTBSkFDuh2qTSDHFAfrH5hIcXSgrojk2UqvuRviXEHGLd+u5ilT7FM5ILclY3a9Eh6lRE1 N2TL+sL+H4qPvAVTlb7LiRqs9cMej2T+d+g8OoFaSykbE5mmV5/iCdldUAjnzA8Q5Mf6fa V7VaxL91ik5SQBFFaE5htKaKDDnpMFzialxVU8gfY5tsxlJ3+lArrDDqLbYLWp+Vhf0LJn WiKrdBdQvYeg22+IwslfALSABCz6iWs5nnKkg8mzFa78aXQqFeQiJdaJSacyKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708330062; 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=+FVj7+P+816pJRu3Six/+VCGOybRemETCfBod/YdgMw=; b=W7S99QLnL63g7XTzWK3fO9RazwByOzlNpsnipVVlTKCWn0mBcX200l/0I6bJOhALvvFtbf Drhy3F4hfpDAX1pf9iK/EC599Jsola7aTWVrWjj27pNVx0DXNzUTIJAlRTYR2BWH9CU33J 3i+6bWnM73Ba7aNdSKpoNE/W8JbD8H16J+hBDsN/iz5Y4EfpVSksY5wxvs+spsp9laQv1U SN186AC3U5RWtdLllWzgpKARZKfE8Ky74H6i+EegzyaYmN/SWKuBKj5JoT0j57eNR1cmJx bhhtUESeIkXJVGRExbt+VugkfAyPCqbb6GBYqKy3wCwnkwS/qI+zxOO2ceoITw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708330062; a=rsa-sha256; cv=none; b=wrFRkeNB4LBKxuymcbj5dr/x4M8n51TxBq3WR+RHHBPQa31D1fRECoaTg55tC9JRDbgnUF VIv8S3fje6dufa3rz67t2b2BYEyDZIdsCwh7DDQOUow31p9WqKNu8dWklp4xOgb8EgmGmh Hk/XAwGDA72XfwQK/pTrQJP9J6P3G/hfZYpjxJdpwVSsNuQk8evTokbs44mlO8PrnmaVn0 1xnWNfaOxqApMKdVzc6HwrXXHseAGY3+WFBURZSo28fI+qkFlb8m9w9l5QoYH3BFHzeuXb tgcjE5RAeYiFEnP6WtatyViH3LRX+q+nwb/+NnHLaRjeewSPHJKfAkobMAJlxQ== 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 4TdZsB2TFfzRTg; Mon, 19 Feb 2024 08:07:42 +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 41J87gho015539; Mon, 19 Feb 2024 08:07:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41J87g7w015536; Mon, 19 Feb 2024 08:07:42 GMT (envelope-from git) Date: Mon, 19 Feb 2024 08:07:42 GMT Message-Id: <202402190807.41J87g7w015536@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: 71383e75eae9 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 71383e75eae9fa481f725afc8c1e625e7571940a Auto-Submitted: auto-generated The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=71383e75eae9fa481f725afc8c1e625e7571940a commit 71383e75eae9fa481f725afc8c1e625e7571940a Author: Bjoern A. Zeeb AuthorDate: 2023-11-30 18:20:22 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-02-19 08:01:59 +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 a70edfa3acc4..75795342f4b4 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -2669,7 +2669,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",