Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3529651ybg; Mon, 28 Oct 2019 14:24:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxc0JDUMdzEgK4IK4yD8rxVzTpW4JGxNEL7Tce/T2lk8BEzNzAEGw41hk2adtW9NSlsSnI0 X-Received: by 2002:a50:ab10:: with SMTP id s16mr21413114edc.118.1572297899003; Mon, 28 Oct 2019 14:24:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1572297898; cv=pass; d=google.com; s=arc-20160816; b=KpwllAzH9VLawShdfVa3FhWHTjE6kwlErvqNbS9asVPk0pHNcTbIYhTpiZmZ6PzGr7 FggM7mwHUUF7RwrPTMbh81HCFr+pYAwHvAjRDr7FoeJspEj2Fj7+K5jZK9MhVsBS5wAS /sNW9O++88oK7ql0WwzaNH0pVTk00c147Ng1EJMVgjopfSgBGGOjBTmY2/e9zmR7eD91 f/oNH77x5f9PC1BruCGifjxw5c+FDQ2hDPkVduhyGgnKMnLjfYPo53fReeSNeMb1JlsI MJ790/M53VSKuwK0UY1Q1yEgjuCl7dQ4xGZnBKRZ8V1Rhy8q4QZooR0eYVUIx6sdsu9/ ascg== 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; bh=urkqSi2Gw+qLWlTNykXxhKfBuEm4rLaPwY98VgoGt44=; b=Z5RH0OzGYbtAlTE9n23YRCloM2ShJbR8YZsITOnIV8lJahZRPVxusibmO/LJhE/gos z0Ciclts0dCnPU8FbdH6RQOkCHhD5cC0Pi6bywHKdE6nhfWSfzuhT2zW0aKZBTJiumPc uTwdSrsBt0gsrXCo4beU8GoitQismt4xPJD42TPdVhervbuMm2k9rNLKIE6LDp4IkEfa AQhPx+KvVeYyOVU+dZaaxFu6Fuo3XgQWXWyHyB6cFtQ/2XzIvQgigAbwzMTE6mNjxD2y HGaYoaGuY9puetSbkryCdeN9hTYG5omgn9ZbbBMdE5rs5MZ6oRkVZLzNHq3SRoE3YSYA lvBw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=YdpqWmuz; 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 n10si5756435edb.175.2019.10.28.14.24.17; Mon, 28 Oct 2019 14:24:58 -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=YdpqWmuz; 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 S1726094AbfJ1Qt4 (ORCPT + 99 others); Mon, 28 Oct 2019 12:49:56 -0400 Received: from mga18.intel.com ([134.134.136.126]:56341 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbfJ1Qt4 (ORCPT ); Mon, 28 Oct 2019 12:49:56 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Oct 2019 09:49:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,240,1569308400"; d="scan'208";a="211484872" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga002.jf.intel.com with ESMTP; 28 Oct 2019 09:49:55 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 28 Oct 2019 09:49:55 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 28 Oct 2019 09:49:54 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 28 Oct 2019 09:49:54 -0700 Received: from NAM05-BY2-obe.outbound.protection.outlook.com (104.47.50.57) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 28 Oct 2019 09:49:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dFCuGQkNB5EnBKgbXF2IUbHRYsaOfdslDpiTNnOwbyGyyujko/FuWzuZUw/QTtDoKo/dOypAJZw3xFmJwa+Vua24pOrCE3wkZrLIWdpoBEUeWel2NtXyGFxwQwhtWx8ScjELV95O8gMZZm8CUkJV27LH/+PzldNobRq5GFo8MYJd2IcBsAtluMTIxrlFHzJRnEJsgz6cFaA3CUOwAHT2bnQHmSgtEi18JUxt7f2NqWZFheddiK6VwYYhI8H5IrUd9lqzMlZ9nUJPwFq3DHeRMnZgg4KRUE9xRMcijNyZCr1mZ6VAfVe08FoCSUKbCM8GNJcaPy+rm6HwGXye+Kr6pw== 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=urkqSi2Gw+qLWlTNykXxhKfBuEm4rLaPwY98VgoGt44=; b=cudyO+1v+J7U1emqOO+2xzqw53tdLJIkW3Kt/qrODlxiKeoEQs3ZT9P3MWw8uq4lWCybtSn7i6a4C3xMmTCXWuWB1/zEZru6uU0RV930Qbf9Zx/lo9agXYuZAoYO5rzuLLOr+4YB3qmEepqtzPPtQVZ6EO0i7dOwf+cRi7D3iY2KBDkZCVctgyf/ySNSb8cETnj/z12BthKFlkF2eXVms4554IYA4LKLjvCZjQZbVIcUIFa4xm/gZQXHwo3GnKrPFczYbMjZ8C1VjOwdFdaYkktmIv+nFIhtErG+pizS+pbyCbyVJUWwxfpA8c9113ZNubVM63Vg9Anq/GINPZlLCg== 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=urkqSi2Gw+qLWlTNykXxhKfBuEm4rLaPwY98VgoGt44=; b=YdpqWmuzVXXAp0fiN9yyIP72Qt5RxZ9C83TNNwJt4ehTKcHNkg1Y70eddwUtQnfW5C16LtIQURMVR+kPHLix+9WuiAonpq+5c8aAZPDzR0qObrDcPOl3ccGekVeZMbv2UlYAEyY+JvsSjtcA+9ixur3JK1+41Brlb+WeSZeJAw4= Received: from CY4PR1101MB2262.namprd11.prod.outlook.com (10.172.76.7) by CY4PR1101MB2342.namprd11.prod.outlook.com (10.173.191.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.20; Mon, 28 Oct 2019 16:49:53 +0000 Received: from CY4PR1101MB2262.namprd11.prod.outlook.com ([fe80::c6d:ebf:5ae2:7501]) by CY4PR1101MB2262.namprd11.prod.outlook.com ([fe80::c6d:ebf:5ae2:7501%10]) with mapi id 15.20.2387.025; Mon, 28 Oct 2019 16:49:52 +0000 From: "Gix, Brian" To: "linux-bluetooth@vger.kernel.org" , "Stotland, Inga" Subject: Re: [PATCH BlueZ v2] mesh: Fix reading/writing key indices Thread-Topic: [PATCH BlueZ v2] mesh: Fix reading/writing key indices Thread-Index: AQHVh42FtcHnZoMT+kiEul/sFzVY9KdwUFOA Date: Mon, 28 Oct 2019 16:49:52 +0000 Message-ID: References: <20191020212949.21492-1-inga.stotland@intel.com> In-Reply-To: <20191020212949.21492-1-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.137.73] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6322343e-9169-40e4-c1cb-08d75bc6dadd x-ms-traffictypediagnostic: CY4PR1101MB2342: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4714; x-forefront-prvs: 0204F0BDE2 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(396003)(39860400002)(346002)(366004)(136003)(189003)(199004)(8936002)(81156014)(81166006)(8676002)(71200400001)(6436002)(25786009)(76116006)(86362001)(14454004)(36756003)(6486002)(476003)(478600001)(6246003)(2906002)(14444005)(256004)(6512007)(66066001)(66946007)(26005)(5660300002)(6116002)(71190400001)(4001150100001)(102836004)(186003)(3846002)(6506007)(305945005)(2501003)(7736002)(229853002)(6636002)(118296001)(446003)(2616005)(66476007)(66556008)(64756008)(66446008)(91956017)(76176011)(99286004)(486006)(11346002)(316002)(110136005);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR1101MB2342;H:CY4PR1101MB2262.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Yb+ZhHwzufx4Ahab+mg7JEdz6Qz0sb0KzpPxQAovSXS8RHM0q86y3esqHEkuCLdnZpvveRtPBN9T5//CNqQN5knAjt2mlkIC21JDykHuMytjinqgK2yNfvvX5oheSrZPO2Ul7qlKJ+1nMUZFVLTgAb8vHURwjRifdpgMDoK3eMkCtZ2oERMqy1hTvOEXMKRAwYM85M/kNy3+pCIjWGFEj5EFlB04/QOz/QqYhw59Qd2C1egvtjo7JFBFF+Ee8MKuofWEnDt1lxwcJl7QL7fsWZPfIiDiDUhNj1qz4f+jMuUfPzsopICr0tUytHiUbQCzbjj+deyxWCIBN6JE2CnfsdLkInL79GYszFqkSYgqoWDRmx7BSJIXihVPpCh1qfW8ijWC7BlFHwwp8GaPeBUH/3rhr9XsTV1nLMUojToU0vvbEcuO3bNzCiIUJfRlOugz Content-Type: text/plain; charset="utf-8" Content-ID: <4F8FE8E50BB55349A0CE327D9CD41C89@namprd11.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 6322343e-9169-40e4-c1cb-08d75bc6dadd X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Oct 2019 16:49:52.7783 (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: btSY4H0IJY7uhJHdxGEeRyCj7fUSd0/q+YjMYP3t/cW50UjZmQ+A9GIPK9UqP8XIayAPESYs1PpJ3nmACOhewQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1101MB2342 X-OriginatorOrg: intel.com Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org QXBwbGllZCwgVGhhbmtzLg0KDQpPbiBTdW4sIDIwMTktMTAtMjAgYXQgMTQ6MjkgLTA3MDAsIElu Z2EgU3RvdGxhbmQgd3JvdGU6DQo+IFRoaXMgZml4ZXMgaW5jb25zaXN0ZW5jeSB3aGVuIHJlYWRp bmcvd3JpdGluZyBOZXRLZXkgYW5kIEFwcEtleQ0KPiBpbmRpY2VzIHRvL2Zyb20gSlNPTiBjb25m aWcgc3RvcmFnZToNCj4gCS0gd2hlbiB3cml0aW5nLCBjb252ZXJ0IGFuIGludGVnZXIgdG8gaGV4 IHN0cmluZw0KPiAJLSB3aGVuIHJlYWRpbmcsIGNvbnZlcnQgaGV4IHN0cmluZyB0byB1aW50MTYg aW50ZWdlcg0KPiAtLS0NCj4gIG1lc2gvbWVzaC1jb25maWctanNvbi5jIHwgNjcgKysrKysrKysr KysrKysrKysrKysrKysrLS0tLS0tLS0tLS0tLS0tLS0NCj4gIDEgZmlsZSBjaGFuZ2VkLCA0MCBp bnNlcnRpb25zKCspLCAyNyBkZWxldGlvbnMoLSkNCj4gDQo+IGRpZmYgLS1naXQgYS9tZXNoL21l c2gtY29uZmlnLWpzb24uYyBiL21lc2gvbWVzaC1jb25maWctanNvbi5jDQo+IGluZGV4IGRmNThj YmQ3ZC4uODY1ZmJkZjA3IDEwMDY0NA0KPiAtLS0gYS9tZXNoL21lc2gtY29uZmlnLWpzb24uYw0K PiArKysgYi9tZXNoL21lc2gtY29uZmlnLWpzb24uYw0KPiBAQCAtNDUsNyArNDUsNyBAQA0KPiAg I2RlZmluZSBNSU5fU0VRX0NBQ0hFX1Z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