Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2733610rdd; Fri, 12 Jan 2024 22:55:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHN4gGYw2Uls0hW1arn9xQjcvsr4bVHq+mXh5gdPYiVuJDhTeJrkKlBCXeClcmL6yj/RA2f X-Received: by 2002:a05:600c:314f:b0:40e:4893:9239 with SMTP id h15-20020a05600c314f00b0040e48939239mr1319204wmo.89.1705128901918; Fri, 12 Jan 2024 22:55:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705128901; cv=none; d=google.com; s=arc-20160816; b=vgLsH/jMJhUlzaPf3p6FWdZWoACSOafiC627RIoaGx6TbNG4N7zbteDsTUmsYNvief Hasqkf7kpDzE5eoE2gQsYXv+i41ccNw03M+Gld/cHQ24sLmc47GJbpmhg0V2yY+ENK8b qhjwA1XNlPjbvtwa11YupSZr48rOtj1e3CUDZ3+I5/GaVU/Gbjl1CIN1Uw1a2uJyqJkN mFumkzsuPI4KccZlbSA/rVvX4PglBIIAZLcbW61YPYII6h1Wmgy0DIFmFmKo0Bfrrf4B YWR6OT0gutjgERsm74UyDqLD+AyHGBIHdj/LY8vBttMdYm4HQfstbEevoLbbtJGePA2h Edew== 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=PEbs39lyBtPVla96Xl62RS34minwNVCONqPwUELVeNM=; fh=I865CwhZms37ZnG7Pye2KdBI+06XCq4JKU+5NTb1rmo=; b=xSkebGrKJ4tDHOdLBf9ZNS61CACiDJBr0+/2zAl4vJPsPRUFVwzWLmvdfwtRIOJksB ZPEpbSXc8vjCdhdDQv2pEpsUJN7bXUaQMzaxm0RZRDQVbsVEXT6H6CuMSnZ2j0/Wmr74 HtHCVkJB2sX1M/dE2AR6jQ5kQeJvNxTVuhsUk0u+CXrGh5XJ9WoMs9RqeIbitP3TPf35 2mLHDejwbd49imTwWYC78O4/TuvO38pecsdyxsykE31MLkOyzvz7YHDSmO1bgTXQRbYv sTJCDDkYGmxkB6ZPNMs35A7+nRD+7QB0xjGJ8XjMB2jb6eaaPp4sbS7tDu2zWlxYsp3b /6Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FPH0Ec6Y; spf=pass (google.com: domain of linux-wireless+bounces-1870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1870-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p15-20020a05640243cf00b005580d1a031asi2095404edc.56.2024.01.12.22.55.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 22:55:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1870-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=@kernel.org header.s=k20201202 header.b=FPH0Ec6Y; spf=pass (google.com: domain of linux-wireless+bounces-1870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1870-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A5E641F23765 for ; Sat, 13 Jan 2024 06:55:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EED918EBE; Sat, 13 Jan 2024 06:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FPH0Ec6Y" 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 0561D18EBF for ; Sat, 13 Jan 2024 06:54:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7516BC433C7; Sat, 13 Jan 2024 06:54:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705128893; bh=bxmZhWWVppfZyW25Xz78Kjm2HzG4tyaFtHGTkKRMwfE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=FPH0Ec6YKWgDy5+1LJyUyxTbc1pf7bunHlYORLwQCOqxe21WyNM16VZnl7353Qstm nMskFVyaIIaqEJBNkUyDxTGsGEMvQoJh+yC0eFhTlOw69E3ZVVVd/910OJ8XIQ422h r8dJV1z2r4HUvp4C9SgGHHRTDH+nMXtU5pbfBucgDdAyHlB5qll95pJnDNazKLBJzP l8DyBvAcpf1Oob8zaL1OKqP65QsnjYsxLyHws36siQ5HljqrafsE7F6/9zTKSieNsR AOa54gXb18LOTLrTa0HGYfHRw5q9QD2vCsHQwGepk2TSlDwF93jOrY+tTe5uRAcCol xDe8RRExJrN2g== From: Kalle Valo To: Johannes Berg Cc: Miri Korenblit , linux-wireless@vger.kernel.org, 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> <87wmsehf3d.fsf@kernel.org> Date: Sat, 13 Jan 2024 08:54:50 +0200 In-Reply-To: (Johannes Berg's message of "Fri, 12 Jan 2024 19:42:27 +0100") Message-ID: <87h6jhhged.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 Johannes Berg writes: > On Fri, 2024-01-12 at 15:10 +0200, Kalle Valo wrote: >> 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. > > Yeah I don't really know either. I've done that a lot in the past, but > these days I'm kind of thinking that people who develop their drivers > should have some debug story and be able to figure it out? You know > better perhaps ... My worry here is the time needed to figure this all out. Especially if we have more of these kind silent checks it could get complex quite quick. > Though it'd kind of suck to indent this further with WARN_ON ;-) Yeah, WARN_ON() feels a bit too much. I was more thinking about a small pr_err() or something like that which give at least some hint what's happening. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches