Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1273561rdb; Wed, 6 Dec 2023 13:46:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEN44V0DNhHCc9j4sT+RU1pzFNOnf+sQPef6fhQOk7iEVSvkfwBE6ofob4/ESVMobsgKPcU X-Received: by 2002:a17:906:518c:b0:a1d:b6b5:3416 with SMTP id y12-20020a170906518c00b00a1db6b53416mr850822ejk.84.1701899168620; Wed, 06 Dec 2023 13:46:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701899168; cv=none; d=google.com; s=arc-20160816; b=BDDtgdxMnUqwtD/5MkkYSi7bO/zbqPy5g78rdBPwlCokGp07uLskZ1hXLeqVv5gzoP dPTMbP6ZbyqVaKyR46UvliZ1NvNClzYxR2Sv48GmvIkQyQdEjF1xYPXPAgdK2BdOmPYj 1lHB3lNRqUl8axghJJ1jl5fEv2bGgYVXzporlKa9d3TmzHgU04Kc58RdKzH+YU4fbJ38 N9JsdJqZK+HOFIslhv2tEkIlhS9tPXsoNI1qV7uj3B0z9evASiz7olFhhaLfof3SfPxs XgPcN1FhMAlQuRCHhh3OxGLKf8FGmoqCu2M+EmVHjuu6OP93efKZ6LLZrdNrMFDAZq3R C3Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=n0Jcmc3nKkjYHcz+Ls08VACQCoIcq+YPGfMAPU2iSGw=; fh=QxHhEMjXCWezRH2JFOgyp/OtgBK6I3ilZNpxqEmFe+M=; b=jWHZof1YzHpm65TmQJCKOlf6kPKsQ6WwSA3hifdBrO+jXLeeNx1Zt2Gpuekcx7eif0 iWlLyGfDLnbGs3jronSZoO2ltVojF3bd/H0VkXi/401B2D7Q8twsx17CnVQ30EMhJ95J AJTi3z/ePzx2y2rYBByWhiNfanWWG0w/bkDq9LeQ0phXkNhqVTMYUPLdrM7VfZ3m6U4Q D29lS928I7wHO7cuy9x6/xTs42MaZ+vLfWz2RpupFdWbCR+TnEWeGinfZ3KbhEX0F5Su /3Kur9I5cnSzj0/p/E/6YWqnRZsZjrUCZNWMAR7tiWlQqvcaY9b22cQp1Ick3gl4V1Qh Hblg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=HCIm+649; spf=pass (google.com: domain of linux-wireless+bounces-513-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id md26-20020a170906ae9a00b00a1e30d0825asi289054ejb.1032.2023.12.06.13.46.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 13:46:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-513-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=HCIm+649; spf=pass (google.com: domain of linux-wireless+bounces-513-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 31BE41F21E1C for ; Wed, 6 Dec 2023 21:38:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 86D4370976; Wed, 6 Dec 2023 21:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="HCIm+649" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D483F7 for ; Wed, 6 Dec 2023 13:38:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-To:Resent-Cc: Resent-Message-ID:In-Reply-To:References; bh=n0Jcmc3nKkjYHcz+Ls08VACQCoIcq+YPGfMAPU2iSGw=; t=1701898686; x=1703108286; b=HCIm+6493quu7pEsC9B2wIwgaQ1sn0B6O3sfp3xqYZhMNm9kz3WarKq8p0bmwAqDFgdYn0UiS3h ef6TUHYL/kqks8twXHD5ZKrejw0/RlO9hX5Gb1jAjjtiXgNZicVjP+I+GAL3N3vnyAt1CijH5JGJ9 QvmYJK8AzohuAfljcVrudZsvYSRj+CZBQHivecw9CtQ3vUAbzHOBFyEk81NVBiTx51e5CdRFgFAnR g4JBjg3lujRmappVhFxluK+DxjhCDogB9ddbqzIWhT1TnuzLZ4mrOzoV/nxbRPxq7+D3rpt8w1j16 IR/lnrsQPEtpcAOyWuqui6nZTJ0DX7arzBNQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rAzal-00000000JAJ-2dnI; Wed, 06 Dec 2023 22:38:03 +0100 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg , Jouni Malinen Subject: [PATCH] wifi: ieee80211: don't require protected vendor action frames Date: Wed, 6 Dec 2023 22:37:57 +0100 Message-ID: <20231206223801.f6a2cf4e67ec.Ifa6acc774bd67801d3dafb405278f297683187aa@changeid> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Johannes Berg For vendor action frames, whether a protected one should be used or not is clearly up to the individual vendor and frame, so even though a protected dual is defined, it may not get used. Thus, don't require protection for vendor action frames when they're used in a connection. Since we obviously don't process frames unknown to the kernel in the kernel, it may makes sense to invert this list to have all the ones the kernel processes and knows to be requiring protection, but that'd be a different change. Fixes: 91535613b609 ("wifi: mac80211: don't drop all unprotected public action frames") Reported-by: Jouni Malinen Signed-off-by: Johannes Berg --- include/linux/ieee80211.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index c2ac9e9e7ee9..2b5e500bf093 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -4447,7 +4447,8 @@ ieee80211_is_protected_dual_of_public_action(struct sk_buff *skb) action != WLAN_PUB_ACTION_LOC_TRACK_NOTI && action != WLAN_PUB_ACTION_FTM_REQUEST && action != WLAN_PUB_ACTION_FTM_RESPONSE && - action != WLAN_PUB_ACTION_FILS_DISCOVERY; + action != WLAN_PUB_ACTION_FILS_DISCOVERY && + action != WLAN_PUB_ACTION_VENDOR_SPECIFIC; } /** -- 2.43.0