Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp381132ybm; Thu, 28 May 2020 05:21:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX1Py8gZ9mIYH2oyJV2jKvSTyUleW0bnxrnoUYXbPMjQMkW6ATv7y7InX3jCcPg/uHJzqL X-Received: by 2002:a17:906:34c4:: with SMTP id h4mr2972195ejb.167.1590668495896; Thu, 28 May 2020 05:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590668495; cv=none; d=google.com; s=arc-20160816; b=erNe+q82sDyRZxB/F27Jt+Qymbccl/npbpqsmlwk6JtrMzMKRmipXGi6VpOrlDSgrN 1T4XIhTeqVKF9gdoTa9YxqeFi3piwuk9YYRrtcXYhZCIh8goQbar+fcG/jPcPQvrUjxf +axwFw/BlnDfAiQp7XYARR5oUyWB8d4VEpiBtXvhGHtJ3mXw6r0VxSRmNoz12Pq73zRr DCi1JJZ/MA5CmXcpXlyCJ4Ys8clTmOfbnCTtqSHzdgnnUsw2nwKzEixfB7CyJs3GVQY/ avo0VUpR1PLNGkCK22gX19oFT0SvKIjoCZhw9Dw1/FogCpgi509s0KTCs28jaPdfQIYc opSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=X83dr4K31q7DddLuEfWjjAkQIvjN7zRKyt5cx9Ishmo=; b=wIn1TirS64EPsFWNU+e3+L51E3qy6ENXC1AKwnk3dO36f0uN0RqX3DyJuBGKqzAmp5 OyHSS/rCUUGbX76JKIJz4Ydn5hsUdjHQ5URiaE/F/B9wthvQpadW7U4sY6dDVJqZzmHL DIX/fqS08fYogdebKcsAhUsamqWvEe3tcZnbaKiy0MeSG13OD9KjO9pSOdT5UOvzejQe auU05HdwKBGKnruZ58rnOWfFFapkCb8ajOvoOA25pgYFV1VJThMyIfGRTBVWxRRlA49X I8VmNEwAfh/QCUZuJ+ysnG9D3rTkXFDnJGZlGCgp8JzVZ3PfmJWvqS5+V96i0vFZuGzR Xjbg== 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 gz16si3932359ejb.384.2020.05.28.05.21.04; Thu, 28 May 2020 05:21:35 -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 S2388642AbgE1MUa (ORCPT + 99 others); Thu, 28 May 2020 08:20:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388556AbgE1MUa (ORCPT ); Thu, 28 May 2020 08:20:30 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0855CC05BD1E for ; Thu, 28 May 2020 05:20:29 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1jeHWO-004qXv-3Y; Thu, 28 May 2020 14:20:28 +0200 Message-ID: Subject: Re: [PATCH v3 07/11] mac80211: add HE 6 GHz Band Capability IE in Assoc. Request From: Johannes Berg To: Rajkumar Manoharan , kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, ath11k@lists.infradead.org Date: Thu, 28 May 2020 14:20:27 +0200 In-Reply-To: <1589399105-25472-7-git-send-email-rmanohar@codeaurora.org> (sfid-20200513_214546_498367_3B5A386B) References: <1589399105-25472-1-git-send-email-rmanohar@codeaurora.org> <1589399105-25472-7-git-send-email-rmanohar@codeaurora.org> (sfid-20200513_214546_498367_3B5A386B) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2 (3.36.2-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi again :) So ... > @@ -4803,7 +4809,8 @@ static int ieee80211_prep_channel(struct ieee80211_sub_if_data *sdata, > if (!sband->ht_cap.ht_supported) { > ifmgd->flags |= IEEE80211_STA_DISABLE_HT; > ifmgd->flags |= IEEE80211_STA_DISABLE_VHT; > - ifmgd->flags |= IEEE80211_STA_DISABLE_HE; > + if (sband->band != NL80211_BAND_6GHZ) > + ifmgd->flags |= IEEE80211_STA_DISABLE_HE; > } > > if (!sband->vht_cap.vht_supported) > @@ -5493,7 +5500,8 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, > if (req->flags & ASSOC_REQ_DISABLE_HT) { > ifmgd->flags |= IEEE80211_STA_DISABLE_HT; > ifmgd->flags |= IEEE80211_STA_DISABLE_VHT; > - ifmgd->flags |= IEEE80211_STA_DISABLE_HE; > + if (sband->band != NL80211_BAND_6GHZ) > + ifmgd->flags |= IEEE80211_STA_DISABLE_HE; I had dropped these bits from the patch earlier, because they didn't really seem to belong here. Now that I look at them in more detail, and compare to what I had done before, it seems that this isn't really suitable... For example for better or worse, IEEE80211_STA_DISABLE_HT and IEEE80211_STA_DISABLE_VHT are checked in various places, for example in the CSA code. I had instead done here bool is_6ghz = cbss->channel->band == NL80211_BAND_6GHZ; [...] - if (!sband->ht_cap.ht_supported) { + if (!sband->ht_cap.ht_supported && !is_6ghz) { and so on. Technically, *of course* you're right in that HT/VHT are disabled on 6 GHz channels. In practice, we've clearly not disentangled that enough yet, I think. I'll post the patch as I had it, wrt. these flags, and then we can see about cleaning it up? johannes