Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2788949ybt; Mon, 22 Jun 2020 07:07:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUJi56Iv8BCOVl2/feDCRbK4nRlxVQDd49FYAii4RSUGlEtrgE29zfMNEy79R7ydgJoxe9 X-Received: by 2002:aa7:d957:: with SMTP id l23mr16587360eds.206.1592834825462; Mon, 22 Jun 2020 07:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592834825; cv=none; d=google.com; s=arc-20160816; b=swJ7SQleCfzEhglSz03L87KFvOF4+UNxacpuKLhVikiaNDEsbU7RTczSRQ8clOvlum nJqEX4zrL1c6vHDeUsNh0JSAfEBFALTSWC5KC/eflz3IePWESyOLlOKFtu/KWH88j9I0 rI2AjSIXvnbbuZzqgtByVFu29cX3UtuU9aqnubMWoXy+oXMtpRJ6KIXG29DrAjoYKbeK oTX5lI5h+zQ1vThxuYTN3/FBA4tO36n1xJdCDJfCijJUVUwc8daUNgd+Jp9S8IdUcQzx gSpWfjKnbbpv1udYoa3tFGjal2HYbBi5FDrrqqyOPrpQShv7gD6x1q8Xl8n53YhxBPrS CX2Q== 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=9vkgdWf7qhF6YlIpSmJC0WQrElTuT7kkiR+Rr1mqWDE=; b=f9CxfANl++nxkxHBxh55oWnChXNJm3/qVdFzaxagnQWIE2/OgfS4pi8G/PlXRFSLGW AZq6OfF+JvyZaDrQszVhu9N/KLbEqUXo2EsfJncKtKJCj/z71b/Cgf9FYpLPmiVCL3E+ /Pg73sqklzOqOXeFMhDDwFSjtA8i42oPwDuwuNkGl8uvs+yFEfH2ZuYf6LK8m18cr9QB BvlDBFsPnulQolGhR5yP4ll2fnXi/Jd7zGojBXEom+DTxkgKl3dXNWzQq/dsypvzQ33L BtB0zEukxH41fe2DqxOzb/h70iwXcmOlEPBj3dde/3Y+lDSCb7m9AYWqYOrNFjqSTeRZ ggdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si8597612edw.228.2020.06.22.07.06.28; Mon, 22 Jun 2020 07:07:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729065AbgFVOE3 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 22 Jun 2020 10:04:29 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:34633 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729056AbgFVOE3 (ORCPT ); Mon, 22 Jun 2020 10:04:29 -0400 Received: from marcel-macpro.fritz.box (p5b3d2638.dip0.t-ipconnect.de [91.61.38.56]) by mail.holtmann.org (Postfix) with ESMTPSA id 01A4ACED29; Mon, 22 Jun 2020 16:14:20 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH v3] Bluetooth: use configured params for ext adv From: Marcel Holtmann In-Reply-To: <20200622133028.26882-1-alainm@chromium.org> Date: Mon, 22 Jun 2020 16:04:28 +0200 Cc: BlueZ , Abhishek Pandit-Subedi , Daniel Winkler Content-Transfer-Encoding: 8BIT Message-Id: <796C3F6A-D9E9-4C20-A9BC-5DB53E2A21C4@holtmann.org> References: <20200622133028.26882-1-alainm@chromium.org> To: Alain Michaud X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Alain, > When the extended advertisement feature is enabled, a hardcoded min and > max interval of 0x8000 is used. This patch fixes this issue by using > the configured min/max value. > > This was validated by setting min/max in main.conf and making sure the > right setting is applied: > > < HCI Command: LE Set Extended Advertising Parameters (0x08|0x0036) plen > 25 #93 [hci0] 10.953011 > … > Min advertising interval: 181.250 msec (0x0122) > Max advertising interval: 181.250 msec (0x0122) > … > > Signed-off-by: Alain Michaud > Reviewed-by: Abhishek Pandit-Subedi > Reviewed-by: Daniel Winkler > > --- > > Changes in v3: > -adding 3 octet comment back per Marcel's suggestion > > Changes in v2: > -fix commit title and typo in description. > -Moved le24 convertion to hci_cpu_to_le24 > > include/net/bluetooth/hci.h | 8 ++++++++ > net/bluetooth/hci_request.c | 7 +++---- > 2 files changed, 11 insertions(+), 4 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel