Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1053388ybb; Wed, 25 Mar 2020 14:50:27 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu6yfE+YbZVStm3bjleP9XSoSGPFLAy8ZmrVxa95etIlShj4v0SMv2Q6zU4wz7R3hc08c6g X-Received: by 2002:a9d:12d:: with SMTP id 42mr4001056otu.2.1585173027249; Wed, 25 Mar 2020 14:50:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585173027; cv=none; d=google.com; s=arc-20160816; b=vgloWshwUy/NbKxE1x1+2uzOCZlIkl3oXE6a/m17BSVq8IPU6Z2q6B+cHrtWu0g4LO kv2wF8Znk+I+ux0j7CZ8zIhp/l6oVWvYhee93QJzcjdXegg0rl4y2+LuQ65BEIG3jt5q eePcjfP2dCOkw6SgEj0so3ap8lksCdysiyTY1AbM3GCNxbciijvytBtUvDEE2bI6NK8a 7cc6oTPQq/4SmQuHHaCtsQl29n8lXBS/9xtrHnyX77MmS+tTpJ8gx/wJwqSOV2tCszmF f+Aj9beN2096ulqYgIHiEhOq3c9KrvMn5unopDm2EARB2Qrco5qmBUYrne1wUh0cqdpa vCYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rpR9+T3RReClSmfYyE7a8wj2FfC9QbmE6XN0tqKV2Ns=; b=w1cjOIFXoxBiIyM7/3R/Y2pdX03gM9EgDKCouw0s6EV5kWT0pjXH84JCR08JNAaZ4F Z4LN8AJyGxvkOWeRyAGoRssyNf+MJcVQiEIJWe7FWhh1sdnBZ+0Wt4h6C02Me3NsB6+T lOoYCTrMn6hnw7KWhbCUvAPIkRdahlBNANfC0X5MABbPg/IX2Pii3qLkooivU0cP2DA6 rMpBSGwqfRC4ioP8gDzhE3tjC346I1vfjrfzg7t9uJYZJcEcbNstIGAUSyqXJ+dyCcjU XHoJJkMGVNcISX57e9KHoqxE1nPM2mJijwvgowIEoKnBtZi3Y0gMwzGw4/uErzothTU5 WZKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IOZ6qTTx; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l126si147309oih.31.2020.03.25.14.50.14; Wed, 25 Mar 2020 14:50:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IOZ6qTTx; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727357AbgCYVuJ (ORCPT + 99 others); Wed, 25 Mar 2020 17:50:09 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:36460 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726081AbgCYVuJ (ORCPT ); Wed, 25 Mar 2020 17:50:09 -0400 Received: by mail-vs1-f67.google.com with SMTP id 184so1808048vsu.3 for ; Wed, 25 Mar 2020 14:50:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rpR9+T3RReClSmfYyE7a8wj2FfC9QbmE6XN0tqKV2Ns=; b=IOZ6qTTxOL5Mfm6yZusp8ofausGOd/LDrl6K7o0cdoMkNTJVdukFetDQZlmAvPLei4 Y1j73duEjmfkVghADFMqv1wp4oKcUvKEOHHV5soGAhwjFEfdkYPWvW/a/9A+kNBs1u1D /l8TgWp2OE2IdkFNK3he4XDO6FAdetVYgHiKY= 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=rpR9+T3RReClSmfYyE7a8wj2FfC9QbmE6XN0tqKV2Ns=; b=KQc0vd3z2SP2mI8Ne3rfYQM9+SCYWVm4E9hfxME0poZmZJhA/z1NvmIbahJJoRp+vh R/dcj28ctYs6xv12d7vKTKAeyYZ83nDi1TN5QAV6d4IG8Iopy9w9TxUeSxYBkkt3eTMu Lq2WFTIV7azkqaFPjzY42K29Osg0Jh/u4JJ5DTehJv4BljegHn0LqImQZPxZqpsGaS2Z fKZH1MCeJgZ1cCmsmGAlET5+ranrIx3hN1c54TtGNf5q/15Ha6YDQMKYEHb5H0nsgUAv bZkPt/9E08FO1/XtkXa/nlz1AsZM2+0b/ie1fIdhDckZ+Ts1vpYQ9UnFMdj5hqkoXoKw 3bNg== X-Gm-Message-State: ANhLgQ0bcOAedr27VItT5ROUVjfakg4459GYPKb9s5nXU9sXBtyphOx+ nEu+RRDA+zqH+4/AE18evDGY8q3Tad+K8rNL/jI1oQ== X-Received: by 2002:a67:d086:: with SMTP id s6mr4303004vsi.93.1585173007888; Wed, 25 Mar 2020 14:50:07 -0700 (PDT) MIME-Version: 1.0 References: <20200320015023.85896-1-abhishekpandit@chromium.org> <20200319185000.BlueZ.v4.1.Idb4f0444e40064a861ee73b098264abd30114aaa@changeid> In-Reply-To: From: Abhishek Pandit-Subedi Date: Wed, 25 Mar 2020 14:49:57 -0700 Message-ID: Subject: Re: [BlueZ PATCH v4 1/5] mgmt: Update docs for Add Device To: Marcel Holtmann Cc: Luiz Augusto von Dentz , Alain Michaud , ChromeOS Bluetooth Upstreaming , Bluez mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Wed, Mar 25, 2020 at 2:25 PM Marcel Holtmann wrote: > > Hi Abhishek, > > > Update the docs for Add Device with information on flags mask and value. > > Add information on the Wakeable flag that can be set to allow the device > > to wake the system from suspend. > > --- > > > > Changes in v4: > > * Newly added support in Add Device for flags > > > > Changes in v3: None > > Changes in v2: None > > > > doc/mgmt-api.txt | 12 ++++++++++++ > > 1 file changed, 12 insertions(+) > > > > diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt > > index 27a41f334..e99c23710 100644 > > --- a/doc/mgmt-api.txt > > +++ b/doc/mgmt-api.txt > > @@ -1997,6 +1997,8 @@ Add Device Command > > Command Parameters: Address (6 Octets) > > Address_Type (1 Octet) > > Action (1 Octet) > > + Flags Mask (1 Octet) > > + Flags Value (1 Octet) > > so we can actually not do that. This is not backwards compatible since the current kernel version have a strict size check for the command parameter size of Add Device. > > Is there a problem to just introduce action 3 as I mentioned before? How does one mark the device as not wake capable? (if 0x3 means mark the device as wake capable, should we add 0x4 meaning mark the device as not wake capable) Does a device need to have been already added to be marked wake capable? (Answer should probably be no) If you're ok with adding new actions 0x3 and 0x4 and making them not imply 0x1 as well (LE always sets 0x2 so overwriting the value doesn't make sense), I think that will work. > > Regards > > Marcel >