Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp456987pxf; Wed, 7 Apr 2021 03:55:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqFQUZAeVT/R/ehFKRD5UgI5NfpQ/pik2Sbxl0Ub02Dv/HJt2Bj8I6PAb2rxpvvcht0ext X-Received: by 2002:a17:906:5356:: with SMTP id j22mr2955103ejo.308.1617792927344; Wed, 07 Apr 2021 03:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617792927; cv=none; d=google.com; s=arc-20160816; b=dWXmvypaEXZWzGReLqvS0+3WHm3b0zFgh6ybfaJ8KvReEELhKQCniYc1X22dCObCUs CZgFd9RTFGLbBLqXlbpM4kpWwenZ6ryMA/0QEo10cwnVt5mHVwwiV9LS2pujkbbpxFpk cQzp3UuxZvRJ5huWnc9fCCffz63gcb5H1UiSCRyYadmmnddpBm2QUXuje9/0UArKMSJ/ wwD3gACl0PIN2FcLZuYCuWZyijyMzh0YlmZyOgW9/+AaByIU/uTvUzCMrlXEslLgkw3z DvmEfocJE9nfoMxg5UifWW+uwGpsjWgzY9tmaowhN+/iv9EcxOdbOkdvn286yD2x+mCW V+yQ== 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=Aq4VS/Pm46l4oWtgETS5kcESKEQ6DNPoYsvSzSZ8QQk=; b=phhp6oyXf57eL4jZ+mSXNxMf8SRetME3dAeo5VPFm+dRaK4VrzkIvDZ+JomeApn/5Q QF9cks2sZ4tsvb1vvLEtU8XKeipKNLW7ZtHAxR7eALQKtiGEI/YTwGeXpmDHPPiwe6+J rcoW5tjPZVYX0Q4DWCytDPvZh173b+A3Z1P8QajmND8xuLxAbggLMwmZ2fd2lN4zvdfH T23/5FiNItUv3TKLiqItREVVXA2Xr0SF8BiacD8jYx5lROMh+e55JBrb5hAuN0zWn5OO /xCZeb1PMt9S7hMB4OtCzdrS2q2cp/Nua85NLyX9DRuAmXqdlvn1y843Psl6RtFq9wqA BcMA== 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 z25si11503315ejw.33.2021.04.07.03.54.28; Wed, 07 Apr 2021 03:55:27 -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 S235436AbhDFT4M (ORCPT + 99 others); Tue, 6 Apr 2021 15:56:12 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:36727 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235483AbhDFT4K (ORCPT ); Tue, 6 Apr 2021 15:56:10 -0400 Received: from localhost.localdomain (p4ff9f418.dip0.t-ipconnect.de [79.249.244.24]) by mail.holtmann.org (Postfix) with ESMTPSA id 097EECECC7 for ; Tue, 6 Apr 2021 22:03:44 +0200 (CEST) From: Marcel Holtmann To: linux-bluetooth@vger.kernel.org Subject: [PATCH v3 3/5] Bluetooth: Fix default values for advertising interval Date: Tue, 6 Apr 2021 21:55:54 +0200 Message-Id: <20210406195556.316663-3-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 aa2879a3b0dd..58f7eada26fd 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