From nobody Fri Jul 29 15:15:12 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 4LvWKX4LKtz4XT7f; Fri, 29 Jul 2022 15:15:12 +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 4LvWKX2TpCz3M28; Fri, 29 Jul 2022 15:15:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659107712; 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=tyJ4umu3DkV+8IyZIDXDVv/1fgkNoeIa/WAImy1CJ0I=; b=BgRE5wpTy7qOZbhWn/Nsy7jk6oRQPUk/zZz+8/ne+T1cQNFP38usZkKhmJ5PqxaoLrueX+ SzDXGaNXZecufEBOW3EBxAsgJH6XXo+rPev5kYBYcueq/1IhXSD0JoT/gtdLU2uIS44S4s HQV8FAL9wCVlz9zwUeRJS7K1D+FKhSMmGHZFlgHbyGQtPkcx1hkMhPJeSazLgyZCTaGPTl V5I15RVDocGuCcslXLW1BzwdI77JR9fdZA//b0xP/3evncSMdsckrZqzpncOZFdqrsEqm2 KLdWUET3MX+jm6DG2AvacQz6bynkq6/hvGUnWELWbaKCBO4riyQ/TVwRBgsAhw== 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 4LvWKX1bs2zg1Y; Fri, 29 Jul 2022 15:15:12 +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 26TFFC5a037635; Fri, 29 Jul 2022 15:15:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TFFCBK037634; Fri, 29 Jul 2022 15:15:12 GMT (envelope-from git) Date: Fri, 29 Jul 2022 15:15:12 GMT Message-Id: <202207291515.26TFFCBK037634@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: 5c9f992919ee - main - net80211: improve DDB output. 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/main X-Git-Reftype: branch X-Git-Commit: 5c9f992919eee6771dd15da278228e5f3bcee7b6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659107712; 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=tyJ4umu3DkV+8IyZIDXDVv/1fgkNoeIa/WAImy1CJ0I=; b=Jjrj5y3rcUD38DIWvTM2IB3tUAM3RSTfrGoSA2xsZI2ffh4Aadvt4oWheSbkY3g68OyL5B U/+gwDkT5SQxCZ6/n43g9gfHSMHTe5QCFRkwPiQdGKoXxzj/yOMhP63eosBa3cp8Zi86jQ zBlasYDpGZZ9qazQo5tI/oZJA3Y+/5SOwdJILs8mo16ak7j4UyaJTZK/lVUvl78JeQWQn8 9e84JOe5iWf62lU6ptEqCPUX46/aVhTgwiR+6etAOPYEsvw0l3v/LMcc62AY7KBXingf4L 5vb0gLy557enAN8sLQNMtQT7ZDxBkEjqr99eMxuzGwYAoO3wm+jSqTXoXRGkHQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659107712; a=rsa-sha256; cv=none; b=DSjSTIMCYNpVrz031+EEhSDo4sXoKk05tWo/PxpnCU6c6+OEj0unEjO4h5SNz/L0GhqbdG 8WQV5h15OeaXo5Je8fj0SRkU240g57F2wQLf6bjjHoS8Yv+6VA4ZfnjkPFtBz9LgdiOfnx VULf9apU1z6+UV0zX96l43Aw/1ROXhiM0WyQNqJB2Npw3aetUC/e/bdW4KFfaX1c3sd859 OKgcZQt8ClQV9DFADoielTj8FX5GB60kWzFgEVcQKfGjUTTWDQz4vzkyghp08xvMRl1OQ+ 6dCfQVjBa1MdKc0ZYZ3BddxNv+195u4ncI9QT5350fJ+OUHwHcFVFKLQt8voSQ== 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=5c9f992919eee6771dd15da278228e5f3bcee7b6 commit 5c9f992919eee6771dd15da278228e5f3bcee7b6 Author: Bjoern A. Zeeb AuthorDate: 2022-07-29 00:05:51 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-07-29 15:10:31 +0000 net80211: improve DDB output. Start adding more fields to DDB output related to VHT (11ac) and mark COM, VAP, and STA more explicitly to make show all vaps /.. more readable. Sponsored by: The FreeBSD Foundaton MFC after: 1 week Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D35977 --- sys/net80211/ieee80211_ddb.c | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/sys/net80211/ieee80211_ddb.c b/sys/net80211/ieee80211_ddb.c index e649b3c86fda..af4f8ea74799 100644 --- a/sys/net80211/ieee80211_ddb.c +++ b/sys/net80211/ieee80211_ddb.c @@ -236,7 +236,7 @@ _db_show_sta(const struct ieee80211_node *ni) { int i; - db_printf("%p: mac %s refcnt %d\n", ni, + db_printf("STA: %p: mac %s refcnt %d\n", ni, ether_sprintf(ni->ni_macaddr), ieee80211_node_refcnt(ni)); db_printf("\tvap %p wdsvap %p ic %p table %p\n", ni->ni_vap, ni->ni_wdsvap, ni->ni_ic, ni->ni_table); @@ -254,6 +254,9 @@ _db_show_sta(const struct ieee80211_node *ni) ni->ni_ies.ath_ie); db_printf("\t htcap_ie %p htinfo_ie %p]\n", ni->ni_ies.htcap_ie, ni->ni_ies.htinfo_ie); + db_printf("\t vhtcap_ie %p vhtopmode_ie %p vhtpwrenv_ie %p]\n", + ni->ni_ies.vhtcap_ie, ni->ni_ies.vhtopmode_ie, + ni->ni_ies.vhtpwrenv_ie); if (ni->ni_flags & IEEE80211_NODE_QOS) { for (i = 0; i < WME_NUM_TID; i++) { if (ni->ni_txseqs[i] || ni->ni_rxseqs[i]) @@ -263,6 +266,7 @@ _db_show_sta(const struct ieee80211_node *ni) ni->ni_rxseqs[i] & IEEE80211_SEQ_FRAG_MASK); } } + db_printf("\ttxseq %u rxseq %u fragno %u rxfragstamp %u\n", ni->ni_txseqs[IEEE80211_NONQOS_TID], ni->ni_rxseqs[IEEE80211_NONQOS_TID] >> IEEE80211_SEQ_SEQ_SHIFT, @@ -307,6 +311,21 @@ _db_show_sta(const struct ieee80211_node *ni) ni->ni_mlstate, IEEE80211_MESH_MLSTATE_BITS, ni->ni_mllid, ni->ni_mlpid, ni->ni_mlrcnt, ni->ni_mltval); #endif + + /* VHT state */ + db_printf("\tvhtcap %b vht_basicmcs %#06x vht_pad2 %#06x\n", + ni->ni_vhtcap, IEEE80211_VHTCAP_BITS, + ni->ni_vht_basicmcs, ni->ni_vht_pad2); + db_printf("\tvht_mcsinfo: { rx_mcs_map %#06x rx_highest %#06x " + "tx_mcs_map %#06x tx_highest %#06x }\n", + ni->ni_vht_mcsinfo.rx_mcs_map, ni->ni_vht_mcsinfo.rx_highest, + ni->ni_vht_mcsinfo.tx_mcs_map, ni->ni_vht_mcsinfo.tx_highest); + db_printf("\tvht_chan1/chan2 %u/%u vht_chanwidth %#04x\n", + ni->ni_vht_chan1, ni->ni_vht_chan2, ni->ni_vht_chanwidth); + db_printf("\tvht_pad1 %#04x vht_spare { %#x %#x %#x %#x %#x %#x %#x %#x }\n", + ni->ni_vht_pad1, ni->ni_vht_spare[0], ni->ni_vht_spare[1], + ni->ni_vht_spare[2], ni->ni_vht_spare[3], ni->ni_vht_spare[4], + ni->ni_vht_spare[5], ni->ni_vht_spare[6], ni->ni_vht_spare[7]); } #ifdef IEEE80211_SUPPORT_TDMA @@ -334,7 +353,7 @@ _db_show_vap(const struct ieee80211vap *vap, int showmesh, int showprocs) const struct ieee80211com *ic = vap->iv_ic; int i; - db_printf("%p:", vap); + db_printf("VAP %p:", vap); db_printf(" bss %p", vap->iv_bss); db_printf(" myaddr %s", ether_sprintf(vap->iv_myaddr)); db_printf("\n"); @@ -364,6 +383,7 @@ _db_show_vap(const struct ieee80211vap *vap, int showmesh, int showprocs) db_printf("\tflags_ven=%b\n", vap->iv_flags_ven, IEEE80211_FVEN_BITS); db_printf("\tcaps=%b\n", vap->iv_caps, IEEE80211_C_BITS); db_printf("\thtcaps=%b\n", vap->iv_htcaps, IEEE80211_C_HTCAP_BITS); + db_printf("\tvhtcaps=%b\n", vap->iv_vhtcaps, IEEE80211_VHTCAP_BITS); _db_show_stats(&vap->iv_stats); @@ -518,7 +538,7 @@ _db_show_com(const struct ieee80211com *ic, int showvaps, int showsta, { struct ieee80211vap *vap; - db_printf("%p:", ic); + db_printf("COM: %p:", ic); TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next) db_printf(" %s(%p)", vap->iv_ifp->if_xname, vap); db_printf("\n"); @@ -543,6 +563,7 @@ _db_show_com(const struct ieee80211com *ic, int showvaps, int showsta, db_printf("\tcryptocaps=%b\n", ic->ic_cryptocaps, IEEE80211_CRYPTO_BITS); db_printf("\thtcaps=%b\n", ic->ic_htcaps, IEEE80211_HTCAP_BITS); + db_printf("\tvhtcaps=%b\n", ic->ic_vhtcaps, IEEE80211_VHTCAP_BITS); #if 0 uint8_t ic_modecaps[2]; /* set of mode capabilities */