From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9B99C433F5 for ; Fri, 14 Jan 2022 10:19:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240399AbiANKTO convert rfc822-to-8bit (ORCPT ); Fri, 14 Jan 2022 05:19:14 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:34899 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237487AbiANKTN (ORCPT ); Fri, 14 Jan 2022 05:19:13 -0500 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 7B53B20000A; Fri, 14 Jan 2022 10:18:59 +0000 (UTC) Date: Fri, 14 Jan 2022 11:18:58 +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 06/27] net: mac802154: Set the symbol duration automatically Message-ID: <20220114111858.117b3c9a@xps13> In-Reply-To: References: <20220112173312.764660-1-miquel.raynal@bootlin.com> <20220112173312.764660-7-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 Thu, 13 Jan 2022 18:36:15 -0500: > Hi, > > On Wed, 12 Jan 2022 at 12:33, Miquel Raynal wrote: > ... > > + case IEEE802154_4030KHZ_MEAN_PRF: > > + duration = 3974; > > + break; > > + case IEEE802154_62890KHZ_MEAN_PRF: > > + duration = 1018; > > + break; > > + default: > > + break; > > + } > > + break; > > + default: > > + break; > > + } > > + > > +set_duration: > > + if (!duration) > > + pr_debug("Unknown PHY symbol duration, the driver should be fixed\n"); > > Why should the driver be fixed? It's more this table which needs to be fixed? Right. > > > + else > > + phy->symbol_duration = duration; > > Can you also set the lifs/sifs period after the duration is known? Done. Thanks, Miquèl