Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp133321rwb; Thu, 22 Sep 2022 15:38:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5o86w5MFr/i82zE+jI/rgPWXaZlMOPM2MYXXtvMk+D7TnBrIqEfVIc6WndXkpRsgTF2/MS X-Received: by 2002:aa7:d883:0:b0:44e:bbbe:d661 with SMTP id u3-20020aa7d883000000b0044ebbbed661mr5494676edq.248.1663886333365; Thu, 22 Sep 2022 15:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663886333; cv=none; d=google.com; s=arc-20160816; b=MaknpEQdXGIZKfyT+IxuCvVDHewaxeusvgKDhi6RjkpCse7X1oIevOihdyg9KF8mUz g4j4hld59QhvWBMWLgMdmH4XmAqIoil/V7N0uloNoAS63tECnJYSSFLcXqN8KX8JFn/1 vnn2ePaGTpm/6xIpJq/9Fq6iBEdiDSyA3Gy68RDA3+ml8U/O2ymB7KO23KPASlMiit/s BwCHVY2C87dbwsj0JIZgNKduq1oAKOmWRksyGd6G25zLXckZkvF3/2gH3AonfcbYvkjZ caqW63lRTTCk8pCUpXHFPsxGsHIlzZ78bS/cedF0dwIaEq7olN2DfOp7OKrBrUrkgVJX gw8Q== 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:cc:to:from:dkim-signature; bh=ZamWSWL6hh9QNpoJRLPlH9ogLuljWOqdv7NsU/UPyxg=; b=hBQJIuTjQI36UQTLN//ZoJeXbgdRxHycLJUqBxftHrrJqcKhAIhSgykXJr6tNZVdJI UG3v4IVEmU8T9d7u8MG6i6MdV0djVTIuMVwzNgb/9f+bgzbZGoWhLXuV0z65X2PgwAqi HdYcyjoij3BLXMvlF8xsRQBRt5ysUwo0yzB+17/cdlKHxxrMdsE2IYfjCpHPwJ6U0KUs vazTy/rf/RhEY6YjXOYKJYlngiZmtdTdkvUzTZIwRYQy3KrdfzyvM18aOXSjAcw+gmGC IE9k/EVsMMqwpBYN31zglaC6ZmyTJoS5tKKvVLmVxPB/kXsoJh42VJBWR+DvpU2Wav47 Ru8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DvEM9mdS; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz22-20020a0564021d5600b00454290f2ff9si7199324edb.178.2022.09.22.15.38.19; Thu, 22 Sep 2022 15:38:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DvEM9mdS; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229720AbiIVWbV (ORCPT + 99 others); Thu, 22 Sep 2022 18:31:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbiIVWbP (ORCPT ); Thu, 22 Sep 2022 18:31:15 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC442D4303 for ; Thu, 22 Sep 2022 15:31:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663885873; x=1695421873; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=bA3w8hl44UjbrHcE/dEdMrxpPSZ7nD+/cWb2ugRxoNI=; b=DvEM9mdSfHZ9oaWWnwxQw/y5k/MVVOoveSC1f6FLKuEWBXopH2R0d3PV /FUPWcFrsE0fnGWUYK8oneN91u7riXfGrOpafDSX3O15Os76Ctk+tjTHp Icj8TmC3izcXh0JMwO9G5wwwlfh1zM8MmTRUDSzQ2xutnE07anTqd/azO lA5mtZ7epwlh/5mjFFZIWyW4Tn/Xh6hGQ7yZe3yYIc1koFlWuJ/jy/QpK 8vTSYwKg9byKdMyZKaHvf1ep4B05oimyVWu83CeT+gZoHqU+G7Yt0OMXd S4GiyUYdT40xrIOxUJn70zX0eFDsBQ2CBQ1Xy9AER4qhbeJZaGOMwyDQ6 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10478"; a="298049387" X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="298049387" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 15:31:12 -0700 X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="762389334" Received: from avarhadk-mobl1.amr.corp.intel.com (HELO bgi1-mobl2.amr.corp.intel.com) ([10.213.161.147]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 15:31:12 -0700 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: luiz.dentz@gmail.com, brian.gix@intel.com, inga.stotland@intel.com Subject: [PATCH BlueZ v4 0/2] Mesh demon switched to using kernel Mesh MGMT Date: Thu, 22 Sep 2022 15:31:00 -0700 Message-Id: <20220922223102.640173-1-brian.gix@intel.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This patchset enables the mesh daemon (bluetooth-meshd) to use the new MGMT mesh opcodes and events to send and receive Mesh packets. By default, the daemon attempts to enable the experimental mesh functionality, and query the kernel for active mesh support before then enumerating the available controllers and selecting ojne that works. If no kernel support is found, it will continue to use a raw HCI socket for mesh support. v2-v3: Fix whitespace and spelling v4: Rework missed 2 new files... readded. Brian Gix (2): mesh: Improve PB-ADV timing for reliability mesh: Add new kernel MGMT based IO transport Makefile.mesh | 9 +- mesh/main.c | 39 +- mesh/mesh-io-api.h | 11 +- mesh/mesh-io-generic.c | 47 +-- mesh/mesh-io-mgmt.c | 788 +++++++++++++++++++++++++++++++++++++++++ mesh/mesh-io-mgmt.h | 11 + mesh/mesh-io-unit.c | 13 +- mesh/mesh-io.c | 188 +++++++--- mesh/mesh-io.h | 4 +- mesh/mesh-mgmt.c | 164 +++++++-- mesh/mesh-mgmt.h | 12 +- mesh/mesh.c | 6 +- mesh/mesh.h | 2 +- mesh/pb-adv.c | 9 +- 14 files changed, 1159 insertions(+), 144 deletions(-) create mode 100644 mesh/mesh-io-mgmt.c create mode 100644 mesh/mesh-io-mgmt.h -- 2.37.3