From nobody Fri Feb 17 23:44:56 2023 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 4PJT206FP4z3rxSQ; Fri, 17 Feb 2023 23:44: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 4PJT2057BQz3HNb; Fri, 17 Feb 2023 23:44:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676677496; 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=EhTdKic09oXQR+rppv8moeiQ6HqLSo7lLbnGo8ncoSc=; b=g2KWXZohgLAXucZcku+8oV0yXOL/8G3ATbq60mmGN2kydbaTbZ14aQ46CkV16e5PtcpkEA 6teTvshO9UsbtzkxcuSBvoNwIoqNQbYWBBhBG+uOWZO/bUleHURCg6RKeEyCoEjuH6TLTT CkhLB6r/4+VNqyYZUFubBzemEJHHhieYeLW8QJXGHCtv2IDH867MTzFRx9w6yRjv8Pw4pP RbBTJ8uOOxQHhWsCVWwJ+vEuizaMmSDzgMhoJKSF8ji/9z9IgbPCzReBbynUJLH41BtdW8 AhHGd3WPcFjxNJAmTRR/kQ0xVVojqSeixY9p+q5B6KskNsPzErw0cnSqAagnFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676677496; 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=EhTdKic09oXQR+rppv8moeiQ6HqLSo7lLbnGo8ncoSc=; b=YHHztagwC0zW81HB4eQW/DD8H3Slw9MoA0ZK9RHOGhHwbOfD/jOMlOAn8wjhrFTaRpl67b 66nEM81SKbEiKI9KVQR1HHWt/BW3h6+2rxR5PF9KthFiARDFqDWcp9h5sYfYmDEx2Cd2vE fZvblBds3QYgFC3MJSP+hzxboN7dMgLZxYBf7sBsj+HFYZwJ466ueIQG+2L8nVFgxoFcEl L/l+hC3+SrVz9P4dL1xrhfACRKeKkais1wyu61XWY5bhqs8p1pqAGvF07wUcqbwlM6Gtuh x8WAr8bvBBNJCTR66kSLsg3gS8I/LjrG4gjb/lh2ZCc3FCG66evb8vSQH4B77w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676677496; a=rsa-sha256; cv=none; b=nJV9YkCghFF/qtOEoLJPZ/OfmfVtEpKMerDP55FzAOfJJh+E+eZu/KPLqdTCKh1pCoRA99 Gxkn/irejLZEeyEEHTtX4Jhac/D7l63FpATyWVCQ3O7oqykhHBr6WzFJfbP3IFSdat/67K GIAepwZSjtHeAiZP5G6cEvWZYVVSSo3KUTvyZmrfBlYjvzBFUvUnazWKgbrljOspRVnOmZ U/VMceu7uUvUqvzlY6Ve70cczUvgxM+zRHj4qsArCsTJGTrGtPKXllXVLs07AGz7821qUB 0MvI04ojfvSvrXyI0cSoVKMY7IA+IetsT6aF1WB78a9NGCkUP/f2OnQVT7L0ig== 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 4PJT204DBnz11qS; Fri, 17 Feb 2023 23:44: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 31HNiuME025222; Fri, 17 Feb 2023 23:44:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31HNiun4025221; Fri, 17 Feb 2023 23:44:56 GMT (envelope-from git) Date: Fri, 17 Feb 2023 23:44:56 GMT Message-Id: <202302172344.31HNiun4025221@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: 16dc23caf17f - stable/13 - LinuxKPI: 802.11: implement ieee80211_is_pspoll() 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 16dc23caf17f8ffa21e365a1f2fe1a72d7fecbe8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=16dc23caf17f8ffa21e365a1f2fe1a72d7fecbe8 commit 16dc23caf17f8ffa21e365a1f2fe1a72d7fecbe8 Author: Bjoern A. Zeeb AuthorDate: 2023-01-31 16:36:24 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-02-17 23:42:15 +0000 LinuxKPI: 802.11: implement ieee80211_is_pspoll() Implement ieee80211_is_pspoll() and move it up to the set of implemented ieee80211_is_*() functions. There are no further changes (git diff just looks weird). Sponsored by: The FreeBSD Foundation MFC after: 3 days (cherry picked from commit ff76cbc81d57ffc4bbc9bc20fd22325b2a8c2028) (cherry picked from commit 2336248a8ba9763ad38074db40f32e117edd86f5) --- sys/compat/linuxkpi/common/include/net/mac80211.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/net/mac80211.h b/sys/compat/linuxkpi/common/include/net/mac80211.h index 2b3f6b8e3ab1..b7c6c2d37b90 100644 --- a/sys/compat/linuxkpi/common/include/net/mac80211.h +++ b/sys/compat/linuxkpi/common/include/net/mac80211.h @@ -1342,29 +1342,33 @@ ieee80211_is_any_nullfunc(__le16 fc) return (ieee80211_is_nullfunc(fc) || ieee80211_is_qos_nullfunc(fc)); } -static __inline bool -ieee80211_vif_is_mesh(struct ieee80211_vif *vif) +static inline bool +ieee80211_is_pspoll(__le16 fc) { - TODO(); - return (false); + __le16 v; + + fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); + v = htole16(IEEE80211_FC0_SUBTYPE_PS_POLL | IEEE80211_FC0_TYPE_CTL); + + return (fc == v); } static __inline bool -ieee80211_is_frag(struct ieee80211_hdr *hdr) +ieee80211_vif_is_mesh(struct ieee80211_vif *vif) { TODO(); return (false); } static __inline bool -ieee80211_is_first_frag(__le16 fc) +ieee80211_is_frag(struct ieee80211_hdr *hdr) { TODO(); return (false); } static __inline bool -ieee80211_is_pspoll(__le16 fc) +ieee80211_is_first_frag(__le16 fc) { TODO(); return (false);