Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1520200pxb; Wed, 12 Jan 2022 17:13:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJxQ9p7nqzi1M4yfE67N02u8sn89mcY1BzqjY1iCJjPVjgMWaAXXa1d3Fqtl5UYQVLItCL X-Received: by 2002:a05:6402:2790:: with SMTP id b16mr2052328ede.354.1642036382747; Wed, 12 Jan 2022 17:13:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642036382; cv=none; d=google.com; s=arc-20160816; b=tMgqrgNpf4U4YEY6ODsPc2Ti8qwqCXa6GGZ/1CvzAY3VkIbb6SxMIBxMwOZPisFVSD kL5phh4z0z2iZH0ukMxYQ7M+uVMxLitUsygxqQlZYEpjAZrsuX0Muz579wqgxU1ZrLYB KLlZZ3QUDCDIVj1hOa92IJlDscbp4I3H+xENqNrK3/ij8K0mSTtI8FA0Y1ffIAWZ0puP jo9QxiM6Z0Vd8pDOASzQOqElZiVj+7XMtb+RMY8vDX/g0ApJNFZ1RETtojzguICRQ+6k +rM/AQtfQJ1yLSM7nGaZa4tgu7/ymy2N8OOTLjqJ5R12x9cqBR0/YbF5+8iCi8LCkt4u gJgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=N/s4QKinYtExGYxFtnd9lWeVWELrcAaCnOnegDCRXnk=; b=wwEH8erR1zw7H6caeyt3AIKqB+N3byWXq72XYX6D5vUuvcVu5vBIcrcX1/1BAQjmgB m9koOOK9HDyicau9uNP6o37ZUgN9GU8qX07f9LHD+BoKJTQN332ha+X+0CVqTQe9YQVi 3PM+LS4UyV7wD2dMxAGeW4X8uw/gHQJZlYczHpz/BeDsyLeK/n6jqUN2/Zv22IrEBoVc TaHMx8tyBF6oVsCgiALO8H7J6MR4E0QyIzeXxXYN8zaRSCYAj4iXssCC5EeF3StLtenu qrs6NN5+DUuIKan6virwOFxYtfe4dXMz2xBOmt49d1lsCTlTHVOW/MjinHswmXlW24X/ HynA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Fkc6+BrY; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g25si769524edq.416.2022.01.12.17.12.46; Wed, 12 Jan 2022 17:13:02 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Fkc6+BrY; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234309AbiALWat (ORCPT + 71 others); Wed, 12 Jan 2022 17:30:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234292AbiALWas (ORCPT ); Wed, 12 Jan 2022 17:30:48 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D1ADC06173F; Wed, 12 Jan 2022 14:30:48 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id v6so6773226wra.8; Wed, 12 Jan 2022 14:30:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N/s4QKinYtExGYxFtnd9lWeVWELrcAaCnOnegDCRXnk=; b=Fkc6+BrY7rwnvKAGdwDs9WVGmAPj5SHMpZgljeQ3vlQrQY+lmwlCWrI1GupQdXG1HV 2DjDSeBsR1XIoF44yWBjTaG7TgruHtx+0YMMO3wWAqiYnqc/sBUqMpZeljw92Sd87NWv mQfu8OdJvCGCIDInNeGuKf0uhIsnb4DrXsACxPp7ExEDIru4/BxqozjeVLLBMb29aoYm bB06DXPmOM5wYdbQjlYgptNKjySBmtVvDABDWsYRp4i9I8cbJjulCmvFXjUpS8sLIacP 34OE2MonPdLbNChqbNb17fVt43QnFzzRY81dtCoUc69zLQPahtl0J9sx3x89xLVdVuf8 HERw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N/s4QKinYtExGYxFtnd9lWeVWELrcAaCnOnegDCRXnk=; b=zufNz2opjjVKt2Zr7WxddjwkqR3Pc4jLFxQZpu474vH9svnh/nGB6BO95JPvuiRQMo BpV1NCVdbQklZvBthP/Oh5roLOf4pbQTw+SNm8gV+rqjAreVskK88Zz13TDlYdouW5kk ih07YII8ChZ4OGMYwVpxE4uVeLY8f9GJT2b7c3eg0YrYG2mjoRPova30w07PqmVCkk6w VGvlBQ0/9LCQj3vNPB3CJXxA7orrWYjW34DrDdqPlzXLSaqGaMFa7FuwuBnMfxHE3yRj PCO0dTWwo/GsTn5Y9EApfwEOa6250t8cCJN+7IsIHJQVNIAbAJdAMRy34lp59/vSnEMU vx6Q== X-Gm-Message-State: AOAM533VK0vFLbyeoYiC1QHXnGLw6yku00H9vg3E948GDc5dhO/99ZV+ o75TdX8c60QB56JaugaJHVkqP9RKBgtGBZc/eCE= X-Received: by 2002:adf:e190:: with SMTP id az16mr1530408wrb.207.1642026646731; Wed, 12 Jan 2022 14:30:46 -0800 (PST) MIME-Version: 1.0 References: <20220112173312.764660-1-miquel.raynal@bootlin.com> <20220112173312.764660-2-miquel.raynal@bootlin.com> In-Reply-To: <20220112173312.764660-2-miquel.raynal@bootlin.com> From: Alexander Aring Date: Wed, 12 Jan 2022 17:30:35 -0500 Message-ID: Subject: Re: [wpan-next v2 01/27] net: mac802154: Split the set channel hook implementation To: Miquel Raynal 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" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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]. - Alex [0] https://elixir.bootlin.com/linux/v5.16/source/drivers/net/ieee802154/at86rf230.c#L1553