Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5391956iob; Mon, 9 May 2022 15:35:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxp2mLroPXAZbKGpYJ1pv1UHyUe3WUNNS76NdJJ6nZVo4ZBbbyBl+QuY5shVIcztVXkPfct X-Received: by 2002:a05:6402:3585:b0:427:ccd4:bec3 with SMTP id y5-20020a056402358500b00427ccd4bec3mr19937496edc.2.1652135730350; Mon, 09 May 2022 15:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652135730; cv=none; d=google.com; s=arc-20160816; b=NIZ7hjuM6VmkWowc+eocDvIKwIc5K7DCxZbZC3tC3Nj87JDvmUsflVUhR7xPY9hVur ECg+gw/B+EPocsHy1iwBJjnZajLai8I40N+cgpNNqPWlp86yjyqZl0MyV+kZiYheDmBD 3u65FLxEw1ZHf0ElKlZ881HzsX+N+N2kFDbqpQ9d37jU1L/4IzQKBaU/kgZ+jtL3lSvW /EfcSCeJ6OkXc7aIVdmlY1NDEwqJBfs53smQ5iQdq7CzU/fyYtgIxt/ckJKlcc6iddpm Q3CMBvZtvYNBxMvAD6Hin+5nDaefv90W7eSIywsUpGG7vH15fLzeqeFxythFWQTsssOR B3kw== 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=Z6+NK+BuDLACFEkZq3/SaBTeeziTgKH+JEyquGclQkU=; b=ZRCrM3NFrj+VgV6N+QsuD4eJDU1/CiaJ/S/Nu4/6tcwdACdFh7blepFaphJ8RrpmYR Mf+Dss8h69sOc5HjaUAkZm4tuh94wJq+xZB4DKZQy2YO0SnNsyqYd9Lhz2Lheg36iwyB eKVnVG5O6qZGqz32negy9bLGwyR5/wAXxnObkmo8kuBLukTVTy2lH81yfUEyq09jp6gm yKBa6x0tD3l+t6GbyH6q/2VpNI0jyMpr/QwzrhxuRaTL8RwDewG4egyPj/LN0otRa+T4 BYkzAtSgYTQoIOiQsFgiqiKzjTxwbpGIVu8rzEUNIdGENmpTRTOfqDmsaQwVqpmZDOQI 8RBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VuINwch9; 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 kv6-20020a17090778c600b006df76385bafsi14561936ejc.79.2022.05.09.15.34.47; Mon, 09 May 2022 15:35:30 -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=VuINwch9; 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 S231157AbiEIWJW (ORCPT + 99 others); Mon, 9 May 2022 18:09:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbiEIWJS (ORCPT ); Mon, 9 May 2022 18:09:18 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 921EC2A83C7 for ; Mon, 9 May 2022 15:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652133923; x=1683669923; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=QrK8pGnl6RSOXNFy4YwHctfUS1puFOClfvhqPlU3GwU=; b=VuINwch96P+w41phTeNwS0GbH1t3o0kIaPjI9iBS2QwPjAv7tqhV4GVV fwiC3cHFLOhQKAcFZkZN/ORHykjVbmL+jcUHe+9/8FLkkTFdiOtKtcEde WZ60serQpmoFt363vW/Vx0ZyetCn48XXxvLaFemF2btZFgxdg06nvgsPO mNQ9XdUq0eVIYEymhEocl+KY85Zmw5XX9qXgo7qXBexGhpEx9tCUe/Fce 0+8aE7JiNeBKy2thQRo6Kd34Z67UzFcF23++2Y26pIM3EMIyGauSC9fHk LAf1+UfyReFLiDMFQ0c9rG5BMpQ8X0hlXQEABxEyNXAAopxoWRwdotU9U Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10342"; a="329776688" X-IronPort-AV: E=Sophos;i="5.91,212,1647327600"; d="scan'208";a="329776688" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2022 15:05:22 -0700 X-IronPort-AV: E=Sophos;i="5.91,212,1647327600"; d="scan'208";a="657329488" Received: from sameeram-mobl.amr.corp.intel.com (HELO bgi1-mobl2.amr.corp.intel.com) ([10.212.88.33]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2022 15:05:22 -0700 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: marcel@holtmann.org, luiz.dentz@gmail.com, brian.gix@intel.com Subject: [PATCH v2 0/2] Add Mesh functionality to net/bluetooth Date: Mon, 9 May 2022 15:05:10 -0700 Message-Id: <20220509220512.482695-1-brian.gix@intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 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 | 18 +- include/net/bluetooth/hci_sync.h | 3 + include/net/bluetooth/mgmt.h | 51 +++ net/bluetooth/hci_conn.c | 2 +- net/bluetooth/hci_core.c | 1 + net/bluetooth/hci_event.c | 61 ++-- net/bluetooth/hci_request.c | 115 +++++-- net/bluetooth/hci_sock.c | 1 + net/bluetooth/hci_sync.c | 104 ++++-- net/bluetooth/mgmt.c | 551 +++++++++++++++++++++++++++++- net/bluetooth/mgmt_util.c | 69 ++++ net/bluetooth/mgmt_util.h | 17 + 14 files changed, 915 insertions(+), 83 deletions(-) -- 2.35.1