From patchwork Mon Aug 31 16:11:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daan Pape X-Patchwork-Id: 252821 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74093C433E2 for ; Mon, 31 Aug 2020 16:11:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 51D1E21527 for ; Mon, 31 Aug 2020 16:11:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=dptechnics.com header.i=daan@dptechnics.com header.b="Y3AUOO6l" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728544AbgHaQLl (ORCPT ); Mon, 31 Aug 2020 12:11:41 -0400 Received: from sender4-op-o11.zoho.com ([136.143.188.11]:17170 "EHLO sender4-op-o11.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728461AbgHaQLj (ORCPT ); Mon, 31 Aug 2020 12:11:39 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1598890296; cv=none; d=zohomail.com; s=zohoarc; b=MWVWWnCvucgCabNqJKhKA9tHKAcbciG4m3ed9Gkq1Cqp1+g3+65BDTdkjtFxiDYZ+jkAi9mlexiqx2Pp3DyraELcVtO9Ey6O0Oz+4HshzMLkHKa8OZ2saDAEk1ITrvfnGfUe/u9lhJP8PBUelv5zcW7vQuVmt1haWMBHNQGLoCI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1598890296; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=i5ITdA55/iVGU4KTx2BMYFv/ttFKT7Cqa+Gi2cSOLb0=; b=UXOhM9RDA2yQsMruZWL+c48Q1LLP/gHM3nDc/1WR3YVLcbk+kOZIyuqvZ6/CvYZ+7m0mvTtqDi/EWsA4pcaV9TcpV/xR+UvhRsKfkYOZ/5SgAKSOC55G1xV1gwn8Ebrs43G7dCFu+OW3P0BAynKh7y1vxVo9jj/AlAJ1kWTNVo0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=dptechnics.com; spf=pass smtp.mailfrom=daan@dptechnics.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1598890296; s=zoho; d=dptechnics.com; i=daan@dptechnics.com; h=From:To:Cc:Message-ID:Subject:Date:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=i5ITdA55/iVGU4KTx2BMYFv/ttFKT7Cqa+Gi2cSOLb0=; b=Y3AUOO6lj4IM3z0nn1Z+OTh3i40DFZxZN4chC13Lb0fifM2HrM0eLOj8hOsCNHVW TDqNW2ydxSyQ2g1jhcfpv88kPLys+qQf1L6hT5hhT6p0dd8rK7YEcogXIfa5GKpaFo3 ++inUWrMdUq5FforKNrPSsrcTaSygksT5ASsvTXA= Received: from daan-devbox.dptechnics.local (178-116-74-88.access.telenet.be [178.116.74.88]) by mx.zohomail.com with SMTPS id 1598890292793348.33179098134076; Mon, 31 Aug 2020 09:11:32 -0700 (PDT) From: Daan Pape To: linux-bluetooth@vger.kernel.org Cc: Daan Pape Message-ID: <20200831161116.15975-2-daan@dptechnics.com> Subject: [PATCH BlueZ 1/1] Mesh HCI interface init scan interval fixed Date: Mon, 31 Aug 2020 18:11:16 +0200 X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200831161116.15975-1-daan@dptechnics.com> References: <20200831161116.15975-1-daan@dptechnics.com> MIME-Version: 1.0 X-ZohoMailClient: External Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --- AUTHORS | 1 + mesh/mesh-io-generic.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index 291d9b049..fd5d20cb2 100644 --- a/AUTHORS +++ b/AUTHORS @@ -107,3 +107,4 @@ Michał Lowas-Rzechonek Jakub Witowski Rafał Gajda Szymon Czapracki +Daan Pape diff --git a/mesh/mesh-io-generic.c b/mesh/mesh-io-generic.c index 67304d201..e65d87aab 100644 --- a/mesh/mesh-io-generic.c +++ b/mesh/mesh-io-generic.c @@ -213,8 +213,8 @@ static void configure_hci(struct mesh_io_private *io) /* Set scan parameters */ cmd.type = 0x00; /* Passive Scanning. No scanning PDUs shall be sent */ - cmd.interval = 0x0030; /* Scan Interval = N * 0.625ms */ - cmd.window = 0x0030; /* Scan Window = N * 0.625ms */ + cmd.interval = L_CPU_TO_LE16(0x0010); /* Scan Interval = N * 0.625ms */ + cmd.window = L_CPU_TO_LE16(0x0010); /* Scan Window = N * 0.625ms */ cmd.own_addr_type = 0x00; /* Public Device Address */ /* Accept all advertising packets except directed advertising packets * not addressed to this device (default).