Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp714143pxv; Thu, 22 Jul 2021 10:21:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTdC0Dw3zcjRW4kRj5x89pl/3p4WWNrMJCC8x6BbODK8cm3PaieagTMG9rpa1WfLCZoXwR X-Received: by 2002:a02:7f47:: with SMTP id r68mr505066jac.127.1626974499001; Thu, 22 Jul 2021 10:21:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626974498; cv=none; d=google.com; s=arc-20160816; b=ESdLP9jZlQ0nU7r2E15VUpNRl2xNGnSCDUezhzeJGnr61bvOMkUGb73Bq/C0pEYaNL ayE0/DIrODJ3m2iix1cgDoZTMiAJSn2845A7cCSXlcSdLLEt134HJgkTqqg6eP/sSKrI vdgoqt3HtzPl/x9R1AM3BS6anseYRPZ4jX7o1qVHbiOc5o+sPSylP7OVPCeaX9pmpLNd qowl2wr+po3bKohiPE3doDKlPJSNllT3LvW5Ga3kYImrt6cAyQ+98MClj/wcyYenc4El 7OWiQYGGMU7yVY1w8YzWEbkl0w3DFau0XuNJ8My5kYS0DAcoM8B6gMHcHya8YynwR6P3 Ud6w== 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=tH8lPjuXyAGZkVGYUOOpNa1tNdQn40RhraGHQ4fQNwc=; b=HC5MvUf9pkMDr26VPZiy8ul6vqmDUKmZcnzSpB8bPRZCT+OYx8f/IV02UM2/6gJ+0o Xf4uRWdlzCqNZMxNzLZ0yzOudBbehFvRts9JFV//BbLNKGPryYxw+PbYgmsI4+AfhTDY Q5w5CshSwUPODzykzyfPuDxj9uZoakNHKPtZ2OG/aOzv7JVS3LW387efnwtDITkBQSwI 2LAGMflyylKpNfrSAIjvTt4HsRkdbQlT5yO4cG/zWz9OXFNjzn72dz/LY9bEVx9UIM9U h/W1Epb92x36AN600jJflY4f30xsOYQNE2nqdC2W/h5zynNGdxc2/G2dm4TAe5vD2Rre tnAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="RPz2/Sau"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 d17si11654818ilf.150.2021.07.22.10.21.20; Thu, 22 Jul 2021 10:21:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=20161025 header.b="RPz2/Sau"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 S229456AbhGVQkE (ORCPT + 99 others); Thu, 22 Jul 2021 12:40:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbhGVQkD (ORCPT ); Thu, 22 Jul 2021 12:40:03 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0AF6C061575 for ; Thu, 22 Jul 2021 10:20:38 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id y38so6521451ybi.1 for ; Thu, 22 Jul 2021 10:20:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tH8lPjuXyAGZkVGYUOOpNa1tNdQn40RhraGHQ4fQNwc=; b=RPz2/SauepElXXQ0yJOVClQWbLh2eD3UTPVFWBrTYHxrPPQ8ioT276lVE4c2IURJAo c4G0I+Z/9HoS409+SyN8YO4IdCLh3Ahy9zjrHDKkvE8iPmUNxJaVQLVq0/dagPtjbAN+ Tp3W3XyhvDkr8sR35M+DJpgaKsSuS2tKIOIo5QAuiER6d4ti02N7rgCM8sVmRnslysRN AkOjX1X4GlA4JEuNKf6xTFGk2G5IGZaOS7s1gutdp3fksk8VDMv6M6e+zZdd4Ck/aavv tIF2FCxG3q9xjPvR13wPbxr+fXKFcWVBaL2GVLVMCwww8735rdXAKPKizdkJxcUDJtJa K5SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tH8lPjuXyAGZkVGYUOOpNa1tNdQn40RhraGHQ4fQNwc=; b=Vy5xBw29J9bDv0XP2yynxF7O5dVc+XoILPDq4D7zBPGlKOuBoPdOQM50qK2pxBRtur tN+HV3WH0QuP1upzLeY2qWQuqzYLWrZkMCdgv3sL6/Gw617Lvwp6tR4vpm3PDWHrI4bL KquvFE2884tpTjrWpQj3D1n0TITDn9Rcvqr/dvEqppTl3wnYvp6xm1L5aVjovROCf63X lEQ0V13NBkrNxXmiKxojEFitvQ7yeiBpBMDso2y+WkvlyLy7ESPKtXyWsSUE6DP4VfvI 0OY46XPfBEx9tnT714nki4W+NbKeE75HWfRq518IpqDcWxUmciAoLlZi5OoeOtuUSuh6 AyAg== X-Gm-Message-State: AOAM533tYqLjrK2AAyB99B1Vr0OffOAm4welpAzo3m8qVcEiPKA+Y4DR +0ij/5GQklrS5ECRbX4fnba/HeTlFODIY2tgGLw= X-Received: by 2002:a25:b741:: with SMTP id e1mr703151ybm.347.1626974437498; Thu, 22 Jul 2021 10:20:37 -0700 (PDT) MIME-Version: 1.0 References: <20210722052640.5863-1-ayush.garg@samsung.com> <20210722052640.5863-3-ayush.garg@samsung.com> In-Reply-To: <20210722052640.5863-3-ayush.garg@samsung.com> From: Luiz Augusto von Dentz Date: Thu, 22 Jul 2021 10:20:26 -0700 Message-ID: Subject: Re: [PATCH BlueZ 2/7] doc/adapter-api: Add PhyConfiguration property To: Ayush Garg Cc: "linux-bluetooth@vger.kernel.org" , Anupam Roy , nitin.j@samsung.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Ayush, On Wed, Jul 21, 2021 at 11:02 PM Ayush Garg wrote: > > This change add a new property which will allow the user > to get the controller's current selected PHYs and to > change it at any point of time. > > Reviewed-by: Anupam Roy > --- > doc/adapter-api.txt | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/doc/adapter-api.txt b/doc/adapter-api.txt > index 25e370d75..97af8e70b 100644 > --- a/doc/adapter-api.txt > +++ b/doc/adapter-api.txt > @@ -356,3 +356,17 @@ Properties string Address [readonly] > "LE2MRX" > "LECODEDTX" > "LECODEDRX" > + > + array{string} PhyConfiguration [readwrite] > + > + Set/Get the default PHYs to the controller. > + > + These PHYs will be used for all the > + subsequent scanning and connection initiation. > + > + The value of this property is persistent. After > + restart or unplugging of the adapter it will continue > + with the last set PHYs. > + > + Refer SupportedPhyConfiguration property > + for the possible values. > -- > 2.17.1 You should probably have create a github issue to discuss the API first, anyway for the adapter I don't think we should be doing the PHY configuration at runtime so it would probably have been better to have such configuration as part of main.conf, and Ive done this with a exclude logic so one can disable PHYs that it doesn't want the system to use. -- Luiz Augusto von Dentz