From nobody Tue Jan 07 14:51:24 2025 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 4YSDWx0p68z5kgQV; Tue, 07 Jan 2025 14:51:25 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YSDWw5GhNz4MSG; Tue, 7 Jan 2025 14:51:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736261484; 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=JKjhiBsSY2kG/VopdbNo4iAIf2T/t7+Uw5hU9nj28r0=; b=Y3oejxnBQOoPHt41NTcr3LIPJ05Q3hTz7MPgxoMcUsZst0psQ5pDCbyYMh5S2qA/VrlX0i Jd2OZ8ejudLGlC0sT0YxnfCQHJUjARGlVtvKmlx507rsN2l5aCfhl+ez7XhADPxvea3Qfn A3zgkKhBDnbXQxo98Bu6LuqkDDD/AgH7nYuxm0hkdrKBplO4t939uBzTlfq5lnZQZx+ThS hei8J9Hn2cE+9+iTTsTGoyrOLbYwP58ws7Oz1Jsw6R2+rcgXcqDYYhSerNdGfyyO/fZZ9/ HWYEqXLi8U8D453urtSdS5Ki2+QY8YH2YWjTcSpoFWzMJ5DMmwNSDTtHybxfsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736261484; 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=JKjhiBsSY2kG/VopdbNo4iAIf2T/t7+Uw5hU9nj28r0=; b=n66aD3ItP83cZ6e6fhZgoE4/POOC/q2rjY1hdB0xK0e50yyd4sp3kUpsuojcqTBBtp/Dtu AULNj6peC3HjRtiztJWMCY1I3DtxKX9z0HyiACqOjblc4+LoK7624iCTu4iUEDhCmp6bEN n8SB42Kyc7UEekksneglKlh8bgbif30jDK+aPhmY7RQWYvwEd/yHST4/sAkYYJkmWl8gwh CkNCF8H/ySv0zo3hEq+tb+B4LJ0G/JAuXW1e4j/ZoheEe9QiE4TIS2oTvkE+WmPv+nIf83 oDCn2pAU1XvlA+hae5IVKrydWQH5g88OJpFkiwJmaT9qwKLgrzYGyoFl9umFYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736261484; a=rsa-sha256; cv=none; b=Q++c9PImHGBDffmtPPvzUbl6AMK74eQd5DUAKLJHBitGw8K8PnHIaIxHfNduyiHnwLorlg hfSzcsm5Zl/AvertE7/N0gopKQ2BAusrDchOUbwh2JlvbAxiKWdPJ5lsThz2vGJ6kqZeMJ ZsiiqkgAT0uaQ6v681yI8gbEW21FTisriqA1lE9e4Xe6IZC7TT0ufkWX/Td4khAQEu67Jh dcgjD2xHNILdSZVBEDnUdNpzbzOZ0KD7qzpxbjLQrbqdeOMK8Rw4xyuDRho592VPeSxVxS 63TLERcYfnWYzGvw9LUIA4NlmyCPOE3Nknl9XKFt+Gy9/EgMDHHZpwUS6kvMsw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YSDWw48WWzBg; Tue, 07 Jan 2025 14:51:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 507EpOXt046228; Tue, 7 Jan 2025 14:51:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 507EpOw2046226; Tue, 7 Jan 2025 14:51:24 GMT (envelope-from git) Date: Tue, 7 Jan 2025 14:51:24 GMT Message-Id: <202501071451.507EpOw2046226@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: f1aeb5d850cf - main - LinuxKPI: 802.11: add a print mask for ieee80211_rx_status_flags bits 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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: f1aeb5d850cf26418fb70a16d1304b92c45b5f1d Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=f1aeb5d850cf26418fb70a16d1304b92c45b5f1d commit f1aeb5d850cf26418fb70a16d1304b92c45b5f1d Author: Bjoern A. Zeeb AuthorDate: 2025-01-07 12:16:57 +0000 Commit: Bjoern A. Zeeb CommitDate: 2025-01-07 14:51:03 +0000 LinuxKPI: 802.11: add a print mask for ieee80211_rx_status_flags bits Add a print mask for use with %b to aid debugging. It is a lot easier to read names than numbers. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/compat/linuxkpi/common/include/net/mac80211.h | 11 +++++++++++ sys/compat/linuxkpi/common/src/linux_80211.c | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/net/mac80211.h b/sys/compat/linuxkpi/common/include/net/mac80211.h index dff152caf140..3aa383554e93 100644 --- a/sys/compat/linuxkpi/common/include/net/mac80211.h +++ b/sys/compat/linuxkpi/common/include/net/mac80211.h @@ -625,6 +625,17 @@ enum ieee80211_rx_status_flags { RX_FLAG_FAILED_PLCP_CRC = BIT(31), }; +#define IEEE80211_RX_STATUS_FLAGS_BITS \ + "\20\1ALLOW_SAME_PN\2AMPDU_DETAILS\3AMPDU_EOF_BIT\4AMPDU_EOF_BIT_KNOWN" \ + "\5DECRYPTED\6DUP_VALIDATED\7FAILED_FCS_CRC\10ICV_STRIPPED" \ + "\11MACTIME_PLCP_START\12MACTIME_START\13MIC_STRIPPED" \ + "\14MMIC_ERROR\15MMIC_STRIPPED\16NO_PSDU\17PN_VALIDATED" \ + "\20RADIOTAP_HE\21RADIOTAP_HE_MU\22RADIOTAP_LSIG\23RADIOTAP_VENDOR_DATA" \ + "\24NO_SIGNAL_VAL\25IV_STRIPPED\26AMPDU_IS_LAST\27AMPDU_LAST_KNOWN" \ + "\30AMSDU_MORE\31MACTIME_END\32ONLY_MONITOR\33SKIP_MONITOR" \ + "\348023\35RADIOTAP_TLV_AT_END\36MACTIME\37MACTIME_IS_RTAP_TS64" \ + "\40FAILED_PLCP_CRC" + enum mac80211_rx_encoding { RX_ENC_LEGACY = 0, RX_ENC_HT, diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index d66bc40f40f6..77e23775ba19 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -5333,13 +5333,13 @@ linuxkpi_ieee80211_rx(struct ieee80211_hw *hw, struct sk_buff *skb, /* Implement a dump_rxcb() !!! */ if (linuxkpi_debug_80211 & D80211_TRACE_RX) - printf("TRACE-RX: %s: RXCB: %ju %ju %u, %#0x, %u, %#0x, %#0x, " + printf("TRACE-RX: %s: RXCB: %ju %ju %u, %b, %u, %#0x, %#0x, " "%u band %u, %u { %d %d %d %d }, %d, %#x %#x %#x %#x %u %u %u\n", __func__, (uintmax_t)rx_status->boottime_ns, (uintmax_t)rx_status->mactime, rx_status->device_timestamp, - rx_status->flag, + rx_status->flag, IEEE80211_RX_STATUS_FLAGS_BITS, rx_status->freq, rx_status->bw, rx_status->encoding,