From nobody Tue Apr 29 11:41:49 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 4Zmz1T6ZPWz5tvL5; Tue, 29 Apr 2025 11:41:49 +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 4Zmz1T46zLz3x1X; Tue, 29 Apr 2025 11:41:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1745926909; 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=Vdtc6RoLmeHO/4JUQipXTIsLv2kKRiPNmUrW0nuylgY=; b=MVVp0TqpapnmvjGmmw9XN+0xjMkNErDTz/yAsqOjdL6rS+KIr1fNgqoSj57C4ySXaIn2JG Ma+3OEX8jTdkHX+CC7C6cYz/hOAKTp0yTYHloLWMOvS6YgBpFUz5PJy3YOvyDtpwHDlZqo unNS1gbWySRnpI2sw2tVC7bJUKdSkFOUrSvMsDcw1X0twLF8tD1y9CihUHcbh2UgnXU+5G HTX7vxYgKZq3OEP5NTT3Jo9DCqZcdxpx5TJG8jAYS1dML0/8wo2xDKKoosbjzmHnOMCfrU OSw6FQMD0oypdHtgLhDYlWCLHsOrZXGUlUE0DZj04ef1BP04pgL93dnIa/k9lw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1745926909; a=rsa-sha256; cv=none; b=W6kV/idNl8IQmxlsP6jZBbqYhB+2Vw0T5fLwR/vkWONH/cT5QEoMtX8SXgVnxi9U2jY3M+ fnheecVCl4M/5fDCaNAhmWR1isbhFdKrj7O/gugIJ6QdJOCOfGu4Qd8a8yq4dMauR0ZS3E PM7pdKKI444A1NHWxuEQzLUiEOlEt9s+rKmL0g/y8Sp+VYaGj9+I53xXQKI/SUIxkRupIM 7Rh4sK6QS8NAS3LQpvfmj4CssNc4Eb7a4nQjDbOSOzi0Smjs63JMzh2Tsns9zvACq+lqHc Tf97spCUjHbPfGiU1l1f4sCv0uiFgJfd1xQMoRABKUv/dVpmvh1tJzv0nAxoyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1745926909; 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=Vdtc6RoLmeHO/4JUQipXTIsLv2kKRiPNmUrW0nuylgY=; b=ikMicPSYK6184FeGB1q4iz4yocKV1shuVj0WgUVpS+y+2h/n7LEcdLlSTepWrMkTBQkh8+ dIAlENWHv8JPaz0D8z0gVPeoRbN0wWDS6pcU5jprkgHZaG+vS9yJ02chHDVcJaC+Nx3Klw PjGJaeUZBV9etnA368RqtOZHHBwmIUwbf1TnS3dk1rCQRhN8BbEbg1AjyrkT/73GUUELKH U109TDsnYu+LT+4ffwguMocwRrG6wa9sBQfmD6iJp1thcKull6qWXYizW1xIlemQvVZS0Z GK3Tu/LEkHO2t2ZoY7HdLTWHQfy4txEC/CMUlfYC+dYco5nYlNPTl0iP3Sxrsg== 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 4Zmz1T3fwRz43b; Tue, 29 Apr 2025 11:41:49 +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 53TBfnBT046167; Tue, 29 Apr 2025 11:41:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 53TBfnaa046164; Tue, 29 Apr 2025 11:41:49 GMT (envelope-from git) Date: Tue, 29 Apr 2025 11:41:49 GMT Message-Id: <202504291141.53TBfnaa046164@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: c0d19fc29074 - stable/14 - LinuxKPI 802.11: move key-related functions together 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/stable/14 X-Git-Reftype: branch X-Git-Commit: c0d19fc290749f9e0ca4208a020efe911e902083 Auto-Submitted: auto-generated The branch stable/14 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=c0d19fc290749f9e0ca4208a020efe911e902083 commit c0d19fc290749f9e0ca4208a020efe911e902083 Author: Bjoern A. Zeeb AuthorDate: 2025-04-15 13:00:17 +0000 Commit: Bjoern A. Zeeb CommitDate: 2025-04-29 10:49:30 +0000 LinuxKPI 802.11: move key-related functions together No functional changes. Sponsored by: The FreeBSD Foundation (cherry picked from commit b31f33c028446ff3e3cee32c1f0038f693683f78) --- sys/compat/linuxkpi/common/include/net/mac80211.h | 87 ++++++++++++----------- 1 file changed, 45 insertions(+), 42 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/net/mac80211.h b/sys/compat/linuxkpi/common/include/net/mac80211.h index 8856eee8c696..568695dc2a45 100644 --- a/sys/compat/linuxkpi/common/include/net/mac80211.h +++ b/sys/compat/linuxkpi/common/include/net/mac80211.h @@ -1705,26 +1705,6 @@ ieee80211_find_sta_by_ifaddr(struct ieee80211_hw *hw, const uint8_t *addr, return (linuxkpi_ieee80211_find_sta_by_ifaddr(hw, addr, ourvifaddr)); } - -static __inline void -ieee80211_get_tkip_p2k(struct ieee80211_key_conf *keyconf, - struct sk_buff *skb_frag, u8 *key) -{ - TODO(); -} - -static __inline void -ieee80211_get_tkip_rx_p1k(struct ieee80211_key_conf *keyconf, - const u8 *addr, uint32_t iv32, u16 *p1k) -{ - - KASSERT(keyconf != NULL && addr != NULL && p1k != NULL, - ("%s: keyconf %p addr %p p1k %p\n", __func__, keyconf, addr, p1k)); - - TODO(); - memset(p1k, 0xfa, 5 * sizeof(*p1k)); /* Just initializing. */ -} - static __inline size_t ieee80211_ie_split(const u8 *ies, size_t ies_len, const u8 *ie_ids, size_t ie_ids_len, size_t start) @@ -2052,13 +2032,6 @@ ieee80211_sta_uapsd_trigger(struct ieee80211_sta *sta, int ntids) TODO(); } -static __inline void -ieee80211_tkip_add_iv(u8 *crypto_hdr, struct ieee80211_key_conf *keyconf, - uint64_t pn) -{ - TODO(); -} - static inline struct sk_buff * ieee80211_tx_dequeue(struct ieee80211_hw *hw, struct ieee80211_txq *txq) { @@ -2338,18 +2311,6 @@ ieee80211_channel_switch_disconnect(struct ieee80211_vif *vif, bool _x) TODO(); } -static __inline void -ieee80211_key_mic_failure(struct ieee80211_key_conf *key) -{ - TODO(); -} - -static __inline void -ieee80211_key_replay(struct ieee80211_key_conf *key) -{ - TODO(); -} - static __inline uint32_t ieee80211_calc_rx_airtime(struct ieee80211_hw *hw, struct ieee80211_rx_status *rxstat, int len) @@ -2408,9 +2369,22 @@ ieee80211_data_to_8023(struct sk_buff *skb, const uint8_t *addr, return (-1); } +/* -------------------------------------------------------------------------- */ + static __inline void -ieee80211_get_tkip_p1k_iv(struct ieee80211_key_conf *key, - uint32_t iv32, uint16_t *p1k) +ieee80211_key_mic_failure(struct ieee80211_key_conf *key) +{ + TODO(); +} + +static __inline void +ieee80211_key_replay(struct ieee80211_key_conf *key) +{ + TODO(); +} + +static __inline void +ieee80211_remove_key(struct ieee80211_key_conf *key) { TODO(); } @@ -2431,11 +2405,38 @@ ieee80211_gtk_rekey_notify(struct ieee80211_vif *vif, const uint8_t *bssid, } static __inline void -ieee80211_remove_key(struct ieee80211_key_conf *key) +ieee80211_tkip_add_iv(u8 *crypto_hdr, struct ieee80211_key_conf *keyconf, + uint64_t pn) +{ + TODO(); +} + +static __inline void +ieee80211_get_tkip_rx_p1k(struct ieee80211_key_conf *keyconf, + const u8 *addr, uint32_t iv32, u16 *p1k) +{ + + KASSERT(keyconf != NULL && addr != NULL && p1k != NULL, + ("%s: keyconf %p addr %p p1k %p\n", __func__, keyconf, addr, p1k)); + + TODO(); + memset(p1k, 0xfa, 5 * sizeof(*p1k)); /* Just initializing. */ +} + +static __inline void +ieee80211_get_tkip_p1k_iv(struct ieee80211_key_conf *key, + uint32_t iv32, uint16_t *p1k) { TODO(); } +static __inline void +ieee80211_get_tkip_p2k(struct ieee80211_key_conf *keyconf, + struct sk_buff *skb_frag, u8 *key) +{ + TODO(); +} + static inline void ieee80211_get_key_rx_seq(struct ieee80211_key_conf *keyconf, int8_t tid, struct ieee80211_key_seq *seq) @@ -2481,6 +2482,8 @@ ieee80211_set_key_rx_seq(struct ieee80211_key_conf *key, int tid, TODO(); } +/* -------------------------------------------------------------------------- */ + static __inline void ieee80211_report_wowlan_wakeup(struct ieee80211_vif *vif, struct cfg80211_wowlan_wakeup *wakeup, gfp_t gfp)