Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp389873ybf; Thu, 27 Feb 2020 23:39:07 -0800 (PST) X-Google-Smtp-Source: APXvYqwUyrGYeprXFsydrQkH1PgsKzrrrsZiS1OHdp46BGUHqR6mJM79BXVKUrjXF/84qY7YMOM9 X-Received: by 2002:a9d:7509:: with SMTP id r9mr2176526otk.270.1582875546886; Thu, 27 Feb 2020 23:39:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582875546; cv=none; d=google.com; s=arc-20160816; b=BZQWUUTRUNUOi4aaOMVOor/Okj6xrikikpnUmKvEqzbOOawBsJ9ihAjiheb/oGCN/b RZAJYFlPsDsbT1CiAscQRr/5rpwVgpTXz35xuHLd0geS9lNz24a/m9Pi/2wDV8bqXUkp z3xukfyssEVFkkfmR6JNedtOY9KnQNdJyb/n5IeeOKiyhpeQcz+K8E5Joiya4ROidWS1 7lzUtCVUH6V3bPaGrUsXX+aU+0ZZcTV19ih4KpnXhmk6XoImDqI/sjhOcmTIS8sXE9sr vQ0dbtEe1Hqm3B/DSQg7Rq3Tcm8PyvoTxicQDjGL4KrJN2sEWCBUoyjOXDCmEFOZQIr9 LPoA== 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=QoB4DOcUDMjmjMjAJaOhTrfsyALRTq6VXeNwDVSPUYA=; b=sAk5Fv9rz3ZI3acA0Y8IsVJxsxAnIid1cPaRj3YoOSazhuRuguL5Pl9AGDXkGYwjtp Pj/WcwRBG7n4Pw1moAhko1Y/rjPx/5a9jD22Zme9nqAh4/NsivXuynFH3iYgU0jYqpmU XMXL7ZBoPZHWYy+ZeImvYKm7+0Ufs34jWQTl/QGPHcsaNUSg+x4BSgJurKFIsbpcSUrk loRqQLILOEBDWf7v/OCvOy0p61luibZsJFJCe0zlCNb3swuAgKjPkvmYESxfHKKvaQgS /DFb8+Suy/lWxbnDWqCaPZhe4tAM2yxNIoUvALefZ11OZGG2ou1LW76hJKLE3kDptwTu wc3Q== 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 f28si1259680otc.110.2020.02.27.23.38.55; Thu, 27 Feb 2020 23:39:06 -0800 (PST) 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 S1726740AbgB1Hiw (ORCPT + 99 others); Fri, 28 Feb 2020 02:38:52 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:46364 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726188AbgB1Hiw (ORCPT ); Fri, 28 Feb 2020 02:38:52 -0500 Received: from marcel-macbook.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 55D2ECECF7; Fri, 28 Feb 2020 08:48:17 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: [PATCH v2] Bluetooth: Fix - Remove adv set for directed advertising From: Marcel Holtmann In-Reply-To: <20200224053224.9349-1-sathish.narasimman@intel.com> Date: Fri, 28 Feb 2020 08:38:50 +0100 Cc: Bluez mailing list , Sathish Narsimman Content-Transfer-Encoding: 7bit Message-Id: <956F6F65-63F6-465B-B5C4-A295CB53E823@holtmann.org> References: <20200224053224.9349-1-sathish.narasimman@intel.com> To: Sathish Narsimman X-Mailer: Apple Mail (2.3608.60.0.2.5) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Sathish, > Extended advertising Data is set during bluetooth initialization > by default which causes InvalidHCICommandParameters when setting > Extended advertising parameters. > > As per Core Spec 5.2 Vol 2, PART E, Sec 7.8.53, for > advertising_event_property LE_LEGACY_ADV_DIRECT_IND does not > supports advertising data when the advertising set already > contains some, the controller shall return erroc code > 'InvalidHCICommandParameters(0x12). > > So it is required to remove adv set for handle 0x00. since we use > instance 0 for directed adv. > > Signed-off-by: Sathish Narsimman > --- > include/net/bluetooth/hci.h | 2 ++ > net/bluetooth/hci_conn.c | 10 ++++++++++ > 2 files changed, 12 insertions(+) patch has been applied to bluetooth-next tree. Regards Marcel