Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2282007rdd; Fri, 12 Jan 2024 05:10:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCkeFPLBummN7eZX7UJObSJJl9mKxAuqYMij/XaYf4a3ItV5GN5QHBYpYL9cGGR5yRU6zf X-Received: by 2002:a05:6808:238a:b0:3bd:4f0a:209f with SMTP id bp10-20020a056808238a00b003bd4f0a209fmr1219590oib.81.1705065058386; Fri, 12 Jan 2024 05:10:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705065058; cv=none; d=google.com; s=arc-20160816; b=Qr8CDAg0evgsHvVQbsnemwNNMflKnTQ5ft6Nq1gqgbEZ94BK8aKXXc7ILBZFwiq4G0 NsJqJN3n4Ruk0unKYHAnkX5i9+szty0IHBaBTJby0KZQQsHqHCvT0sDzsJVHPu1QTTbs aTZ6TSfXixgm7NtaW790AWxg1wFG3P/j+iUgufCPt7rXqSTDueRDhUVdr7Myz3vGcxV/ Sg1BUi5lgboyc0RLIAnB+9qUEXow2YySXuFna0OcgID3ZvlF7g1lRtv6I4EfsJF097EM x0PXBimg02z7vub3GPy2Z8OExKBDElaey9cLtYSm93qlK+C7YKyrDzyUFxp9mOinQ+WL CGGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=p2dDRKN1zzls0Ey0ImIxJtCdzfim05yYvbhBAA4Wcgg=; fh=5vdmy48utl/7M0kJqRr5fSXM56bQgEx+eLdf/eBSu+s=; b=zlquI4VEi+u8+ZWwKcdki2sngMgLfL5xCT/8UuHNLUzmVrAkupRc74hoh0GEDl2ngv sNyIAnrSWXQrJf4rJ9hr+LE7slmqEdzu6CyPVQFdMRWciGoavLJks8MZ/YQSTmYPNo0H T+4vdPQWTqyivBZog0feahdT95gjX2Vzsi9TIn9JR7f3pVtXOsQBtAZXMXIIjKZ6Z4qQ ERYG0e+lfu6dL8Ti9GFqV88a88C9rusiUgEhPf8ZL37ShfHgn00vqdJHC1nw7NYn9eW6 1Kd7cqWia3onWdqH/Scbk02ZkQSM6HtQEFLYM4mrK+QvkFnpi7OJ2/TQESPxwwzlp0rK B4Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k5qL+k3d; spf=pass (google.com: domain of linux-wireless+bounces-1815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 10-20020a63164a000000b005ce0b38a6dbsi3260294pgw.580.2024.01.12.05.10.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 05:10:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k5qL+k3d; spf=pass (google.com: domain of linux-wireless+bounces-1815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B6C8EB22CDD for ; Fri, 12 Jan 2024 13:10:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 524A96A019; Fri, 12 Jan 2024 13:10:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="k5qL+k3d" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38F576A015 for ; Fri, 12 Jan 2024 13:10:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D335C433F1; Fri, 12 Jan 2024 13:10:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705065050; bh=CNrpWv4Sno9k6n6+TTvGdbRgr91Q6/GnvrRm8cDp6QE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=k5qL+k3dJWexjRjrejvwmD2t2Nb4M1mvv/oHG/bIMn32Fi+/yQXTa9CiyoQ32QtVD dVgXUki4cHRLVzSwDGqN4piXuwoJE9WeBHrwlQ4uTJ9t6X7vXGOx9KYRljcXo4CtRe AG6e3VD75/lJWI5lDBDxHuPuVx52tWHdRh2n9AcR0o7vqWcrC0k0xTa9fDKzyu7qwa Vvdh20s+2FpVfWphmfOeoJkUVpH3wlw8ucFcT73+ed0SkTPCNkbdJnLiW9hcYdFTU1 YLhFmWSlVamXHboNqLoTpo7H4yvtxjtuZVwakGdK9NjutxarQwnQacvax+RgRgAO/q jyG5CnCfQdz0A== From: Kalle Valo To: Miri Korenblit Cc: johannes@sipsolutions.net, linux-wireless@vger.kernel.org, Johannes Berg , Gregory Greenman Subject: Re: [PATCH 5/8] wifi: mac80211: disallow drivers with HT wider than HE References: <20240111161746.3978601-1-miriam.rachel.korenblit@intel.com> <20240111181514.da15fe3214d2.I4df51ad2f4c844615c168bf9bdb498925b3c77d4@changeid> Date: Fri, 12 Jan 2024 15:10:46 +0200 In-Reply-To: <20240111181514.da15fe3214d2.I4df51ad2f4c844615c168bf9bdb498925b3c77d4@changeid> (Miri Korenblit's message of "Thu, 11 Jan 2024 18:17:43 +0200") Message-ID: <87wmsehf3d.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Miri Korenblit writes: > + /* currently no support for HE client where HT has 40 MHz but not HT */ > + if (iftd->he_cap.has_he && > + iftd->types_mask & (BIT(NL80211_IFTYPE_STATION) | > + BIT(NL80211_IFTYPE_P2P_CLIENT)) && > + sband->ht_cap.ht_supported && > + sband->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && > + !(iftd->he_cap.he_cap_elem.phy_cap_info[0] & he_40_mhz_cap)) > + return -EINVAL; Should there be a warning message so that this is noticed if it ever happens? I don't know. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches