Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp900299ybs; Mon, 25 May 2020 01:59:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0KB2ijeSYIEPjeKpsx0emWF4ppR0b3HG4kRZL5sTjj94Jviq529ch9OGZvMIjPrTU11Ud X-Received: by 2002:a17:906:90c1:: with SMTP id v1mr17260779ejw.322.1590397161593; Mon, 25 May 2020 01:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590397161; cv=none; d=google.com; s=arc-20160816; b=qcjtEvytq8zj1i41W+yzJ99e6p9ZAcLa7XPaIMpigOwxtJb7xhEqcvHYDXWx6O6Kas PahMBwTs2k2I8BPNNC9A2NGdtW8REuGRfvsVsdW83dGRnEv/WNjN/WBiHrRVVQVSZhmB pgAStOVc8N4FZa9O1bEOAm8qatdO5Oy4nRkdnwP2wN4NlMSB1Qxl0PezaGhhYWRksaJO 3cV6dnvoeulrS8zUxwZtlY9aSasMIb2Nh92i/DStfAw2SBBhMSxP9GBrbYMqNAr7ibka gYyMp96XXaDUh3dV3x6pt5/+/r4giXBttJarWZ/fK5Xe0D21FgXe4jDPJBOsKVNesyPA 7Wag== 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=elsPhNVhyFAxSpZAtW8B6Ksrz78ShS8IhU6vyZ7+O1g=; b=opJwqlPoW63ak0RV+Ch3/JpjU1hblAzJJh4DIL0fU1aG2TzAQgc8cb+7vEidpA3lYE o60Mk9S3pOPgHbI8ke+DgU7H4An/twIKGpsN/1x7B6REwOJmhaqW0w6S/RwOe+4hMZmg NPQEm5JgqbDohx8XvSaaRIjuKMh8H67D8i/IbvphOsEkUtCfS8z7VSwVozUyni8jBmXr bn9yh5oiAtzdMdcRhhJ8QHGbiyFSUZZmlWfcQVb+ntI9LiKMz4kRPi4J3zuLbnTh4e+S bIefhy8vUEPM/+IwwUM7sqIJSmYU0FCMIxa1wkqTecPzoFPh6d8k3rTGfMrwVxZwIorF P07Q== 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 e4si9132422edm.144.2020.05.25.01.58.52; Mon, 25 May 2020 01:59:21 -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 S2388611AbgEYI6D (ORCPT + 99 others); Mon, 25 May 2020 04:58:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388437AbgEYI6D (ORCPT ); Mon, 25 May 2020 04:58:03 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3B0FC061A0E for ; Mon, 25 May 2020 01:58:02 -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 1jd8vl-002ara-If; Mon, 25 May 2020 10:57:57 +0200 Message-ID: <695723cd3134d8abf120c886c5d7d5791cae0d03.camel@sipsolutions.net> Subject: Re: [PATCH v2 1/9] cfg80211: Add new channel flag to identify 6GHz PSC channel From: Johannes Berg To: Pradeep Kumar Chitrapu Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org Date: Mon, 25 May 2020 10:57:56 +0200 In-Reply-To: <05fcfc43f2d59dd549a65a83ab60df60@codeaurora.org> References: <20200522072431.27601-1-pradeepc@codeaurora.org> <20200522072431.27601-2-pradeepc@codeaurora.org> <05fcfc43f2d59dd549a65a83ab60df60@codeaurora.org> 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 On Fri, 2020-05-22 at 16:46 -0700, Pradeep Kumar Chitrapu wrote: > IMO, accessing flag would be faster instead of computation, as this info > is handy (already in cache) when accessing ieee80211_channel. True. > However, considering general usage for this info would be only for > control > path, it should be ok to expose function instead of maintaining separate > flag. Yeah, I can't really see where we'd care ... this is used only when we set up a scan, etc. > Please let me know your suggestion.. I'll now go and try to consolidate all your changes and ours, we'll see what falls out. johannes