Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4005253pxk; Tue, 29 Sep 2020 11:35:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwS40LbYYtgChKjt/9fUF4JaPu7gRktxYqB2VMVUdA/xzIeqFQY1w9IHPMFHfaVIYqdMXAu X-Received: by 2002:a17:906:38da:: with SMTP id r26mr5124144ejd.87.1601404540645; Tue, 29 Sep 2020 11:35:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601404540; cv=none; d=google.com; s=arc-20160816; b=VG82e9ZZEmGQ0qkSn3GDyZKQS6WZnc0ZdhcWlh1U5j1KSeoeTknUf5KAB6wsnPQAeD 286IRDWkEp/1/vilJe49+oAMhKxxNC2CYqFToxlAXaCdfev9bKoJVWA36eWIECx2S1iw +C+k8deiHd/WA6EAveGvqyDgxfRsudqVj/1xhGerV3/6zwZvYfRjX02DnoUxWN9RLb0l wCk9jRxqDCG6i6CQcK+M8BY/fZDWDuRb8e6P71MQjtkvh8Rpq7iq+5/Ao9pV1CIQnzZ1 m0Bd7NtcPnb289KwuPJvvxJ9LIFzHisWacJPg26Moza/HxhOWK/jWEiY2LDNq2HlT1u6 hItQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=whu1/dfDiN+2E5zkkIL0ejlSkNRi7QBGB+KjDiqk+RQ=; b=F5cYqbDCEa5efGWJGF+mZ6KTj4iVtJU+AWdVNnDKrB0bkQAi2RsZWzO6cfuZfdgwEa CcpgEe8N0xNAQaGXCx5A1+wKB7UC+cVu+8lCz34y8MWp7IiDTvEAKFM/WkdXpx/Pbp86 53gA2Mx9UrJEKKgoORJjPk38NL1EXpYQ6lxu3Qwl+zwiSp6pLqi8l6z782RLHWpJaKp+ KbTGs6jp4UYRTdB81fygi912IjygR0gSRe1pCgGNlKIP0lkQsqbmAKv7fCB8IhK+zks5 zHIhLXilvUXVvHCltlszKkM3U8C/4QByIqx8fUgIYOtUe/TRbUseLM5NI/xO7eHWY239 iC0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si3343415ejd.289.2020.09.29.11.35.08; Tue, 29 Sep 2020 11:35:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727903AbgI2Scn (ORCPT + 99 others); Tue, 29 Sep 2020 14:32:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727740AbgI2Scn (ORCPT ); Tue, 29 Sep 2020 14:32:43 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2023EC061755 for ; Tue, 29 Sep 2020 11:32:43 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1kNKQZ-00DG0S-Cr; Tue, 29 Sep 2020 20:32:39 +0200 Message-ID: <8cb48d6d229aa1d01f815c3a2336799b780b510d.camel@sipsolutions.net> Subject: Re: [PATCH] mac80211: process S1G Operation element before HT From: Johannes Berg To: Thomas Pedersen Cc: linux-wireless Date: Tue, 29 Sep 2020 20:32:38 +0200 In-Reply-To: <20200929181948.22894-1-thomas@adapt-ip.com> References: <20200929181948.22894-1-thomas@adapt-ip.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 2020-09-29 at 11:19 -0700, Thomas Pedersen wrote: > The sband->ht_cap was being processed before S1G Operation > element. Since the HT capability element should not be > present on the S1G band, avoid processing potential > garbage by moving the call to > ieee80211_apply_htcap_overrides() to after the S1G block. Ah, heh. I hadn't even realized that. What I meant though was something else: we have if (s1g_oper && sband->band == NL80211_BAND_S1GHZ) { ... goto out; } // process ht cap overrides (after this patch) // check HT oper // check VHT oper // ... So given that first condition, if you actually have an S1G AP *without* S1G operation element (for some reason), you'd start processing HT, VHT, and whatever else capabilities, sending us down a misleading and likely very confusing path, which seems like it should be avoided? johannes