Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2611481ybb; Fri, 27 Mar 2020 08:49:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs1xPsAZp7RFD7rteyRULLp8xnyNFA1JlzAn9lExU7F1GHM1DUf49lrvhlkEd3avR94zyIT X-Received: by 2002:a05:6830:2318:: with SMTP id u24mr10502827ote.106.1585324198074; Fri, 27 Mar 2020 08:49:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585324198; cv=pass; d=google.com; s=arc-20160816; b=TDkvWqqeQsuXPolEJj/yQft+6iM0V4uC6vPFULfLqy5ySeveRebaO+qDf4qj61F3L7 ugOA4k0px8uW1sDfRan1RV1OAMB8WL0B8mSR+y0mgy0VED6o818f+Zw4yUMf34ZwLDhE hWik7BlCklaAuSdHZSwdpLCbd61DabUEewRy3gnKzbyhLau9U6CdAtcYDI83IlsmyT8e qqVPxbVZqZ0eYVG8NcCa2P/eObMjI4DW2R99F0T+bM7Wrj//dw0LQjFShsmSY4VDs4Cq 6Yff2d54+E+8v0/Jb2a/565MoRJlxQDJF16vFfji3DihMRavgW8+7KaGYxFVhAkiycVk FyWQ== 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:cc:to:from :dkim-signature:ironport-sdr:ironport-sdr; bh=t6MR0a6LoT3ALwDwejd0luKOQuDPw5mfY6fJbzPFj3g=; b=r9LBP6OT2yTOftuzvJc4JC2ydNxf0zDPkrK35zR9ltVl9L7BgWa6PnZrAIaIA0F/V1 Djq7NGW5eeQxx+mfSiEVnWjzuw/yPXzzfhiadp3PIAPXsv4NIPyOpLwcUjA1yFYZ/3mg U+89VK6wCdjYAYxLKu4vY1wr1tm6slQHOAsQCh3I6VfvZqSnJ+fRAIi9/j/EweHWF44D Z2nFkVaEkgJDp7EvNOjq5JbxzGB4X1xuagkupfSk4Rc1llog6/aVHioIZKTBzxV3Mxo4 pucm2wszDuLJxMvhm8AR0PNbzMkfzKmS435U38AFMbOdssyuucPwSEihgdL4SOc6//6h M7gw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=Eq3wsL8L; 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 a12si2614804otr.321.2020.03.27.08.49.26; Fri, 27 Mar 2020 08:49: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=Eq3wsL8L; 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 S1727143AbgC0Psu (ORCPT + 99 others); Fri, 27 Mar 2020 11:48:50 -0400 Received: from mga02.intel.com ([134.134.136.20]:30516 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726959AbgC0Psu (ORCPT ); Fri, 27 Mar 2020 11:48:50 -0400 IronPort-SDR: 8Q7YBA6w2ng9eOKwnV8nfH0Ct0U8coso85AefEff0aXkgzpoHuWIr6igf/7QbHbP8xTupy9ysm FgZ1j3rt1v6Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2020 08:48:49 -0700 IronPort-SDR: RslbV5j2V162bC8O5G+zljiPLKBvKXTaSyAcrkIQTtcdJS5csZZhMfI/Ish3iZ6geu5HVSTTiE el4fUkrUT9dg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,313,1580803200"; d="scan'208";a="447457322" Received: from orsmsx102.amr.corp.intel.com ([10.22.225.129]) by fmsmga005.fm.intel.com with ESMTP; 27 Mar 2020 08:48:48 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX102.amr.corp.intel.com (10.22.225.129) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 27 Mar 2020 08:48:48 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 27 Mar 2020 08:48:48 -0700 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Fri, 27 Mar 2020 08:48:48 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.170) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 27 Mar 2020 08:48:43 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NDCaZ3cSJm5VzU5/ho58NZbwS+7H1MXxR0PhxToojl+sypAQTtDxjacVNaNy3foG8SlqaO1Z9+uXtuBxtWIrycgXMOPSD2q2nHkEfmlmHdn0nJSXIzL6lLstdBCdTUMbRAXixkBoe4IxXspHoESxb+tWbuiC3az6hs2Yh5+IAB5Or8tuzWoXQUP8b0qrTHLJ6/2pwypEX8/bmzT0KNV9VuZN9HMBwvwVkcyFSDtCmV3kirqXV7E+nj7wgWHnFiVIv0TJ7B7SKH7XEfxKOSrxRp3Sc5kpGtqv9Tnq0XmtzcdG7wNfs7jYnh1QK2D0gykWnBsY2q7/ZfJLDg3ZaxY1Vw== 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=t6MR0a6LoT3ALwDwejd0luKOQuDPw5mfY6fJbzPFj3g=; b=gBjkTo+nZ9mRPo60bagXWDJgLVYxlp4PLMe9s/OprUh4thmkOYYJgxE8jRLU2T8KXJDYHMP4NB4o01P8m16ofxUv2R8eH9BpKecO56HVX3iT6pqLiltY2C8mXzvST466BtRTPOVnrFQsxAghAUs8mrkR93puxmRxsA4k80twlq4WiKIjJAVil8C/b+yTQ/7hR2SbLh1wxTyIjdjqFcJ8jQeTG7SK4UjyaJEQ/IxSzEt0X2aebCWRqNTnz6e+bLRZg2Rfig6uxclNnM4y3hufytf0v8MXqxslo9g1PvvTES2CCT+2F/+iM66zOR4iif5Nial3Ewz7cQyswkbOaRk+vQ== 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=t6MR0a6LoT3ALwDwejd0luKOQuDPw5mfY6fJbzPFj3g=; b=Eq3wsL8LMFQRISqx1YImUVTOOyoakS/gnpxmldcyxtPaN+eoWWgrWhaSnErjOiY7hTcFig05BGL4Ft9+lFkSryFQ71gayncY8X4oFKN6KkWJZuNPb54K1mtxuOmAKAHkpvyR7+z2qyGsbzaPapuWRWSPTibM1OwsfQt9Dcy6htY= Received: from MW3PR11MB4539.namprd11.prod.outlook.com (2603:10b6:303:2f::13) by SA9SPR01MB0003.namprd11.prod.outlook.com (2603:10b6:806:45::24) 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 15:48:41 +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 15:48:41 +0000 From: "Gix, Brian" To: "michal.lowas-rzechonek@silvair.com" , "linux-bluetooth@vger.kernel.org" CC: "przemyslaw.fierek@silvair.com" , "Stotland, Inga" Subject: Re: [PATCH BlueZ] mesh: Add net key index to send_seg() Thread-Topic: [PATCH BlueZ] mesh: Add net key index to send_seg() Thread-Index: AQHWBDo2O+813TI47E64bvQkX/NNMqhcleoA Date: Fri, 27 Mar 2020 15:48:41 +0000 Message-ID: <4ef38cfb7149f3b52f8ee4e76d718ef25d64fd71.camel@intel.com> References: <20200327131800.7637-1-michal.lowas-rzechonek@silvair.com> In-Reply-To: <20200327131800.7637-1-michal.lowas-rzechonek@silvair.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: [192.55.55.41] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ca7f2963-ac4b-47f6-05e8-08d7d26652f5 x-ms-traffictypediagnostic: SA9SPR01MB0003: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-forefront-prvs: 0355F3A3AE x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(136003)(39860400002)(366004)(346002)(376002)(81156014)(81166006)(6486002)(6512007)(5660300002)(26005)(186003)(6506007)(2616005)(36756003)(316002)(2906002)(66556008)(64756008)(71200400001)(8676002)(478600001)(8936002)(107886003)(66446008)(110136005)(66476007)(86362001)(54906003)(4326008)(76116006)(91956017)(66946007);DIR:OUT;SFP:1102;SCL:1;SRVR:SA9SPR01MB0003;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: v5VAIZS/pEn/CXWm9OJIH/a0PNM60IM8JDbPs1oN3vzCU3kV+p7Lypew7jn9mDkJ7i4SDuSvq+TmG6UUk9hSGu05m8dfdO9X7dnsN7pqyvX2o6l9APLxPPsu2ACEq8JpS4662wmQOBd/gXNFDqQu5QyVZAdRzE1kHWvnDupnidw7wOwrRgQrP+x5gW0348r6c9b6kl2wtri+E+dlgcEjJ5xV9DOWuHpmrB1QfMoDWOp4ZjZDmZ6J/TFclQ3FWV3H+7yeErsR9ybYPg2L7jzZBudUZsrskbSYv2AEnKP+JgBCTDYgWadxTFYViw/iOjBk48WeXry8hbuVgLYFG86nJ37+PCtd+IDDd6AdEg4F5CZqPHrR27itmF4CiHSN0wXDmD6LoERNC1aIRG6QeNJWeQptYcsyLpSSwpKSr8NcOqJA7MZkaZF54VDagC2pBRDX x-ms-exchange-antispam-messagedata: SnH+1LUBgjQVucpnYQGc4iEV8XxNzLH8WmEVZAZvTlXWPoI1KTsMuzd2TeFQGdcp/poJT+5iXE0BrhfLI0p43z8Zck9gu7CxFoauKkvGM8nsaypZk0pKCZgbL5MBrnyEEhtHs/2P94S1jS9r0JqgAQ== Content-Type: text/plain; charset="utf-8" Content-ID: <22958FA97FA6F74EA46E983744437624@namprd11.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: ca7f2963-ac4b-47f6-05e8-08d7d26652f5 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Mar 2020 15:48:41.4828 (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: 4Et0+Impspkqj3J0DJtc7JFXfhb5d5prz/v8ZfjAc8P9yNi51Qcxz8iIcwiN8XIXooyH3L/lwfJS/yNw/uOr3Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA9SPR01MB0003 X-OriginatorOrg: intel.com Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org SGkgTWljaGHFgiwNCg0KSSBsaWtlIHdoYXQgeW91IGFyZSB0cnlpbmcgdG8gZml4IGhlcmUsIGJ1 dCBJIGhhdmUgYSBzbGlnaHRseSBkaWZmZXJlbnQgc3VnZ2VzdGlvbi4NCg0KVGhlcmUgaXMgb25l IHVzZSBjYXNlIHdoaWNoIGlzIGJlaW5nIG1pc3NlZCBoZXJlOiBSZXNlbmRzIG9mIHNlZ21lbnRz IG9mIGEgc2VnbWVudGVkIERldmljZSBLZXkgbWVzc2FnZSwgd2hpY2gNCmRvIG5vdCBoYXZlIGEg Ym91bmQgbmV0X2tleSwgYW5kIGNhbiB1c2UgKmFueSogbmV0X2lkeC4NCg0KV2hlbiB0aGUgaW5p dGlhbCBPdXRnb2luZyBtZXNzYWdlIGlzIGNvbXBvc2VkIGluIG1lc2hfbmV0X2FwcF9zZW5kKCks IHRoZSBuZXRfaWR4IGlzIGtub3duLCBhbmQgc2hvdWxkIGJlIGZpeGVkDQpmb3IgdGhlIGxpZmUg b2YgdGhlI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