Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2925004pxk; Mon, 21 Sep 2020 00:00:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFXq1+/PXqQlrinUfyttT7q69KNeEtomJFlGFsmH37yzXJWuEMilMD6gcANkC0jRE2f5gs X-Received: by 2002:a05:6402:1805:: with SMTP id g5mr49342269edy.135.1600671615755; Mon, 21 Sep 2020 00:00:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600671615; cv=none; d=google.com; s=arc-20160816; b=UY3/qkNl0wDc8csDAo3ka3n/uGRMpC5JIjfa6u62zKVzTkYn25mPfypqXkQ2CQjtdI vsrfhUf8SUC6x3I2Tn7pkyxWJnYIy5jl1xgDwKUizM7MJQBfRHyUvLlPFLB6eLe3cYPP K3hQGzoOt4OSLoPP5Nz5aWXGDVpE6hg2vOUTuTYMU0kMSbRKi4gF6HAyUNs//3z/Pgih XF+JQaKgzDNMBLpdfxjtmuEhS0lb87cn60ldI6nAraptwfIFc3qno5XNdds5U5uPVoem O+YbQlTMBYeFyrcLG7BZarA0X3pdUvnOjtoG2SSz3NKuFNc0XcOKFjelMrhK2JsU2Jmm K8FA== 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=t1f3Z7L/mWMC0uyGoxaBJHyBTGJDuru4DY1ah5cRPG8=; b=Q89a9ceNZAcWOi5oF7wZO68YD343LjNhZcKwSxCwfaBRcYQ1ZBF1RS5PYi9h7tfNTx /QoGPDIUuEeaeDYJpGmGjUFtp2EryTg+CDPlmAWDyg6QV6oYcJeGEiy3hVs37ZdKTni0 5CbP3EnKpx6CbFxcSEvOkt1AqBmgtrKCV6XtAoECBolTSbr3eNioboXmMpkJn6SOLiyo u3JSqLHgren4BVe+7+iIEeT63ZI7FQldCxCg8BlzSZo56IjUcLaxe1UaahS8TVJ1RtMs QQIR9zXkZOTCrkK3393268dDSDXdgXKtcnsQUPE/720e6uaOiU9TK56a+NzomyDNs6HF 0BCw== 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 t17si9257264ejs.91.2020.09.20.23.59.51; Mon, 21 Sep 2020 00:00:15 -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 S1726244AbgIUG6E (ORCPT + 99 others); Mon, 21 Sep 2020 02:58:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726011AbgIUG6E (ORCPT ); Mon, 21 Sep 2020 02:58:04 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72C63C061755 for ; Sun, 20 Sep 2020 23:58:04 -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 1kKFly-0084H1-QL; Mon, 21 Sep 2020 08:58:02 +0200 Message-ID: <58a237393a12e3de23d685f4dae4279a8823e47c.camel@sipsolutions.net> Subject: Re: [PATCH v2 07/22] mac80211: s1g: choose scanning width based on frequency From: Johannes Berg To: Thomas Pedersen Cc: linux-wireless Date: Mon, 21 Sep 2020 08:58:01 +0200 In-Reply-To: References: <20200831205600.21058-1-thomas@adapt-ip.com> <20200831205600.21058-8-thomas@adapt-ip.com> <43afe1ee1067d77aa6be5765e02f3cf0549c7c8f.camel@sipsolutions.net> 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 Sun, 2020-09-20 at 22:06 -0700, Thomas Pedersen wrote: > > > > + /* For scanning on the S1G band, ignore scan_width (which is > > > constant > > > + * across all channels) for now since channel width is specific to > > > each > > > + * channel. Detect the required channel width here and likely > > > revisit > > > + * later. Maybe scan_width could be used to build the channel scan > > > list? > > > + */ > > > + if (chan->band == NL80211_BAND_S1GHZ) { > > > + local->scan_chandef.width = ieee80211_s1g_channel_width(chan); > > > + goto set_channel; > > > + } > > > > nit: double space after 'goto' > > > > but really I came to say that this probably changes then, if you don't > > convince me about the stuff in the previous patch review? :) > > > > So I'm leaving this patch also for now - have applied 1-5 so far. > > Thanks. I'm not really sure what else would make sense here? > scan_req->scan_width is constant across all channels in > scan_req->channels so for S1G we can either filter the scan_req channels > list based on scan_width (kind of strange and unexpected), or deduce the > correct chanenl width for each channel in the list and ignore scan_width > (mostly correct). It seems like scan_width is currently only used for > scanning at 5 or 10MHz anyway? Yeah, that's true, it's sort of undefined if you're not in 5 or 10, and then we currently assume it's 20, but obviously for S1G we should assume then it's 1 MHz or something. FWIW, here's probably where I thought you have a unique (freq, bw) tuple and thus shouldn't really need to have the parsing in the other patch? But I never looked at the spec so far ... Anyway, wrt. the code here, I think perhaps you should just simply remove the reference to scan_width? I'm not sure what you'd really do with it, since it's a 5/10 MHz thing? TBH though, offhand I don't even know how the 5/10 MHz scanning is supposed to work? johannes