Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp330999ybg; Fri, 25 Oct 2019 22:32:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/BIfPqSbdlYvbyZZCOnt2Q4TuxOy248MIb3dce8mTy74QjoyWRZfy/hLLEef58m4U8hve X-Received: by 2002:a17:906:4dce:: with SMTP id f14mr6802948ejw.22.1572067970906; Fri, 25 Oct 2019 22:32:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572067970; cv=none; d=google.com; s=arc-20160816; b=F3mSxBdL5MTRo6xQGW0shuPqC9zTgQB3ZzhhP+zf4h4rCGT4T3nuAbjeqWH91wpEBf O02DzPJ/CxLvL8hHSNMOGQdYdVGhGFMjQxpEOYYSH5aAffAuikl8AWdvejJw0kySvJNC cTL8DRJCQzxsCO50XbK/0aRBVCvtX/WoOZEZvX8U6beZx9OJjvJ8YFdgUK/parIygtR7 J/dLDukpGoplZMkdskV/BH4YkzEyRG5pP0pT0MuccKgkqCWDFCVGF3uAgeqRp3JIE810 5Xges5XWxlrx5COvx5UDMibL65pqBK9ySJStO93Fa+Q8J+ViNgBZKlyB20gaSJ9gTzee nCpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=zZ7qtAFMYga7kFhW4c08wM9YRT9Y4yFQxoLe6PSGnAo=; b=sA6HJcJ37WixnfYB2iYwvGmqWQffuPC8s5VOpZ48f5YazPJ43y3QEUGaSSvPJfEfwk BUwdTx17YOkDY+NdZMENf0QlMWfyeHOQOHwUNhAF7LaCBSk5o1y/rqBpj9nozZeuK1Px mzeBJh8C3IenMOK5oV9rxGb0q+CUKzSQ7zZcOt4Iio6nXN4muBlKTfLuG6pcKJWwCJ55 j/PTHL/OD8hVpzGZzv93m+3xQ7Q42P/THO5BZ10DPdauyBTmTxvVhRts4fxo+597wufz JPAoOAoWEsqW0lSY3RANbNfvUy1RAEMRGDZ4kOtjV21ZPU9M4OMpIFhxfVuMCcFhilHH HXKg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x25si2813798edd.350.2019.10.25.22.32.26; Fri, 25 Oct 2019 22:32:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725987AbfJZFcU convert rfc822-to-8bit (ORCPT + 99 others); Sat, 26 Oct 2019 01:32:20 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:36665 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbfJZFcU (ORCPT ); Sat, 26 Oct 2019 01:32:20 -0400 Received: from [172.20.19.11] (unknown [213.61.67.157]) by mail.holtmann.org (Postfix) with ESMTPSA id AE3D8CED0D; Sat, 26 Oct 2019 07:41:19 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\)) Subject: Re: [PATCH] Bluetooth: Always set scannable for Adv instance 0 From: Marcel Holtmann In-Reply-To: Date: Sat, 26 Oct 2019 07:32:18 +0200 Cc: "open list:BLUETOOTH DRIVERS" , Jaganath Kanakkassery Content-Transfer-Encoding: 8BIT Message-Id: <368BD38D-6FFB-412D-A6A9-364B3B5374F0@holtmann.org> References: <1571913139-6477-1-git-send-email-jaganath.kanakkassery@intel.com> <585F2A10-B16E-46BD-8EF6-4FD904A485AC@holtmann.org> To: Jaganath K X-Mailer: Apple Mail (2.3594.4.19) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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? Regards Marcel