Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1048959ybi; Wed, 3 Jul 2019 08:39:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6TU/dwsmLoc3weuGA7VesW+6Bb8KBtiAkg2ryzCwE0L7j3BdFUbpcRIyWbPD+WwaHlF5G X-Received: by 2002:a17:90a:24e4:: with SMTP id i91mr14110270pje.9.1562168351468; Wed, 03 Jul 2019 08:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562168351; cv=none; d=google.com; s=arc-20160816; b=UyO/ywSEAO2JPd0ADLnh66pPeM0rRNAVzBU52+6cM7/myTZTCbeZIqZ8RNniA9H72x UB6ZJ1fOX9TaO+K1VXK0mdHVGnHDP/YEQnVTsPci8Nv6EPdrh1WJdSECd8Jk2QkaJj14 4qqQqVKxJXxPX+dt8lHJ1KtsTSR/h5Zq4Yw0qGAedtDAyrsJSLX89hkCsVjeWMWJ5s3U cSOckNXKE/1af+knD4jdmb6IRufN2CSaDuj37P12qTWQGXlCMp9hqlxTV/vbQLiWIh7I 2HiPjiyJjnj+1KW3Dlw+gz3N4Fnp1OJIp0Dtk4cK8q7BszVz7JrRJyx/suP8xeFmaOR4 rQhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=Qx5iz8JHj1mRSmL1zR9k3t/BWMuziVNuYyZBM3CGNbY=; b=E1LKeF8oAkMYCPDPd0BfJxvSQBGMmnPKk/bawFqqGZRr0GVfBrVDvhONsTJpDMjExz /ajNFj/rskffdlTgk8MduE2RXQxvtbrx58RClXU9wt4XP2vSc8zIDhnCoup92O/D94J/ LOuul5WRqR15f6Or0sUB0gm4ci9LZDxXCt2JYN5LBR3e2VD2LDZeHeRPoVX7/A2nvRSG DUYueDWiAq5lpTetRLJANbajyDXWwNAmBAodylYZb+esDIIo3ZtIxPlO3DbHEj2R1G2W N3Us6vAdyhbpGY8Ivn9lHZjgaHdXG+2v6/u5SJxhBPZ2gjf80V6KrQetv7Xh8k8BodVr ESig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y65si2468176pgd.487.2019.07.03.08.38.55; Wed, 03 Jul 2019 08:39:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726581AbfGCPix (ORCPT + 99 others); Wed, 3 Jul 2019 11:38:53 -0400 Received: from mga07.intel.com ([134.134.136.100]:23501 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726490AbfGCPix (ORCPT ); Wed, 3 Jul 2019 11:38:53 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2019 08:38:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,446,1557212400"; d="scan'208";a="362680586" Received: from orsmsx105.amr.corp.intel.com ([10.22.225.132]) by fmsmga005.fm.intel.com with ESMTP; 03 Jul 2019 08:38:48 -0700 Received: from orsmsx114.amr.corp.intel.com (10.22.240.10) by ORSMSX105.amr.corp.intel.com (10.22.225.132) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 3 Jul 2019 08:38:47 -0700 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.135]) by ORSMSX114.amr.corp.intel.com ([169.254.8.90]) with mapi id 14.03.0439.000; Wed, 3 Jul 2019 08:38:47 -0700 From: "Gix, Brian" To: "michal.lowas-rzechonek@silvair.com" , "linux-bluetooth@vger.kernel.org" CC: "Stotland, Inga" Subject: Re: [PATCH BlueZ v4 2/3] mesh: Implement DevKeySend() method on Node interface Thread-Topic: [PATCH BlueZ v4 2/3] mesh: Implement DevKeySend() method on Node interface Thread-Index: AQHVMZRt1L2S8+osHk2FDDJRJMCnNKa5fPyA Date: Wed, 3 Jul 2019 15:38:46 +0000 Message-ID: <1562168325.23933.19.camel@intel.com> References: <20190703114214.22320-1-michal.lowas-rzechonek@silvair.com> <20190703114214.22320-3-michal.lowas-rzechonek@silvair.com> In-Reply-To: <20190703114214.22320-3-michal.lowas-rzechonek@silvair.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.20.71] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org T24gV2VkLCAyMDE5LTA3LTAzIGF0IDEzOjQyICswMjAwLCBNaWNoYcWCIExvd2FzLVJ6ZWNob25l ayB3cm90ZToNCj4gVGhpcyBwYXRjaCBpbXBsZW1lbnRzIEQtQnVzIERldktleVNlbmQoKSBtZXRo b2Qgb2Ygb3JnLmJsdWV6Lm1lc2guTm9kZTENCj4gaW50ZXJmYWNlLCBhbGxvd2luZyB0aGUgYXBw bGljYXRpb24gdG8gc2VuZCBtZXNzYWdlcyBlbmNyeXB0ZWQgdXNpbmcNCj4gYSBrbm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