Received: by 2002:ac2:5a04:0:0:0:0:0 with SMTP id q4csp1073189lfn; Wed, 23 Feb 2022 18:18:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUwQK9hkOB2f6cfvswlVz7WeP6jYqV8jjeISwGVFjsdV/L0ERiYg+2g4Q1IrCiAakkSSkN X-Received: by 2002:a17:902:64d0:b0:150:60a:8bb4 with SMTP id y16-20020a17090264d000b00150060a8bb4mr436798pli.98.1645669123998; Wed, 23 Feb 2022 18:18:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645669123; cv=none; d=google.com; s=arc-20160816; b=pEY9kTndMxdd87tBXW0jK4At3wMR9puf4mzfI5aayjiyQuKUVs09sjK+uh/ghoXvnZ mHiVMKCZ1z0K3Y8w3TfBNQeYeCdAbvOSsbGALSjDzn7GAJ55un8ldNa57pRTzv3KOYzw Mq6XnwWpDaO0aWHGSe8O2IFS4IaMJwkwsnxhw8RFKon3ZL74FAvNcptIU/F4w1BhDl6s 20xBHFGONbvQLJgLgcO40YarUYVZ/VuR81h5NHBUN4xU9eZQ5yovIHy836DggKGFVWXi XoIqB7Up3s/urh9jo8aQq61/uUS8oincRUFfgcJvv8OR9m2DgFmQWxovwplI2ygkyDeu AL9A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=83/nfNUYFObhyy7lwjY7DQ886s3ifrueSDryEYimhpY=; b=lrudMJrkZ7+SAhZKpB2WWrT9ZyXPpCps6738gN/l+EGveQprMw0D9LqhhiQvyRQ3vN +p1ChSnxZu/+nr8xoNT7jkEGlLKo5XrTVinv0VX40jSmcza2HCIkCrqm+IXMupx+hfwe 4PPsQ5yKZtsjqiHaLC+c+VV11MjfKaUgc8ZLu4gFmVXk3J9uOlS9pH5V70r8ZvPVffVe fADFDrMqqDDwaCvsy4Ke6JsnYTlLnqq+VzgK6FWF0nSMXJ5kkTx2R3SB04V7XBgtz+kn F4eicjv0N/dz/f1oQa5P2bCW8u59qCIrvZzX6mcLPuVDFJZ+pX5SHPWc/isHCj7dftsf lsCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VdTIvPpu; spf=softfail (google.com: domain of transitioning linux-bluetooth-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q12si1311992pln.15.2022.02.23.18.18.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 18:18:43 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-bluetooth-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VdTIvPpu; spf=softfail (google.com: domain of transitioning linux-bluetooth-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D22973190E; Wed, 23 Feb 2022 18:06:46 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229943AbiBXCHK (ORCPT + 99 others); Wed, 23 Feb 2022 21:07:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbiBXCHJ (ORCPT ); Wed, 23 Feb 2022 21:07:09 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A5ED2D1D0 for ; Wed, 23 Feb 2022 18:06:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645668399; x=1677204399; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=T/rOJuz5kQrr8KBYkTbp4Bw9COOu/9MaaW/oVxhBb64=; b=VdTIvPpugBRP6eYTgHYAWzbVeYaf8ozU3gQdreg0ESVpqzt2KfAdTLVW aXrUiRiM5sxU35gNrap5NsF/ozvncK8Ga+BMPSXui90sTAFGVPo1bpr5p zuCL9ljUjw26T10vd3rqOwvNxN+qBfXIZXaj0NnpKhZasFA3TmqIQlVDz zklXfB26BRVRSBT43Y47qk+3C+MeDZn2465uEQ8yImmJToVC6Pa0YwMlp /MfYfzkpBXELL8ZctbKXUD565UG2kJRDbzXV9UHWH/oYWpE2B3T3E5+oP O8ZGgQTGnarapLZX1PGdL1zA17EMqSjZRlmaCRElh5KvjPiumpgWnz5iD A==; X-IronPort-AV: E=McAfee;i="6200,9189,10267"; a="239525005" X-IronPort-AV: E=Sophos;i="5.88,392,1635231600"; d="scan'208";a="239525005" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2022 18:06:34 -0800 X-IronPort-AV: E=Sophos;i="5.88,392,1635231600"; d="scan'208";a="607268578" Received: from tjsmith-mobl1.amr.corp.intel.com (HELO bgi1-mobl2.amr.corp.intel.com) ([10.209.34.213]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2022 18:06:34 -0800 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, inga.stotland@intel.com Subject: [PATCH 6/7] mesh: Add new MGMT based IO transport Date: Wed, 23 Feb 2022 18:06:23 -0800 Message-Id: <20220224020624.159247-7-brian.gix@intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220224020624.159247-1-brian.gix@intel.com> References: <20220224020624.159247-1-brian.gix@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Adds required new modules to support kernel based MGMT tx/rx --- Makefile.mesh | 9 ++++----- mesh/mesh-io-generic.h | 1 - mesh/mesh-io-mgmt.c | 2 +- mesh/mesh-io-mgmt.h | 11 +++++++++++ mesh/mesh-io-unit.c | 2 +- mesh/mesh-io.c | 1 + 6 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 mesh/mesh-io-mgmt.h diff --git a/Makefile.mesh b/Makefile.mesh index fc28b0557..3047f362b 100644 --- a/Makefile.mesh +++ b/Makefile.mesh @@ -13,12 +13,11 @@ endif mesh_sources = mesh/mesh.h mesh/mesh.c \ mesh/net-keys.h mesh/net-keys.c \ mesh/mesh-io.h mesh/mesh-io.c \ - mesh/mesh-mgmt.c mesh/mesh-mgmt.h \ + mesh/mesh-mgmt.h mesh/mesh-mgmt.c \ mesh/error.h mesh/mesh-io-api.h \ - mesh/mesh-io-generic.h \ - mesh/mesh-io-generic.c \ - mesh/mesh-io-unit.h \ - mesh/mesh-io-unit.c \ + mesh/mesh-io-unit.h mesh/mesh-io-unit.c \ + mesh/mesh-io-mgmt.h mesh/mesh-io-mgmt.c \ + mesh/mesh-io-generic.h mesh/mesh-io-generic.c \ mesh/net.h mesh/net.c \ mesh/crypto.h mesh/crypto.c \ mesh/friend.h mesh/friend.c \ diff --git a/mesh/mesh-io-generic.h b/mesh/mesh-io-generic.h index 546e15d62..915e376bf 100644 --- a/mesh/mesh-io-generic.h +++ b/mesh/mesh-io-generic.h @@ -9,4 +9,3 @@ */ extern const struct mesh_io_api mesh_io_generic; -extern const struct mesh_io_api mesh_io_mgmt; diff --git a/mesh/mesh-io-mgmt.c b/mesh/mesh-io-mgmt.c index 092e81e79..cf18966fb 100644 --- a/mesh/mesh-io-mgmt.c +++ b/mesh/mesh-io-mgmt.c @@ -29,7 +29,7 @@ #include "mesh/mesh-mgmt.h" #include "mesh/mesh-io.h" #include "mesh/mesh-io-api.h" -#include "mesh/mesh-io-generic.h" +#include "mesh/mesh-io-mgmt.h" struct mesh_io_private { struct mesh_io *io; diff --git a/mesh/mesh-io-mgmt.h b/mesh/mesh-io-mgmt.h new file mode 100644 index 000000000..455691c8f --- /dev/null +++ b/mesh/mesh-io-mgmt.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * + * BlueZ - Bluetooth protocol stack for Linux + * + * Copyright (C) 2018 Intel Corporation. All rights reserved. + * + * + */ + +extern const struct mesh_io_api mesh_io_mgmt; diff --git a/mesh/mesh-io-unit.c b/mesh/mesh-io-unit.c index 81d9de837..f818140b4 100644 --- a/mesh/mesh-io-unit.c +++ b/mesh/mesh-io-unit.c @@ -25,7 +25,7 @@ #include "mesh/dbus.h" #include "mesh/mesh-io.h" #include "mesh/mesh-io-api.h" -#include "mesh/mesh-io-generic.h" +#include "mesh/mesh-io-unit.h" struct mesh_io_private { struct mesh_io *io; diff --git a/mesh/mesh-io.c b/mesh/mesh-io.c index 95ee9a7f2..8bae7ff7f 100644 --- a/mesh/mesh-io.c +++ b/mesh/mesh-io.c @@ -24,6 +24,7 @@ #include "mesh/mesh-io-api.h" /* List of Mesh-IO Type headers */ +#include "mesh/mesh-io-mgmt.h" #include "mesh/mesh-io-generic.h" #include "mesh/mesh-io-unit.h" -- 2.35.1