Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4012034pxk; Tue, 29 Sep 2020 11:47:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxs/ILTo5GPfC3839g7zhcfIlJB7ZioOls6wHRQLQ6VhWYf7JNI5MiI4+Vw0ixQOnJDEhhe X-Received: by 2002:a17:906:594c:: with SMTP id g12mr5445994ejr.347.1601405262274; Tue, 29 Sep 2020 11:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601405262; cv=none; d=google.com; s=arc-20160816; b=Q8YweiUI4Ybwgz5/k7aURRwC3ay1U/C6A89I/YVuIE4tIFsHZW2lz/r88PTqg+RXGq vCaL3VW6OyfUIcsTlt1zFF477kNO47hwHkXYtoZYmXEmto47hITclespi8JEIiFyi8gF hNW9yAld8F6GYdxOw35cTmoiDywLCiUl7bssI8h7BQvuRMG3Mpwt3XVdCWm38uxaX4BR WzTQpT9CyKBUclMXDeXP1xJ0eDhVkkdOSxWwkJScT9hmx/c3eS7pgW6B36nbFzoua/dx ISMuOf7n1rBEc1PiWPQvYxRJuUAyWJB5CqL7Saq+5O1f523LVSfIlWwVMZ34hxm8R67c bwVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version; bh=Gj4S5IWV6r4GBvZ6kADh0ksBtcUFUj3mzvROKmtIePs=; b=A0Jp+L8R3hgv85hxcS7dICI5LNCj1VMqHI+GuxNmndvV7tv/wv75xP0eACFQ98C+DA a0s8iJu3Mmbk55fUeKaRXgD9Sn0L1fchOUUQElNK/FIIZIBjfwBVFCt1yTjF8Z1O/ob0 NsLOLauuSxwiuVHTvdmyGiaJZS3wjc+H7AHOl5w6xuN3GVTNdNR66DRXe4H1JjPNyiWv aOcui4+RmomlNzR8ESj+7IL2Po04Bh/71729N1/tglVhOnaiBn3tyK1rQ/FL3CtobGQo xQrhQkDW+6FqDufMz4805FHv1m1kmoxVG7BK8hu3H4NgECybkTMTdxAdjnxhD1GQooKj 5oSA== 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 lo24si1964166ejb.96.2020.09.29.11.47.07; Tue, 29 Sep 2020 11:47:42 -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 S1728301AbgI2SoS (ORCPT + 99 others); Tue, 29 Sep 2020 14:44:18 -0400 Received: from mail.adapt-ip.com ([173.164.178.19]:57430 "EHLO web.adapt-ip.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728166AbgI2SoS (ORCPT ); Tue, 29 Sep 2020 14:44:18 -0400 Received: from localhost (localhost [127.0.0.1]) by web.adapt-ip.com (Postfix) with ESMTP id F1A204F9E07; Tue, 29 Sep 2020 18:44:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at web.adapt-ip.com Received: from web.adapt-ip.com ([127.0.0.1]) by localhost (web.adapt-ip.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Fe-Hc9RX2P2Y; Tue, 29 Sep 2020 18:44:15 +0000 (UTC) Received: from mail.ibsgaard.io (c-73-223-60-234.hsd1.ca.comcast.net [73.223.60.234]) (Authenticated sender: thomas@adapt-ip.com) by web.adapt-ip.com (Postfix) with ESMTPSA id 341014F9E04; Tue, 29 Sep 2020 18:44:15 +0000 (UTC) MIME-Version: 1.0 Date: Tue, 29 Sep 2020 11:44:14 -0700 From: Thomas Pedersen To: Johannes Berg Cc: linux-wireless Subject: Re: [PATCH] mac80211: process S1G Operation element before HT In-Reply-To: <8cb48d6d229aa1d01f815c3a2336799b780b510d.camel@sipsolutions.net> References: <20200929181948.22894-1-thomas@adapt-ip.com> <8cb48d6d229aa1d01f815c3a2336799b780b510d.camel@sipsolutions.net> User-Agent: Roundcube Webmail/1.4.7 Message-ID: <8e9418eff4fce082312af7ca9a81bc04@adapt-ip.com> X-Sender: thomas@adapt-ip.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-09-29 11:32, Johannes Berg wrote: > 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? Ah ok, yes the !s1g_oper case. I'll take a look. -- thomas