Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4293706pxf; Tue, 6 Apr 2021 12:42:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxk3Yi0nkBtKaq1fRhjmDrjGQW4Isx+oW852seX2S9UT5fGe9gjXMJvtqqaBN+jZEtxFME6 X-Received: by 2002:a50:fd83:: with SMTP id o3mr40905595edt.90.1617738134820; Tue, 06 Apr 2021 12:42:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617738134; cv=none; d=google.com; s=arc-20160816; b=qfnt7dpozEmn/yU5p8xj+mkTDANDhRFiQGCncAew2+Zat5DNN1SajKhORixVR3tchn UH6TFlorH0hXiquNH5Ml8WMernYaqhVraza3gjy0f68CFXaJQNcQqKRYgfjfI47aBlZO khJXtdmiYWQcqR4z3BpXfwmk/Ou6wcgq5HuzmliP5tWug81NTMdslKS2zptEysvy0/NE juU9Su48sB4efvzNYFazLKD/36fKrxBsZjjrNb8CR4/PyMBF4JnKhf9K987G24UpMU7Z lJyLpkGMeWTxia3r57m8PrIkh6Ld0w+l+WNjaAh8RbDMdBG1BKTVVyUzTtOwxyo3Bjwc cGvg== 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=ExAvY0b6Rvz23JXzahyq9OOuSsi/fNSyxBzxaMKqhew=; b=Ha+D81HA7pNd/0dTvL6+TZhCEI5K3fR0FybTM4xXaNvH7n/dDijvU7H/4ml5xAQ0tX 2Mq1C8HgN4R8J1bPXKq0ZtZWl/ITZFUE3ZFdNbgeY/D76Frl7tfiPNz4/+SYE2bPyONh W/BxQKyooy8DdtGyXi7z4m94fJ2f/ltFDD7mG0p/1RKdfTkzCj/fyCpkt/h2MGKXWQn0 pDR7OvBAl3ucMtVDhzFN2ey+8UwRe1oRiAZEgX5e1oKg9Haj+ykM4eAyjwGWngnbhyOw CSYNccyWnvjx3wuArRXAdgg3uvNs0U37Xs4N5DtRI3wlhSxHsM6qwVHa9JBx491BEBMo oHxw== 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 i25si16384979eje.58.2021.04.06.12.41.37; Tue, 06 Apr 2021 12:42:14 -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 S242713AbhDFKUM (ORCPT + 99 others); Tue, 6 Apr 2021 06:20:12 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:38823 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241335AbhDFKUL (ORCPT ); Tue, 6 Apr 2021 06:20:11 -0400 Received: from localhost.localdomain (p4ff9fed5.dip0.t-ipconnect.de [79.249.254.213]) by mail.holtmann.org (Postfix) with ESMTPSA id 1BA05CED1F for ; Tue, 6 Apr 2021 12:27:45 +0200 (CEST) From: Marcel Holtmann To: linux-bluetooth@vger.kernel.org Subject: [PATCH] Bluetooth: Set defaults for le_scan_{int,window}_adv_monitor Date: Tue, 6 Apr 2021 12:19:58 +0200 Message-Id: <20210406101958.197421-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 le_scan_{int,window}_adv_monitor settings have not been set with a sensible default. Signed-off-by: Marcel Holtmann --- net/bluetooth/hci_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 6f171f47c82c..520718d7679b 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -3814,6 +3814,8 @@ struct hci_dev *hci_alloc_dev(void) hdev->le_scan_window_suspend = 0x0012; hdev->le_scan_int_discovery = DISCOV_LE_SCAN_INT; hdev->le_scan_window_discovery = DISCOV_LE_SCAN_WIN; + hdev->le_scan_int_adv_monitor = 0x0060; + hdev->le_scan_window_adv_monitor = 0x0030; hdev->le_scan_int_connect = 0x0060; hdev->le_scan_window_connect = 0x0060; hdev->le_conn_min_interval = 0x0018; -- 2.30.2