Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88D31C2D0A3 for ; Fri, 6 Nov 2020 09:07:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 331E320936 for ; Fri, 6 Nov 2020 09:07:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725868AbgKFJG7 (ORCPT ); Fri, 6 Nov 2020 04:06:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725835AbgKFJG7 (ORCPT ); Fri, 6 Nov 2020 04:06:59 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0871C0613CF for ; Fri, 6 Nov 2020 01:06:58 -0800 (PST) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1kaxhw-002BkH-11; Fri, 06 Nov 2020 10:06:56 +0100 Message-ID: Subject: Re: [PATCH] iw: add optional argument to parse 6G band channel From: Johannes Berg To: Arend Van Spriel , Pradeep Kumar Chitrapu Cc: linux-wireless@vger.kernel.org Date: Fri, 06 Nov 2020 10:06:47 +0100 In-Reply-To: (sfid-20201106_100512_161604_5D2BB520) References: <1602283770-8026-1-git-send-email-pradeepc@codeaurora.org> <5c39eaec897af4d7b1005d1f7cb80552c3404e54.camel@sipsolutions.net> (sfid-20201106_100512_161604_5D2BB520) 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 X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 2020-11-06 at 10:05 +0100, Arend Van Spriel wrote: > On 11/6/2020 9:55 AM, Johannes Berg wrote: > > On Fri, 2020-10-09 at 15:49 -0700, Pradeep Kumar Chitrapu wrote: > > > Channel numbers of 6G band overlaps with those of 2G or 5G bands. > > > Therefore, an optional argument "6G" is added and expected next > > > to channel number to map it to correct 6GHz frequency. If not > > > specified, defaults to matching 2G or 5G frequency. > > > > > > example: > > > iw wlanX set channel 149 6G 80MHz --> maps to 6695 MHz > > > iw wlanX set channel 149 80MHz --> maps to 5745 MHz > > > > Hm. I can't really say I like this much. > > > > Is it _really_ needed? I mean, we mostly specify the frequency today, so > > ... why not just always do that for 6 GHz? > > I suspect there are people preferring channel numbers as much as there > are people preferring frequencies. Personally, I think it is acceptable > to put this limitation on 6G. :) After I sent the message I figured maybe then we should have different syntax, where we say prefix the channel number by the band? iw wlanX set channel 6:149 ... iw wlanX set channel 5:149 ... iw wlanX set channel 2.4:11 ... or so? Seems better than having this optional argument '6G' in one place, and could be supported in a more general fashion. johannes