Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp292349pxb; Thu, 13 Jan 2022 06:50:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJJpsJpQNaDLYP2tXLxU6CvecrNNtie/6xtnd3ssVkXPAgir1PJy5c4frPqRFDT15cmxJk X-Received: by 2002:a05:6402:2211:: with SMTP id cq17mr4609867edb.380.1642085437677; Thu, 13 Jan 2022 06:50:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642085437; cv=none; d=google.com; s=arc-20160816; b=CqYUl3KUJ+21m2E1LEh8V5WwOFfqlhG4G/BxWjb8+eDPsgfeIVxTeKDhamj8bbTzsW wWoeDMT9X7xrT1e62aVymB99aY+i5AZM/xxRqCdXex/fOGJEIarCTda+x+71g9Rvn9zc hIXHAdXWPSU9dHY7+hj4fXY3+zEW3BfryM0HQaFwRA7aY7P7xCqFG1RhDS6H39Ae9TeN m3FVdDWbRRLCR6h8ogyFFdD60HRPlACsldlwr2QYZOyqCepMikxQBcEN0srAQHONV5lJ f0CJgK4d7AjAhvSOd5E4d/b6t82kjBt7g/5iqW93O0LvAV8YuRGXnlfFnPZRZAC+TnRj Ck5Q== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=5Kl6o7G1O8RF2ZI9ya5bhJhcsOkeL/PvS79eEVKeF5I=; b=A5omvRuLdwmYqJs1WAfE3D/UzaUHn7OSNaTjHBWAiT3BDpaG4e02MQBHF1EqPQIGUM u19rzwF0ze+NaofhwRqzZw8fp2MqT8ikHt2Nf8GHYrNLmADAimMbxjNg3xngSej8cHcw yJUkDIoAalaIgaxJHB2pyq8xdtjv5JgIibB96NeNnqxfHvq1hEaZ/2XGShd3gjsgZCDE MKdI1UKPFsmtE4WM3VDYOF/CsOFZYuUoleIjIu43RD1N7FyMnN/PKWEObrWDIcT4PbIW gv8nS4tdDzQIu47TP9ed4s16JU0OcJj37hBWNpip7m9M8Jz9hMzH4m/zUcEimNn3KFaQ sHNw== 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 hg4si1799814ejc.768.2022.01.13.06.50.14; Thu, 13 Jan 2022 06:50:37 -0800 (PST) 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 S233469AbiAMJcg convert rfc822-to-8bit (ORCPT + 71 others); Thu, 13 Jan 2022 04:32:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231216AbiAMJcf (ORCPT ); Thu, 13 Jan 2022 04:32:35 -0500 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::223]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C18A7C06173F; Thu, 13 Jan 2022 01:32:34 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 046FC6005A; Thu, 13 Jan 2022 09:32:30 +0000 (UTC) Date: Thu, 13 Jan 2022 10:32:29 +0100 From: Miquel Raynal To: Alexander Aring Cc: Stefan Schmidt , linux-wpan - ML , "David S. Miller" , Jakub Kicinski , "open list:NETWORKING [GENERAL]" , Michael Hennerich , Harry Morris , Varka Bhadram , Xue Liu , Alan Ott , David Girault , Romuald Despres , Frederic Blain , Nicolas Schodet , Thomas Petazzoni , "linux-wireless@vger.kernel.org Wireless" Subject: Re: [wpan-next v2 01/27] net: mac802154: Split the set channel hook implementation Message-ID: <20220113103229.64612657@xps13> In-Reply-To: References: <20220112173312.764660-1-miquel.raynal@bootlin.com> <20220112173312.764660-2-miquel.raynal@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Alexander, alex.aring@gmail.com wrote on Wed, 12 Jan 2022 17:30:35 -0500: > Hi, > > On Wed, 12 Jan 2022 at 12:33, Miquel Raynal wrote: > > > > As it is currently designed, the set_channel() cfg802154 hook > > implemented in the softMAC is doing a couple of checks before actually > > performing the channel change. However, as we enhance the support for > > automatically setting the symbol duration during channel changes, it > > will also be needed to ensure that the corresponding channel as properly > > be selected at probe time. In order to verify this, we will need to > > no, we don't set channels at probe time. We set the > current_page/channel whatever the default is according to the hardware > datasheet. I think this channel should be dropped and all drivers set > the defaults before registering hw as what we do at e.g. at86rf230, > see [0]. Is there a reason for refusing to call ->set_channel() at probe time? Anyway, I'll put the symbol duration setting in the registration helper and I will fix hwsim aside. > > - Alex > > [0] https://elixir.bootlin.com/linux/v5.16/source/drivers/net/ieee802154/at86rf230.c#L1553 Thanks, Miquèl