Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp294810iog; Thu, 30 Jun 2022 00:33:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sWdOkUl+1LxP7YFd7Gic/PM3qaTzB1N2J7F4ov1uLuc+g7DQsbpYxfMVSEZ/vQdGFKQGqt X-Received: by 2002:a17:906:d550:b0:726:2b34:2fd6 with SMTP id cr16-20020a170906d55000b007262b342fd6mr7322853ejc.311.1656574400641; Thu, 30 Jun 2022 00:33:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656574400; cv=pass; d=google.com; s=arc-20160816; b=SvYZymdaLjyxg/GIUolRPlZ6Z4raqWAXFwmSMp4VH8dbK1U4s2fzh4qq6uJNp7p482 I0uGuuGy6SLdvR88CkpunCR00eYIbv1hFDa09TniPsJE5OXwkezF38dYj5D0LAwd4XJH atgixDwTHpEvSCMPthwb4h+OqSSckziN0deSxmcQWWiTYm9EF6F4WzMol58yFf59Q+aK AT5E4HaaZ9DblZ6ozDDycGBey8O0ddAonXJ5V/uCiT2lcXVzL71Z6CAFiGrL+gcBuL/9 rpLWm3MKkE8Mgk4YCoIK0AU04dgO9HnU7Yy7/APJqoFR05cQ6Pfpq3UAFe4nBK5hNpZG fF3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=jCKUqf2L9wv/hywt5Dxzp5XKEgEAdLX+VXSKZoBlupQ=; b=GwBoExPHprfaj2ZhCuqB/Pik42TopxyviEDd5G1b0wEXmy0OyRaMouikTwJNNDJhoY cDM/DtmVy40oLABZ5O0r3z5OfNAjg6TkslMZ2M3iVilDuff45iwBJUjZM33XZnRvqrvX wHGnq8xCvqVONTz3oR7o0tlQX3G8ZNDVCwTvzIFm4hgB8IXbJGKftXIfDDKswisPE51e Ek4aBS0URujch7jSLwgLLP5IdO4JjlWNOWwXH2WgC6WUzMX56Tzh8Dt95vhU7icOiY2W c9fz++DE989v4fc5RK/UCWy9tByf90CTKHhjeNU4P5hHw5AkSW9LSMwZkgByjVHGccXK O+jg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hotmail.com header.s=selector1 header.b="Zso/+2uz"; arc=pass (i=1); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a42-20020a509ead000000b00435726c3651si18828309edf.101.2022.06.30.00.32.35; Thu, 30 Jun 2022 00:33:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@hotmail.com header.s=selector1 header.b="Zso/+2uz"; arc=pass (i=1); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229844AbiF3HaX (ORCPT + 99 others); Thu, 30 Jun 2022 03:30:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232449AbiF3HaW (ORCPT ); Thu, 30 Jun 2022 03:30:22 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2078.outbound.protection.outlook.com [40.92.90.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E2C61C928 for ; Thu, 30 Jun 2022 00:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ehTiuzvfzFiPgL+U96sMg45iDp622K7urRozZ7Z/dyMKs0LC4EiOT3RUZmEb5Su35kbcLtzj98ugI7Y/uHChNXalSlxx3sXoh8Yfov5KEEjR6x6ozB5ZmCqdDQ6QunpoGNlNknrBnQYEX3INo4d8HgCZHLwRSsDRZ2yJBR30tbfsxfrZ3WI+9zI6KMOPxqp+iggOToxQs1QPR+FIoQLzORqPSoPBUplvrJ2dv3QVK2Dfki/FO0WHtKdGlqkTCB9YLce3Yp8/sIZcJUoUQNMX/AY5i64XcsPK8+wOQQlqkz0TqLBXMBbnHQwIOYBfSRwF5i0OzRnFwKIl9hd2TCHiFA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jCKUqf2L9wv/hywt5Dxzp5XKEgEAdLX+VXSKZoBlupQ=; b=iXyojJKu/K6l/Nzk4zhiTxBpELIIcHXCbQB6+NJ1dVz2W1MdsACvZ54m6iWMDIdZqm5TzqDxd2R3KyNPNKLALFIo0M1TiSpMr6xNkVmD2+zXNJZkTKRmG0PIXgiBHie3JBI6xupc0mXz71sA/g7YAINeGnl+s6HYOyHHqHt/2jTis9tYM1telZYgez0AggKlTwLQWmacqZHspk+A1DuVvtIQBV6VrL1VqrF8FufSk4uJetZnqGWjRn3D/TGq+UuxRfVkNDng6tU6l4btPRVqVUjpnd4LNT3WK5cEUq8YA/z9iaq1+gYHI5F212sjYeAfA0ogjELqGCgkldV95o+iJA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jCKUqf2L9wv/hywt5Dxzp5XKEgEAdLX+VXSKZoBlupQ=; b=Zso/+2uz3wy5q8FY6lwyCMD/KKz6a6gIAWajp5vb1Izi1Nk2mcIU1UydlXshAw36PPA6O7n6U8r+fAoMzF66ulFE9vxTSrYZdEkkFtuEML/NCU5zGwZ7ls8unHeDjJpxt16ipmQGkemUXxdntadp55x2i3OiCHerUvaBvBPV4RLyxtpaPXaKfVkcRX8pWcSOKF+TsmPzkyWf1NHbvTxfYjz5k7iH/BniOabWKPceEqDNfnU2vfLhtuhbajgzmLxnWicJSw19qrE7WGI8B37l/5ERUR2CReNS9bwQo7lJDevYaxb1KUOBodNVhSVz9ujw9Xp+TVH877VEmxtIPAa7cw== Received: from VI1PR09MB4239.eurprd09.prod.outlook.com (2603:10a6:800:12f::23) by VI1PR09MB4238.eurprd09.prod.outlook.com (2603:10a6:800:122::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.14; Thu, 30 Jun 2022 07:30:18 +0000 Received: from VI1PR09MB4239.eurprd09.prod.outlook.com ([fe80::a854:d1b9:4cc2:f422]) by VI1PR09MB4239.eurprd09.prod.outlook.com ([fe80::a854:d1b9:4cc2:f422%3]) with mapi id 15.20.5395.014; Thu, 30 Jun 2022 07:30:18 +0000 From: Isak Westin To: linux-bluetooth@vger.kernel.org Cc: Isak Westin Subject: [PATCH BlueZ 0/1] mesh: Use correct net_id in ctl_received Date: Thu, 30 Jun 2022 09:29:18 +0200 Message-ID: X-Mailer: git-send-email 2.20.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [tc0ePv2jqw30u3cZDwqm3l/Mpe9Y+vDs] X-ClientProxiedBy: ZR0P278CA0051.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1d::20) To VI1PR09MB4239.eurprd09.prod.outlook.com (2603:10a6:800:12f::23) X-Microsoft-Original-Message-ID: <20220630072919.20890-1-isak.westin@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ae178e4a-878f-4d09-503b-08da5a6a61bc X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UIsx7KfB5fXwSmCBUPcX8iFB7BfKLRV/94aIsfvKs7IJy1zTFrUSwAKmvBcFqwYUETqMCk9eEdPhcN7pqTYy8wwUY60WUuitcWFEpnqu4f6ItvifjY2TiF9qoNpaaVQtkChy2qt17z7P01FJRzVhxTGz2R1PHJOQ5AmWDD8dNtIIuv/YC+q5akn3RPv0wR1yZEYK4nVgv+xjLZaWx+XTvNuX6g42aqTZzIABzqax4vRDxB6YDcl85FlF43d8QwjEY74s/Nor6Xhc7nDErao/kAJvSrFrTJOjlV4xwiuS8GBkJGZwFE+fSJ0HloU4DBEti/kWfR1il9N9c3uT7YseKhdfm1mD18r+LsF9h584HVAcBnVzMpNqzSjBZUSwmh6b3zYUncR0u+8CddC06KMzJc4gTt17myKHy7kn+cOpj9mcOK5wKElpwB5OUtNtcTvKDMJOFl+ZKkr8uHoO4WNHqCyKHotalOboEQqajIhZBcgR7JrXPerAz8yQVYeK9vFIj9vd/Z+PKdJfJcjVPSunnv5MEUQH/HEDKzkooBMAoYV/jQviFAfIprRbIcLMpyvt2ymwwtILU9ZCIsNRgcidonhQRIVr1XlFPk8JzpWVy7ZUL9q0FeJ7EZqXYUEMQ3oO2qMpdsGsp53YFwK0yDWPM9hVlGP8INsr0FU0Ire0msBqZ+8+tva+Xt2jSzbBjLWKOaO8zKVvxe6Iw== X-MS-TrafficTypeDiagnostic: VI1PR09MB4238:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dpy10D+BuAOyDRIuhnoLYQHk+/PLL+1Y5Ie8RMbzTWhjjjcoWQpOxxCij7xKXGtHoQxBK3RWznqQ+2uMLwovZNLPYILYY21z1Q6xdMar3nYqxVcA+OuC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ascii?Q?N4ifC9spMgemPNz8R7d8qvIQHFYtG0e73YOZ1JQosg=3D=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: ae178e4a-878f-4d09-503b-08da5a6a61bc X-MS-Exchange-CrossTenant-AuthSource: VI1PR09MB4239.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2022 07:30:18.4110 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR09MB4238 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi, I had an issue that the mesh-daemon local node never responded to friend requests from a low-power node. After some debugging, I found that the net_key_id passed to the ctl_received function was always uninitialized. It seems like the wrong variable was passed to the function. Following patch changes to the correct variable. I tried it with these changes and I can create a friendship with the mesh-daemon again. Isak Westin (0): mesh: Use correct net_id for received CTL messages mesh/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1