Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3175367ybg; Mon, 28 Oct 2019 08:37:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIINS6VpnYSKqw03myc/HUSMYzHkyynlzLSqHKKJlx88ICfbDnWTn8Gi3GgFV22U1pgHdg X-Received: by 2002:a50:9353:: with SMTP id n19mr20402377eda.258.1572277066281; Mon, 28 Oct 2019 08:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572277066; cv=none; d=google.com; s=arc-20160816; b=MPjlIG5F5RtNqM+01XAunWvhUbXYSvlYgCmu4O34hynPc/+gyibwCaYQGDLmo+EmQ9 E330fwOGkYNNkp0xYzGgF6GkfQRMQlcg+i0IY5cIYFQjhcXzaIo3qLf4v4pY1lN/yesl FMhWRcr9jQl/5d+ZOm+KLRPHCxJbIRVAlx1RV7rZ0r+NLhqAO+gtT7cMd6NvCR64ioJs pXgBEqiegA9V/q/hTJtHfgf0gSaTVDBsbe+DAreIdlLQbD+NxbRd6IL+wHzowjE6uIek sR+1l9yk+iEeDpG4GVKMkv6aGrMRxBqaDMwS4EMw3xLymsgCliob8jcpKEDO2pa27Ad8 MSqw== 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=l+Fhg+v7Co8FLBaMi34ODbkbcqHsITz8R4IHJPT4mF8=; b=bOragtjfYhsCTtcSQhJz0q9pX2+1WKhqyxq+MbCqy6EmFjDOwDz9/5MpIUsYLayVsA 7yG0EyLKuEGDphj9F743WT/sz3yjc6nezqBKfY9q9ShdS2RvqG4eVNk4GsURB6MzP/Um YkyX4XR2WVr8EZ8hQoDM7+11a7HbkuRdkSCCNqPlqx5JP2eNXz92LuU5TcpW5z5eLScq W9OGBfQg8j/0xgg2RXOeX4TVBwqUAxHFeBndJcLsYZBs1+UqAVEF5ccQubI/yekRJ/0G NaYse12Z02Y8k6f1BQWH4WewbHtNx4pKw0ATtyaxjiQsuzqf/fxtiMw7R2kv+tLK68Re lijQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hCMgTKes; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x22si6560793ejv.335.2019.10.28.08.37.09; Mon, 28 Oct 2019 08:37:46 -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=@gmail.com header.s=20161025 header.b=hCMgTKes; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727416AbfJ1GGN (ORCPT + 99 others); Mon, 28 Oct 2019 02:06:13 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:45059 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727182AbfJ1GGM (ORCPT ); Mon, 28 Oct 2019 02:06:12 -0400 Received: by mail-qk1-f193.google.com with SMTP id q70so7435735qke.12 for ; Sun, 27 Oct 2019 23:06:12 -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=l+Fhg+v7Co8FLBaMi34ODbkbcqHsITz8R4IHJPT4mF8=; b=hCMgTKeswwsrM5fBT0gSBzBt2w4Ypqzo7AbQWOpLTAQJpdouE4jCe5NLjogbBhbWIk dOIRk35SlWhULjwpR+KgHGZTP1OIsHBsIC4rweLr+bux86Nc7pDniE6HBZSiMeC8YihY 2340rrMeiuvWbuo1hGADV8r0byEZBNzwF1uexq0039mrSlrzhlVmwh1exsjYBso2P7o9 3iwKAHcUQ0OVU1lTvIsGm7wRgLB7lqD/N9AZ96BRbMCYhaYTUISdDQeqRvHatqJ8PBsN Vz0T+0PxQBERi1JUx0Yi1S+3VQQwXcAQkjM4IovEtBeEXHjD/GOgFYODeUudyPZeiU5Z KhPw== 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=l+Fhg+v7Co8FLBaMi34ODbkbcqHsITz8R4IHJPT4mF8=; b=J5SuaaQ53A3MdazO9GUfi3fgzcgAgHQBFpwNTfTSZc0KM++Z6Lw+gzHZl1SjOY6lov +NyrDSPcq07H4AfLfUwlC27h8NUuU0VwI/2p7cWGBOOE/N/d2+Ce806BMhZ1CCnA8WCf mVRerYHHNiq6pfGT0fj7qWMCaUl4+9BUgARptqRS1MfEKQ/2DjCh98bJfFt9IeNZ29WN gompqJXjFFJURhZew7PkrmwB5E8SC+iIwRF/tYAAPVK6AlVf/RlD9JqgHwVrY3bzMAzX mOnx1MbWfLbWjr/2GAIyTGr+yp2aGYsPrabagegPgp/eKND7Y/d/kfIxRbpXkq4BWVop xUiA== X-Gm-Message-State: APjAAAWJy4iEzx7etutwKZxBPNVKr3Rz4LW9YcikJw37YQ+icabp5/vV jPNUraMk0sm+JcxgsmfVL3yuMMIqQpw0vlBBYUzFTQ== X-Received: by 2002:a05:620a:2191:: with SMTP id g17mr14537095qka.247.1572242771858; Sun, 27 Oct 2019 23:06:11 -0700 (PDT) MIME-Version: 1.0 References: <1571913139-6477-1-git-send-email-jaganath.kanakkassery@intel.com> <585F2A10-B16E-46BD-8EF6-4FD904A485AC@holtmann.org> <368BD38D-6FFB-412D-A6A9-364B3B5374F0@holtmann.org> In-Reply-To: <368BD38D-6FFB-412D-A6A9-364B3B5374F0@holtmann.org> From: Jaganath K Date: Mon, 28 Oct 2019 11:35:59 +0530 Message-ID: Subject: Re: [PATCH] Bluetooth: Always set scannable for Adv instance 0 To: Marcel Holtmann Cc: "open list:BLUETOOTH DRIVERS" , Jaganath Kanakkassery 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 Hi Marcel, On Sat, Oct 26, 2019 at 11:02 AM Marcel Holtmann wrote: > > Hi Jaganath, > > >>> By default for instance 0, local name will be added for scan rsp > >>> data, but currently the property is set as non scannable and hence > >>> Set Adv parameter fails with Invalid parameter. > >> > >> can you be a bit more specific why this is the correct behavior. We must have documented in mgmt-api.txt somewhere, right? Or is this something that used to be correct, but we broke it with adding extended advertising? > > > > It seems to be functionally broken in legacy adv as well as we set scan rsp > > for instance 0 always but Adv Properties is set to non connectable (if > > connectable > > is not set). Even we need to fix mgmt-api.txt as well as you pointed out. > > > > But in legacy case commands do not fail as scan rsp can be set even before > > Set Adv Param where as in extended case Adv param for an Adv set has to be set > > first before sending Scan rsp and other commands for that particular Adv set. > > how does this intersect with the patches that Luiz was sending earlier? > I think Luiz patches covers both the issues. Thanks, Jaganath