Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2900938ybb; Fri, 27 Mar 2020 14:18:03 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtrOFalGE2Fal38gbskF+I4ezS5Ou6V4mI0Yg8OYfEo4d6tePry0D4uixENlOxVZHjWF54i X-Received: by 2002:a4a:d052:: with SMTP id x18mr1204347oor.13.1585343883403; Fri, 27 Mar 2020 14:18:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585343883; cv=pass; d=google.com; s=arc-20160816; b=VRhBAfwuBnYrovCp7sDS6wYJgBEZiUR9k8aiXH5+kxAZS07K4nLCU6+As29YQ82ub5 XEoUWE9m0yZ+zvYgIAlTQ04k3Z3wBBiLcwCnEyoj7+fjOJwA5rQBg0cIo5OaaNdb8gb1 /5b7J18N14DOxiciJd4Mu1SNQh2RJv+wRht/Dl96gQaa8qrjTKsRS6GLMQX178+2lQiF 1KCkcuzId9nsUyQGmEdJWV2onnxldA3x1zPeDl6qVrHQruO4fU04OhaVFeXJnJdZnYFf iagsH2FWZfYna3Bu1x1LBA6KJadnFao3d+YFqHaFhqVrAWOYVe/D6eHr+kWgIx2PThW9 No7g== ARC-Message-Signature: i=2; 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:to:from :dkim-signature:ironport-sdr:ironport-sdr; bh=d7f1eGDxpOFKdsHltVez/rBRw9eBlt7dfnIjVjugwYM=; b=SPZ2bqcQupkN5wXlm+IWO6Y8MZv26TXU3thUCJtGQIblAxY3gvmzztJI++hAq/38vw ajP6mE5RpDBCmfxQmrgOgFiwAcOs3n1YWaVan4L3c4k3Smki9apyMIaCev0fR0hpmS+5 M6dSfQUfJcQvXgiE5pVfaPi339ugItZsb1Bx2bQRzbR1eUWjUd8pQ/u4CczAqIVnVSft mHIu2XUr93gPRTJByh/hQlrA4gy/TksO9GK2SHT+Sm10jKtsiY3nD4MmGlNauDiu8RWP XwKQfS1JOCy7/NIsyDDoVAveg00arEIb1rpGytdVKxZ0GeIdNtImCvL8uvnPAIeETRvN 0s0w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b="hO//0YAZ"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.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 n190si2876954oig.207.2020.03.27.14.17.37; Fri, 27 Mar 2020 14:18:03 -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; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b="hO//0YAZ"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.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 S1727473AbgC0VRT (ORCPT + 99 others); Fri, 27 Mar 2020 17:17:19 -0400 Received: from mga02.intel.com ([134.134.136.20]:49677 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727444AbgC0VRT (ORCPT ); Fri, 27 Mar 2020 17:17:19 -0400 IronPort-SDR: VHFrzCfyX+8oDT9kc2Djz1d+sryJzQpZTz641+XKPsL1dkee+6A8En+BA2DLgEannvVK0La1z1 oi0F1Oo8RzFA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2020 14:17:16 -0700 IronPort-SDR: YWwa4NTV1YvRqZAoE/PAV+TjdYvYDJlCjPkEyYcK/7ibxJnQx0jo1FVoFTggEXEds4onprlpEP kVIjfFBnrTxg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,313,1580803200"; d="scan'208";a="282971544" Received: from orsmsx104.amr.corp.intel.com ([10.22.225.131]) by fmsmga002.fm.intel.com with ESMTP; 27 Mar 2020 14:17:16 -0700 Received: from orsmsx161.amr.corp.intel.com (10.22.240.84) by ORSMSX104.amr.corp.intel.com (10.22.225.131) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 27 Mar 2020 14:17:15 -0700 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by ORSMSX161.amr.corp.intel.com (10.22.240.84) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 27 Mar 2020 14:17:15 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.173) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 27 Mar 2020 14:17:15 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MBTNd/wOmuWyL7tIBKArSeQIKyTtMy5CZlW2ctbJW3OrSy9AFLEU5DT3GaBXAfLoTFBncIY5Xt4ZbJXtq9zEJkTIbL63R0f9az9GfvilZt0Vvq6ILzTPv6FNyKF7GMGTMr3uKRdsLBV5RtHDC8zK/chd4dBwANYF85SIj/qmfWzY6Mm1NZcC/0F6Xn6UlZ67ByS2ov3zinujjflEJkQBSyzDBX9JjBGIaAaojRRzIX67lC9PW+7LhFvaMnzUh0LrjFK2T47Uz1C54wxF3mrLmewi+Y+2ch6FMN8ZE/n0ApbHRCdoBqOaABzMHN+gdR1DfX+ix0scsuPFtXBGkEHDjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d7f1eGDxpOFKdsHltVez/rBRw9eBlt7dfnIjVjugwYM=; b=neXbCVi4v/WBlZ3QWufowcN7sF9hzJYh71zp4MtUAv8ctAM7WfkIK2oaNApU58rBQ0zSyO3Se1QfKPVrOaw3edUPafyStwjsfIjXChEiQsteizsnZUagxJOQe33UlSUOuDG4tisJl3fn19pkiE/B+1UmJ7dtNkAXwkQbM0BM987Xdwc30WkuyKD5YGocUzeq/FFJpGwRPBhCJhvYmKgLiKJku0hekZuTc7sDkxXNkvcOXi3V9+F4wUkuMiS0uSxF0l029W2DkgmN8ImfBA6ea0hDkydwqc7pD2gUOalUiRgQxjy5e3TrrySBUUyTIOi+vb9ijp7DwgHwQM2pVpoi3Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d7f1eGDxpOFKdsHltVez/rBRw9eBlt7dfnIjVjugwYM=; b=hO//0YAZhKiC8TjjhL4Y+ev90i7nMQjYmGM+vDAHHEhLj0ZJU0+rbbSxrSWJzKRxcTnEwbnhJ8VgS3JgymxTFehUPi1gKKOCl7ZNcduLdBgNZzRW7OvJHulfBhmOJy4V0evoYI8gyJT9wqyzhQ38kSfE7ifq59ohmqLczqvesE8= Received: from MW3PR11MB4539.namprd11.prod.outlook.com (2603:10b6:303:2f::13) by MW3PR11MB4619.namprd11.prod.outlook.com (2603:10b6:303:5b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.18; Fri, 27 Mar 2020 21:17:13 +0000 Received: from MW3PR11MB4539.namprd11.prod.outlook.com ([fe80::39a4:4e3:2bb2:dd3a]) by MW3PR11MB4539.namprd11.prod.outlook.com ([fe80::39a4:4e3:2bb2:dd3a%3]) with mapi id 15.20.2856.019; Fri, 27 Mar 2020 21:17:13 +0000 From: "Gix, Brian" To: "linux-bluetooth@vger.kernel.org" , "Stotland, Inga" Subject: Re: [PATCH BlueZ 2/4] mesh: Update UnprovisionedScan, AddNode & ScanResult Thread-Topic: [PATCH BlueZ 2/4] mesh: Update UnprovisionedScan, AddNode & ScanResult Thread-Index: AQHWBGeUdvWTj442hUCUAvCM9xEdy6hc8VoA Date: Fri, 27 Mar 2020 21:17:13 +0000 Message-ID: <23a1089f89c125779b4b3a73607d8ad8d38e1aef.camel@intel.com> References: <20200327184257.15042-1-inga.stotland@intel.com> <20200327184257.15042-3-inga.stotland@intel.com> In-Reply-To: <20200327184257.15042-3-inga.stotland@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=brian.gix@intel.com; x-originating-ip: [134.134.139.72] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 048dfed4-5169-4218-7d0d-08d7d2943812 x-ms-traffictypediagnostic: MW3PR11MB4619: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-forefront-prvs: 0355F3A3AE x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(136003)(376002)(346002)(39860400002)(396003)(366004)(71200400001)(26005)(66946007)(110136005)(66446008)(5660300002)(186003)(2616005)(76116006)(66476007)(86362001)(66556008)(316002)(64756008)(6512007)(6506007)(8676002)(8936002)(6486002)(81166006)(36756003)(2906002)(6636002)(478600001)(81156014);DIR:OUT;SFP:1102;SCL:1;SRVR:MW3PR11MB4619;H:MW3PR11MB4539.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iFTH5lv98jlJfaZHJLTymsjom3HW33wlbLgsJlw+JvKZ6LKF0HBojFCBj2b244LYIqj5CFglb9qs5+NBsOn7I5IX21ohzJqaV6OMGl93uVyjBdyOiJ0qS9iQM9b8pYQ2JbqLkPBIH/vRmldQYjB5xsD5DjjRkRVMX0AwFlBs6nMzYnNIzFjrzPl3mKP/26RGzx/QShfkOkru7ytlUWj3GGroaCwA6cQK7sJ6tnMyygHz5ZDazdeXN+tSOttgAVcNpHXbowmpPPJ++CQUHaInHg3Rx9uPQG939Gcg1Ns6ZtT2Sq0RYFKjJjjgnBPLno2/82IcPc7CA9nmPzy6GEeQ+HMjA/ysz92PG2G0UGiLsFJZzq2Schm5n/6XTMGfKShOYAVKYf7AUDu+RF25yXFPzeeSN+S0jAVlzECQ09l+3Dctn8/5A3IcW9QMhHaSkp9M x-ms-exchange-antispam-messagedata: XcyTj35DRllV/LfPjj8HOPjRxOw/e4eASeWULIuRlSxm+peIjg6Lr1+3tZExuQTzndyA4bxgBnullr4jqCK/3cvPE5iLlSSqEOx61DjjQu14xguygg06nxz4leBKYI8sLTiZq0YCQPN4zr/ibnk2Ww== Content-Type: text/plain; charset="utf-8" Content-ID: <8CA3DEEC1AFCAF41AA37622808E3F8C9@namprd11.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 048dfed4-5169-4218-7d0d-08d7d2943812 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Mar 2020 21:17:13.1384 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3YUxuUfUuaQhN9wedAldEnGYYspHoxTItETlrzsE47bUv5fK2j3FekYDAB0Cd1LWBkIR2DUuW6/CJTJMXwnfnQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4619 X-OriginatorOrg: intel.com Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org SGkgSW5nYSwNCk9uIEZyaSwgMjAyMC0wMy0yNyBhdCAxMTo0MiAtMDcwMCwgSW5nYSBTdG90bGFu ZCB3cm90ZToNCj4gVGhlIGZvbGxvd2luZyBtZXRob2RzIGFyZSBtb2RpZmllZCB0byBhbGxvdyBm b3IgZnV0dXJlIGRldmVsb3BtZW50Og0KPiANCj4gSW50ZXJmYWNlIG9yZy5ibHVlei5tZXNoLk1h bmFnZW1lbnQxOg0KPiANCj4gT2xkOiB2b2lkIFVucHJvdmlzaW9uZWRTY2FuKHVpbnQxNiBzZWNv bmRzKQ0KPiBOZXc6IHZvaWQgVW5wcm92aXNpb25lZFNjYW4oZGljdCBvcHRpb25zKQ0KPiANCj4g ICAgIFRoZSBvcHRpb25zIHBhcmFtZXRlciBpcyBhIGRpY3Rpb25hcnkgd2l0aCB0aGUgZm9sbG93 aW5nIGtleXMgZGVmaW5lZDoNCj4gICAgIHVpbnQxNiBTZWNvbmRzDQo+ICAgICAgICAgICAgICAg ICBTcGVjaWZpZXMgbnVtYmVyIG9mIHNlY29uZHMgZm9yIHNjYW5uaW5nIHRvIGJlIGFjdGl2ZS4N Cj4gICAgICAgICAgICAgICAgIElmIHNldCB0byAwIG9yIGlmIHRoaXMga2V5IGlzIG5vdCBwcmVz ZW50LCB0aGVuIHRoZQ0KPiAgICAgICAgICAgICAgICAgc2Nhbm5pbmcgd2lsbCBjb250aW51ZSB1 bnRpbCBVbnByb3Zpc2lvbmVkU2NhbkNhbm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