From nobody Thu Jun 5 14:34:13 2025 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 4bCn5K61wjz5xvFr; Thu, 05 Jun 2025 14:34:13 +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 4bCn5K3z3Bz3XJ1; Thu, 05 Jun 2025 14:34:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749134053; 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=OAzlLM2p4w4VRW66r9H5LQ9kjUrZqiT1o72fx7lMYwc=; b=c98FFe5VrQWImh49VWUsSqUmY7Vpiw+KV+/xcB4EXYGyWoSeieQCSjTE3lY4BFHwU12uD/ VOwrtm1oJuymOIhzHCK9U7yt363+9q79jnRVhAM9fk9XUv0rNVf5+PnJBZBYYEf1tMhevQ QNJXcVAFrkCc3cgYzudMAxkIFzhzylP1Jl/Iz3YWzahCUzATAUuWBNMpo0BPePeBnoyKTw ToeYf0cXLXtOrfNkkzM5S43aYA8lkxTYSmB5q0Mq7otZpyjNpjl/amx8aP822ph2+eeYVk I9zGEF9eFDHV5ixGSgR8hC1iSMQ5VAXVspkSfTRnDznA4TsQ2WAdQIV4xnWL9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749134053; 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=OAzlLM2p4w4VRW66r9H5LQ9kjUrZqiT1o72fx7lMYwc=; b=XPafqfgwvvaekQWJMVb9THEGgD+2yu66JOWQccaoiKs68TBAeyPw5DxjifV8FrCr1H73WL POdgYIVFWNo+F8c1CF3mmn0BTwhIqxIKxm7nM1Jpr9PVMMpBffBWR6RuarASKXNCAbAtSB 9ZOWqZBQNqq7MwWfZJGY02lIx3uOAMOD4jMmlP7y97w6m3zForh9NwZnr+td59qHFi/6Sp Eqd/2PeG7fhPnkWkoFbPqT3wT7ZVZItlI00OtfHI27zd3NdVAmESjKW0uaH8wCxsrN+jRC 95wD9TTO1Z50nx3UUP28rsx/u2nft0mPZ5F60R5EiycOSvCS4vHYvKorgv61ug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1749134053; a=rsa-sha256; cv=none; b=qz1JCRfnuJYB8Sg3GIjOUpsZdyDFEQbLsFUGTcBTwwdDR2VNO8U86W7oZHVVueIAfp9gtL vyXm6sh/Ki1i4XFa5l2YacwXhEpIS3koj2I/6/5WI38t2OKyOCr0WuGwsD41n6XHnut+9Q DkWVxAdIpy3xbM1H5qvWzS7ikcRd6Cvmi8y7hHlsrLXETzFxKntNVnmfeWv+pmpvAu+6jT 63171Kcxw8VUGCFDQdZxiB5Utv/APzun8qC0OrDEMmlGOleiAheDr2rv0mPQd45+RAbn5m lfx9RcqnVBcP/UfvVEewUjuahHI5rtd4tBtnBe0g6oEGCIm+g7NHaUHpuFjPKA== 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 4bCn5K3Q2Rz1CBG; Thu, 05 Jun 2025 14:34:13 +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 555EYD00056883; Thu, 5 Jun 2025 14:34:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 555EYDH0056880; Thu, 5 Jun 2025 14:34:13 GMT (envelope-from git) Date: Thu, 5 Jun 2025 14:34:13 GMT Message-Id: <202506051434.555EYDH0056880@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: fa02d9fceab7 - main - net80211: add the beginning of the extfield information elements (IE ext) 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-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: fa02d9fceab7d452d5b3312a89b4e7b95529edcd Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=fa02d9fceab7d452d5b3312a89b4e7b95529edcd commit fa02d9fceab7d452d5b3312a89b4e7b95529edcd Author: Bjoern A. Zeeb AuthorDate: 2025-06-02 16:00:37 +0000 Commit: Bjoern A. Zeeb CommitDate: 2025-06-05 14:33:50 +0000 net80211: add the beginning of the extfield information elements (IE ext) The original list of IEs got expanded from TLV to TLextTV. If the T matches 255 then we have a second list of IEs where the meaning of TL stays the same. That means the 1 octet extT is part of the length and the value starts at ie+3. Start populating the list with IEEE802.11-2020 and 802.11ax-2021 values. They will be initially used to start decoding some of the announced IEs for ifconfig [-v] list (scan|sta). That should help users with AX-enabled APs to see this (rather than no or UNKNOWN_ELEMID_255 and make debugging easier once we implement 11ax. Sposored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D50674 --- sys/net80211/ieee80211.h | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/sys/net80211/ieee80211.h b/sys/net80211/ieee80211.h index bab74d0ca41c..cca721e6b54e 100644 --- a/sys/net80211/ieee80211.h +++ b/sys/net80211/ieee80211.h @@ -1102,6 +1102,7 @@ struct ieee80211_ie_vht_txpwrenv { * Management information element payloads. * * 802.11-2020 Table 9-92 (Element IDs). + * 802.11ax-2021 */ enum { @@ -1343,6 +1344,74 @@ enum { IEEE80211_ELEMID_EXTFIELD = 255 }; +enum ieee80211_elemid_ext { + IEEE80211_ELEMID_EXT_ASSOC_DELAY_INFO = 1, + IEEE80211_ELEMID_EXT_FILS_REQ_PARAMS = 2, + IEEE80211_ELEMID_EXT_FILS_KEY_CONFIRM = 3, + IEEE80211_ELEMID_EXT_FILS_SESSION = 4, + IEEE80211_ELEMID_EXT_FILS_HLP_CONTAINER = 5, + IEEE80211_ELEMID_EXT_FILS_IP_ADDR_ASSIGNMENT = 6, + IEEE80211_ELEMID_EXT_KEY_DELIVERY = 7, + IEEE80211_ELEMID_EXT_FILS_WRAPPED_DATA = 8, + IEEE80211_ELEMID_EXT_FTM_SYNC_INFO = 9, + IEEE80211_ELEMID_EXT_EXT_REQ = 10, + IEEE80211_ELEMID_EXT_EST_SERVICE_PARAM_INBOUND = 11, + IEEE80211_ELEMID_EXT_FILS_PUBLIC_KEY = 12, + IEEE80211_ELEMID_EXT_FILS_NONCE = 13, + IEEE80211_ELEMID_EXT_FUTURE_CHAN_GUIDANCE = 14, + IEEE80211_ELEMID_EXT_SERVICE_HINT = 15, + IEEE80211_ELEMID_EXT_SERVICE_HASH = 16, + IEEE80211_ELEMID_EXT_CDMG_CAPA = 17, + IEEE80211_ELEMID_EXT_DYN_BW_CTRL = 18, + IEEE80211_ELEMID_EXT_CDMG_EXT_SCHEDULE = 19, + IEEE80211_ELEMID_EXT_SSW_REPORT = 20, + IEEE80211_ELEMID_EXT_CLUSTER_PROBE = 21, + IEEE80211_ELEMID_EXT_EXT_CLUSTER_REPORT = 22, + IEEE80211_ELEMID_EXT_CLUSTER_SW_ANNOUNCEMENT = 23, + IEEE80211_ELEMID_EXT_ENHANCED_BEAM_TRACKING = 24, + IEEE80211_ELEMID_EXT_SPSH_REPORT = 25, + IEEE80211_ELEMID_EXT_CLUSTER_INTERF_ASSESS = 26, + IEEE80211_ELEMID_EXT_CMMG_CAPA = 27, + IEEE80211_ELEMID_EXT_CMMG_OPER = 28, + IEEE80211_ELEMID_EXT_CMMG_OPMODE_NOTIF = 29, + IEEE80211_ELEMID_EXT_CMMG_LINK_MARGIN = 30, + IEEE80211_ELEMID_EXT_CMMG_LINK_ADAP_ACK = 31, + /* 32 reserved. */ + IEEE80211_ELEMID_EXT_PASSWORD_ID = 33, + IEEE80211_ELEMID_EXT_GLK_GCR_PARAM_SET = 34, + IEEE80211_ELEMID_EXT_HE_CAPA = 35, + IEEE80211_ELEMID_EXT_HE_OPER = 36, + IEEE80211_ELEMID_EXT_UORA_PARAM_SET = 37, + IEEE80211_ELEMID_EXT_MU_EDCA_PARAM_SET = 38, + IEEE80211_ELEMID_EXT_SPATIAL_REUSE_PARAM_SET = 39, + IEEE80211_ELEMID_EXT_GAS_EXTENSION = 40, + IEEE80211_ELEMID_EXT_NDP_FEEDB_REPORT_PARAM = 41, + IEEE80211_ELEMID_EXT_BSS_COLOR_CHG_ANNOUNCE = 42, + IEEE80211_ELEMID_EXT_QUIET_TIMME_PERIOD = 43, + IEEE80211_ELEMID_EXT_VENDOR_SPECIFIC_REQ_ELEM = 44, + IEEE80211_ELEMID_EXT_ESS_REPORT = 45, + IEEE80211_ELEMID_EXT_OPS = 46, + IEEE80211_ELEMID_EXT_HE_BSS_LOAD = 47, + /* 48-51 reserved. */ + IEEE80211_ELEMID_EXT_MAC_CH_SW_TIME = 52, + IEEE80211_ELEMID_EXT_EST_SERVICE_PARAM_OUTBOUND = 53, + IEEE80211_ELEMID_EXT_OCI = 54, + IEEE80211_ELEMID_EXT_MULTI_BSSID_CONFIG = 55, + IEEE80211_ELEMID_EXT_NON_INHERITANCE = 56, + IEEE80211_ELEMID_EXT_KNOWN_BSSID = 57, + IEEE80211_ELEMID_EXT_SHORT_SSID_LIST = 58, + IEEE80211_ELEMID_EXT_HE_6GHZ_BAND_CAPA = 59, + IEEE80211_ELEMID_EXT_ULMU_POWER_CAAP = 60, + /* 61-87 reserved. */ + IEEE80211_ELEMID_EXT_MSCS_DESCRIPTOR = 88, + IEEE80211_ELEMID_EXT_TCLAS_MASK = 89, + IEEE80211_ELEMID_EXT_SUPPL_CLASS_2_CAPA = 90, + IEEE80211_ELEMID_EXT_OCT_SOURCE = 91, + IEEE80211_ELEMID_EXT_REJECTED_GROUPS = 92, + IEEE80211_ELEMID_EXT_ANTI_CLOGGING_TAOKEN_CONTAINER = 93, + /* 94-255 reserved. */ +}; + struct ieee80211_tim_ie { uint8_t tim_ie; /* IEEE80211_ELEMID_TIM */ uint8_t tim_len;