Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1092860rwe; Thu, 1 Sep 2022 12:23:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR6LyfGssRwAQ1T3Y/FUrB1q9303HnT0AkKo+QNtpVVDc/lilGFvIO9rtG+g/fQwG/eAF/8k X-Received: by 2002:a05:6402:d06:b0:440:3e9d:77d with SMTP id eb6-20020a0564020d0600b004403e9d077dmr29166155edb.286.1662060209013; Thu, 01 Sep 2022 12:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662060209; cv=none; d=google.com; s=arc-20160816; b=hlv3yODb/SFbD1aADShKT0YEwfGd5E5PhLPGdoCR5NURXoJRaZAVG9Bs/jAh+lFTls YYW4wsboA/gmpQzeCSURjG1SOn2AlFBqxTaOqeP+WpEqyhGzYda3Rc6U42tSL/wU9KeR fe4SAzHPktFwCoAeKdcfWbQdGKETZOjXY7+7ZThbM39aW3jjMKF+rAQCUdOu2Esp0TB/ dGqo00B5vuGuu3QifjSSMhnM4CaQRVuGmx97hMofMmv1sprt/AY8A18IstvxqsIyeoPy T3M8DtbkAAErRCq7ViioCySVnSBemJremoBlEFu4vMySBiZbPw6BDihiqIazR55u2vd7 gCbg== 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=maXXZT1Mdf/oMmdqgtx08WleVjq5Klk4f2/Fml+lZNI=; b=yY9ZurYyMxKg+iX4JhEEIMNAgWjTbYOFyQfLJlJe/wVipicZ4BGEV7je1vrFTVEviq ojqHPTaRlw40qlSyEGnKgLd05gBN/TSwdo0v03wXD4meoqUDHJylpyW8X+IXCizdfgyD SKycgEqOxiELpGShCNyyyjuRK1QYvIEAh1nof41Uo+2GLoTTu3SbHo/BqMQkqW0ibybc fCTWn92eNOAEGQNvDGJxkBt/HQ6dwxs9j7MPi93hxgVWl1P0F+MMzU+0xnsvQrn3nbE3 uM/8nq0cMTh/T5H0p4HuqTPLFZ1yA6wHK+eM9MAKg2Da5KNFTrhhpCnvP7ak5fU5SlvF +4ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=l7L9L8v4; 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 z1-20020a1709063ac100b0073dde76f086si16264ejd.930.2022.09.01.12.23.02; Thu, 01 Sep 2022 12:23:28 -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=l7L9L8v4; 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 S231281AbiIATTa (ORCPT + 99 others); Thu, 1 Sep 2022 15:19:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbiIATT3 (ORCPT ); Thu, 1 Sep 2022 15:19:29 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0697B79610 for ; Thu, 1 Sep 2022 12:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662059969; x=1693595969; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=uFRUKsYAFjNr+8T8mDNeSwDaoFD9Cp0au2UQnB4g4YI=; b=l7L9L8v4xeMFiahOjnKKgO8l46VcEuf9PV7AXHmujTNr/msPGpV/FDoW pJW695uX3WPR0ZHA7CJkzbHqAf7kF91hn1QpVT4t9qV1zR03im0qxYYin BvYNxlNlX7Szt2PCVbYVWpcn3UjV+Sr7P8QPC7otnxwDElCqdg+XgwIm/ puWgXGqRdWcySD+MyxYW9IRJzf3kjc8jQPf4yVDM7yoZUgCvwnWB50Eid YCSIuyg+lwR4fVflPTvJtigLSAwczsBGFmv/6EhbE7/6dhi1ZIc1dzx1x Z7/Vq2TK5//K1s7BvTbE7qK3+qF8hcD4fQWmkiAOZeBLkBo7iD//MUFFI g==; X-IronPort-AV: E=McAfee;i="6500,9779,10457"; a="296590697" X-IronPort-AV: E=Sophos;i="5.93,281,1654585200"; d="scan'208";a="296590697" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2022 12:19:28 -0700 X-IronPort-AV: E=Sophos;i="5.93,281,1654585200"; d="scan'208";a="674007689" Received: from ghonawax-mobl.amr.corp.intel.com (HELO bgi1-mobl2.amr.corp.intel.com) ([10.212.58.197]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2022 12:19:27 -0700 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: marcel@holtmann.org, luiz.dentz@gmail.com, brian.gix@intel.com Subject: [PATCH v7 0/2] Add Mesh functionality to net/bluetooth Date: Thu, 1 Sep 2022 12:19:12 -0700 Message-Id: <20220901191914.22706-1-brian.gix@intel.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Housekeeping and implementation v2: Add checking for Packet Ownership when querying Tx queue state Add cleanup of Tx queue when MGMT socket closes v3: Fix CI complaints v4: More indent clean-ups and proper var types v5: Conform to the ADV Instance mechanism, and make fully compatible with Extended Advertising mechanism. v6: Paired with BlueZ user space unit tests (tools/mesh-tester) v7: Fix white space -- Note: Will fail mgmt-tester until new version with Mesh Experimental feature patch is applied to BlueZ. Brian Gix (2): Bluetooth: Implement support for Mesh Bluetooth: Add experimental wrapper for MGMT based mesh include/net/bluetooth/bluetooth.h | 1 + include/net/bluetooth/hci.h | 4 + include/net/bluetooth/hci_core.h | 16 +- include/net/bluetooth/mgmt.h | 52 +++ net/bluetooth/hci_core.c | 13 +- net/bluetooth/hci_event.c | 61 ++-- net/bluetooth/hci_sock.c | 1 + net/bluetooth/hci_sync.c | 87 ++++- net/bluetooth/mgmt.c | 588 +++++++++++++++++++++++++++++- net/bluetooth/mgmt_util.c | 74 ++++ net/bluetooth/mgmt_util.h | 18 + 11 files changed, 863 insertions(+), 52 deletions(-) -- 2.37.2