Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62464C432C3 for ; Wed, 27 Nov 2019 21:39:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4233A2075C for ; Wed, 27 Nov 2019 21:39:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729488AbfK0Vjt (ORCPT ); Wed, 27 Nov 2019 16:39:49 -0500 Received: from mga04.intel.com ([192.55.52.120]:15279 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728247AbfK0Vjt (ORCPT ); Wed, 27 Nov 2019 16:39:49 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Nov 2019 13:39:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,251,1571727600"; d="scan'208";a="207008610" Received: from bgi1-mobl2.amr.corp.intel.com ([10.252.135.67]) by fmsmga007.fm.intel.com with ESMTP; 27 Nov 2019 13:39:45 -0800 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, inga.stotland@intel.com Subject: [PATCH BlueZ v2 0/2] mesh: Fix Friendship for multiple local nodes Date: Wed, 27 Nov 2019 13:39:37 -0800 Message-Id: <20191127213939.4526-1-brian.gix@intel.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Primary purpose of this patch-set is to get Friendship working again, and clean-up the logic so that it correctly works accross multiple Networks and Nodes. Currently friendship must be enabled by manually editting the appropriate node.json file, but suppport will eventually be available with a soon-to-come mesh.conf file. v2: Added an additional Debug Output clean-up patch that makes logging of incoming messages less noisy when multiple local nodes can decrypt the same incoming messages. Brian Gix (2): mesh: clean-up Recieved Message debug output mesh: Friendship clean-up and rewrite mesh/crypto.c | 4 +- mesh/friend.c | 610 ++++++++------------------------------------------ mesh/friend.h | 7 +- mesh/net.c | 328 ++++++++++++--------------- mesh/net.h | 31 ++- mesh/node.c | 2 +- 6 files changed, 271 insertions(+), 711 deletions(-) -- 2.21.0