Return-Path: Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Subject: Re: [PATCH 2/3 v2] doc/mgmt-api: Add support for Set default Phy command From: Marcel Holtmann In-Reply-To: Date: Tue, 28 Nov 2017 12:50:14 +0100 Cc: "open list:BLUETOOTH DRIVERS" , Jaganath Kanakkassery Message-Id: <4817B42A-8E1D-448B-BD70-5583F2D3CDF9@holtmann.org> References: <1511173617-25442-1-git-send-email-jaganathx.kanakkassery@intel.com> <1511173617-25442-3-git-send-email-jaganathx.kanakkassery@intel.com> To: Jaganath K Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Jaganath, >>> --- >>> doc/mgmt-api.txt | 38 ++++++++++++++++++++++++++++++++++++++ >>> 1 file changed, 38 insertions(+) >>> >>> diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt >>> index 69e84cd..b59bf0c 100644 >>> --- a/doc/mgmt-api.txt >>> +++ b/doc/mgmt-api.txt >>> @@ -2940,9 +2940,47 @@ Get PHY Information Command >>> LE 1M TX and LE 1M RX would be supported by default. >>> >>> This command is only available for LE capable controllers. >>> + It will return Not Supported otherwise. >>> + >>> + Possible errors: Not Supported >>> + Invalid Index >>> + >>> +Set Default PHY Command >>> +========================== >> >> I think the name “Set PHY Configuration” would be better. >> >>> + >>> + Command Code: 0x0044 >>> + Controller Index: >>> + Command Parameters: Default_phy (1 Octet) >>> + Return Parameters: Current_phys (1 Octet) >> >> Returning the current selected PHYs is rather useless here. It would be exactly the same value we put in. However what might be useful is an event that indicates the change of the PHY Configuration. >> > > I will remove Current_phys. But do we really need PHY Configuration > Changed event since it > can be changed only by Set PHY Configuration command and user can > understand the currently > selected_phys based on whether command is succeeded or failed? and what about a 2nd mgmt user? We want to inform them that the configuration changed. They should be able to track selected PHYs without having to poll Get PHY Configuration. > We might need PHY changed event on a particular connection which > should correspond to > PHY Update Complete HCI Event. That is a different problem and I think that needs to be done via socket CMSG information. Regards Marcel