Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4253246pxf; Tue, 6 Apr 2021 11:31:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSHrfYO+GvT2fZbdWSS2Rtd4W2kDOjlwIArzE7KYe0dF/uXXDwPcajptWvwnKEiRVHmu0b X-Received: by 2002:a05:6e02:1522:: with SMTP id i2mr24888815ilu.252.1617733908023; Tue, 06 Apr 2021 11:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617733908; cv=none; d=google.com; s=arc-20160816; b=ytThvSLplh7OViKGmm7OIhWxQwBgE3D+OOO7ExRX/Exfkyuoacs5jpiFMSmKvI9T4m 7QKiW0HXz8lV2j8wwbYf+t5Nb7i2AhF/BIvXQF+6G36TFBOLQjGRtqozstsbqfq/eVU/ D26dwYWqk6xxZA+OMJMdUVoFzI22AYkpDDuCNHTSvQx2vwtmeX/btWLExH8/QSgutM5O rhPaR/7hRM5NLiApZSPZh/UziQ5o/rs/tsZTMLT247p9PUxNfevmZK4jAbkgcfqXEkkM +fdU6YzB8ilwcdCbndPlFVg19EFkK54Etnsyaljs+pAOGBCWLHdIm4Wy4kXG3eX4vOu3 98QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=FyewRaIn4vY7ZgYOr0JkZj+gB8vhc3HdmWCOwxNOKZI=; b=C8lE5N3ed+G4bYPLwkAgwzpcOpOnCXgOJIFS0i3kZ0AMBn5tww7M0MCGLly1TjgHCC 4UKO/yv5zSUatMkoR7hD5QGLbOW4Im0llibEzrSVQKque1Ii5yYaG5XkkKPLwRnmhHKx GToj37Tz7fonHs3/UkJ6JqOAiOYdcGuPLJFz9jkdKGTc49AkjxilryBnpFkzMY2IZtqA DVkcpAU6fxUn13rHHqSojlvjwqUmqFeQ/oZ2hTFxmTu1343tWMpeAdbZ2RKDSe2NGMtU 74Z+8PqKf1toQuc8wpOEIh4rci9O4sgM0QlxGfOISXUfmeATXYiZ+RSwEn9k2AwheBbG I0AQ== 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 d10si19701247jam.87.2021.04.06.11.31.18; Tue, 06 Apr 2021 11:31:48 -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 S229681AbhDFJbW (ORCPT + 99 others); Tue, 6 Apr 2021 05:31:22 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:44014 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231701AbhDFJbW (ORCPT ); Tue, 6 Apr 2021 05:31:22 -0400 Received: from localhost.localdomain (p4ff9fed5.dip0.t-ipconnect.de [79.249.254.213]) by mail.holtmann.org (Postfix) with ESMTPSA id 881A6CED1E for ; Tue, 6 Apr 2021 11:38:56 +0200 (CEST) From: Marcel Holtmann To: linux-bluetooth@vger.kernel.org Subject: [PATCH] Bluetooth: Fix default values for advertising interval Date: Tue, 6 Apr 2021 11:31:09 +0200 Message-Id: <20210406093109.196954-1-marcel@holtmann.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org The DISCOV_LE_FAST_ADV_INT_{MIN,MAX} contants are in msec, but then used later on directly while it is suppose to be N * 0.625 ms according to the Bluetooth Core specification. Signed-off-by: Marcel Holtmann --- include/net/bluetooth/hci_core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 6288518fe096..1101589422d8 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -1754,8 +1754,8 @@ void hci_mgmt_chan_unregister(struct hci_mgmt_chan *c); #define DISCOV_INTERLEAVED_INQUIRY_LEN 0x04 #define DISCOV_BREDR_INQUIRY_LEN 0x08 #define DISCOV_LE_RESTART_DELAY msecs_to_jiffies(200) /* msec */ -#define DISCOV_LE_FAST_ADV_INT_MIN 100 /* msec */ -#define DISCOV_LE_FAST_ADV_INT_MAX 150 /* msec */ +#define DISCOV_LE_FAST_ADV_INT_MIN 0x00A0 /* 100 msec */ +#define DISCOV_LE_FAST_ADV_INT_MAX 0x00F0 /* 150 msec */ void mgmt_fill_version_info(void *ver); int mgmt_new_settings(struct hci_dev *hdev); -- 2.30.2