From nobody Fri Apr 08 21:05:56 2022 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 AE3641A93337; Fri, 8 Apr 2022 21:05:56 +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 4KZrPw4XTMz4p49; Fri, 8 Apr 2022 21:05:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649451956; 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=Nh2hGiOjznvc3/LsKoRFttE0C2WJJvXGL9ULevq9RWs=; b=a7MGmo+mikrPEHJVSvXjqCh9Hndjs4c4uKOd8Oapk/3cGBld8gaY3sN7drY8I4DXO2pMIF rYj7klQ6PJwwI5hiMBAMyGAlCRcI/zQPIBk08jeq5qa46BB7tczMemYn6+udDErWqRHVDj PIWbrdOMnYP0pQa9TqybpWySTp7ZY6lmabtLs/ak9bxxbYGmzXn3dWmzlVyRsa6h3hNy7W 02SMyZ87plv/R5vFglbl8PYUmvj1piwjfRWdKfvageqtkTCSef02i9RsAjI6asLnmOqLpc dBUUBxvAZPeQyxDWBbLC++dKo4eX6bKXt/INMZNiFnVEAXIIptKV+BqV0Fy0Qw== 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 796C049A4; Fri, 8 Apr 2022 21:05:56 +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 238L5uF4088488; Fri, 8 Apr 2022 21:05:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 238L5uKE088487; Fri, 8 Apr 2022 21:05:56 GMT (envelope-from git) Date: Fri, 8 Apr 2022 21:05:56 GMT Message-Id: <202204082105.238L5uKE088487@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: 978f25e840fe - main - LinuxKPI: 802.11: add ieee80211_beacon_get_tim(), ieee80211_sn_sub() 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: 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: 978f25e840fe4975f243e6077a764842f0e9d3eb Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649451956; 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=Nh2hGiOjznvc3/LsKoRFttE0C2WJJvXGL9ULevq9RWs=; b=ikIj8RJo1Z0pxBPgSpYAEe3ttaRF0IuhTRDc5RBVJixPGw2aP5AVn8I+UJ9pfErdij2B2w 8ivxe4rmSOY9fnJI/oSxzJcdAGg1ELQUHDLtAWsJu92VSv05rDecTlNTemBsnrIQMEQrUm kU02D1xXXkX2PPD8TdNuHJbqkZ+768gnz4jE7vVHrjmltvUEmZxMwvmn96FIuvdQJ2zuhp MbwzGFQ2MsvEZ/qxD4nCBV6GBcbiz1cF0KGMjXA2eyHrO2+QUfiLANGkVK9DD9j1WiYu4x YuHxxbcUGLxmswrop/Nmmnmy/d/RVqvAetuTh3CA5HwLJg45068yhcIeEIJgjw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649451956; a=rsa-sha256; cv=none; b=tO8CyG86C+z5qaSOzlV2VF6EeavchX5Av0e1IE20oIDVoRo1cJQM8Uy36EFkdIBu2UZ6+E oWCJD8YvcxppQvuT+oLYc5O0YH5vnvFJrBPVlh52YcQHr8dv/l7R3ilRYD8D5wXC2GabCq epL+gaOT/1rvGnhuq+b89BGr0Gs+bEPCIF/cg5xt43q4xcyZSdsPOOy0sKBtBTBRQemFMy kOF29yzqDKlsghXcglXDe9unWgxGVpE+MZK0nC+/WR5uMue1xUj6yY7Zy0xjW22yKjpJdF Fs9vs4JJmparM1sgSmR4uS42CrnuF4LThI7U1NmqiIaq7LOtf6J8wYxs0krzNw== 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=978f25e840fe4975f243e6077a764842f0e9d3eb commit 978f25e840fe4975f243e6077a764842f0e9d3eb Author: Bjoern A. Zeeb AuthorDate: 2022-04-08 18:33:23 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-04-08 21:05:06 +0000 LinuxKPI: 802.11: add ieee80211_beacon_get_tim(), ieee80211_sn_sub() Add a dummy implementation for ieee80211_beacon_get_tim(). Add the implementation for ieee80211_sn_sub(). Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/compat/linuxkpi/common/include/net/mac80211.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/net/mac80211.h b/sys/compat/linuxkpi/common/include/net/mac80211.h index 70f71da09a59..b5eb3131a7de 100644 --- a/sys/compat/linuxkpi/common/include/net/mac80211.h +++ b/sys/compat/linuxkpi/common/include/net/mac80211.h @@ -1315,6 +1315,19 @@ ieee80211_get_tid(struct ieee80211_hdr *hdr) return (linuxkpi_ieee80211_get_tid(hdr)); } +static __inline struct sk_buff * +ieee80211_beacon_get_tim(struct ieee80211_hw *hw, struct ieee80211_vif *vif, + uint16_t *tim_offset, uint16_t *tim_len) +{ + + if (tim_offset != NULL) + *tim_offset = 0; + if (tim_len != NULL) + *tim_len = 0; + TODO(); + return (NULL); +} + static __inline void ieee80211_iterate_active_interfaces_atomic(struct ieee80211_hw *hw, enum ieee80211_iface_iter flags, @@ -1672,11 +1685,10 @@ ieee80211_send_eosp_nullfunc(struct ieee80211_sta *sta, uint8_t tid) } static __inline uint16_t -ieee80211_sn_sub(uint16_t sn, uint16_t n) +ieee80211_sn_sub(uint16_t sa, uint16_t sb) { - TODO(); - return (0); + return ((sa - sb) & IEEE80211_SEQ_SEQ_MASK); } static __inline void