Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1141569ybl; Wed, 8 Jan 2020 11:45:54 -0800 (PST) X-Google-Smtp-Source: APXvYqwWYzF/qrBzhAMAK3y0t2ZmqYu6OXyw43Gm+uoaBvVbUZUlkXLsF4EOYEneLjxZyAWPpOkp X-Received: by 2002:a9d:6e82:: with SMTP id a2mr5287907otr.336.1578512754096; Wed, 08 Jan 2020 11:45:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578512754; cv=none; d=google.com; s=arc-20160816; b=ic9nviPOOgdTszNHJVVN5lmSc3VL2jMZtNFZcjSLfT57DCFD6yKBWqo8g2khiAPB0z 6y1Q5QyvE3mSS786neT3NTl9LLe/uJsI7Sc0ejYNZYizU2m8KrVU4ymDFZFEevEpoujH kXZyLBxBxb6jCy3LVkbZITaE7KhHW2/rMIdGnaBhuKgxZsZnnNF48/CrB7tHjJEBMS+N F1YOLcXzmQcexpCOfpynaTwLT1vQXxatZMYIv/VefOP46Q4+0HPoY+OabmDz063QiqD1 5jtdkUqRuWpkOBUSEdX0/8JQcJmrMnPHI43Gpv/ouOG9+4oHrZ2WldyZPfyIaxReDo/Z liEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:date:from :dkim-signature; bh=XIJp8Ev/SWzgxb6l0rKcAVisTQ388xWRnYoEnmIf34I=; b=L1KCj3cnv5am249feNBi/g4Ufc5PTTy5/aJcGiNOETokmdv+CCxd+2eekzeuJSPWOt qtx3QxHmJwfRJj9SEWYLUMwAZFXmyD9SnnooU2xi5D2VHLdPpRm/pjgJnmeB2vooCC1G z6BXGtkfW3+q6n6VrWKttdRQ6eOTnxyZ7V+kWxt/k8ixhOeFdM1xAce4ecDnS+Wn9v2N /xASCAK04T6IbIWqqF4UvBw0yPAlfn6MZwIQ+SOKfRCVzskV42gGpfqeuajeaZPJp1Md NiYOffAC3/O0M8n+1XE3sTnpkRLLF/A8bApxSL2nUzy1tp62XVjpKePLx+bndyBChbPI qHFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=iUnBPeAV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z18si2364648otk.206.2020.01.08.11.45.30; Wed, 08 Jan 2020 11:45:54 -0800 (PST) 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=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=iUnBPeAV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728998AbgAHSSD (ORCPT + 99 others); Wed, 8 Jan 2020 13:18:03 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:42664 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727507AbgAHSSD (ORCPT ); Wed, 8 Jan 2020 13:18:03 -0500 Received: by mail-lj1-f193.google.com with SMTP id y4so4299592ljj.9 for ; Wed, 08 Jan 2020 10:18:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=from:date:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=XIJp8Ev/SWzgxb6l0rKcAVisTQ388xWRnYoEnmIf34I=; b=iUnBPeAVKn4hobAxMqh/OwaVIXpfUnAeyhuMMF/QpCk0AthPuoPRX3w+XNadUiVO1t TAN2G+Mk0fayKVRwLA1iRHWW1lqQah/49SrrDzCxIA+VpfzgPAS3PdEbXh6fhCOHZ9Tp lbbOL+74On2GMp+WxBy1sxhpsVff6vafXw61JSZo4t7deE1TbaNMyybZkfVoCNKFpmoX bupHZgHauWdAXL9M3RzhyoXg9IoDCjUiYyo0kgNB5ufO1kbaw230mYP13g1lBeloSPGk H/XxCAD8kGtIAgLVgs6GM95/UuYQWfoset9nlOqCCGMvR6LcyYRT5stJ3GITDK/RdulZ 4syw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=XIJp8Ev/SWzgxb6l0rKcAVisTQ388xWRnYoEnmIf34I=; b=tm9NdeKJfmNz9cjFa2K76B43A71hDAPA8nWFnMjMRlWorK7uOr7nzrJeS3zMppxZ7a 6zDh3eFdLhBaScnRE/t7xec5nN5tN88fFMD+7PH/24SX2juG9svaiIm/Y1bFUMazSNNb UsAh3AFZTcS874FR6KQ0OCjr7MQBcGpmvKhjyxXBdYOegjn4nfcldvCxGnN1sW2z0xDq fMDgVbrQNkSeaPO0ssNt4u4bNofflrU2g3UclYM9x/kDUxcI6nhKL0kKqNmlsKLHBajB Tig8wugRqfIzi4US7jyzwiotRkq5KMaH656jVSxPAYDiyQk0RLbEiE4ctzQ9dhMH1/LZ M7Ag== X-Gm-Message-State: APjAAAUqqTs2YnMYPQIQvNEkkV4SABDfgY1h8xrb64GtJxJpGImgZLzl M/7auhdR2Z6JJrSTeayfTK7h7Gu1Lpk= X-Received: by 2002:a2e:8152:: with SMTP id t18mr3668515ljg.255.1578507480975; Wed, 08 Jan 2020 10:18:00 -0800 (PST) Received: from kynes (apn-37-7-124-67.dynamic.gprs.plus.pl. [37.7.124.67]) by smtp.gmail.com with ESMTPSA id r12sm1644386ljh.105.2020.01.08.10.17.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 10:18:00 -0800 (PST) From: "=?utf-8?Q?Micha=C5=82?= Lowas-Rzechonek" X-Google-Original-From: =?utf-8?Q?Micha=C5=82?= Lowas-Rzechonek Date: Wed, 8 Jan 2020 19:17:58 +0100 To: "Gix, Brian" Cc: "linux-bluetooth@vger.kernel.org" , "rafal.gajda@silvair.com" Subject: Re: [PATCH BlueZ] mesh: Fix IV recovery Message-ID: <20200108181758.kkgjtqkom4kuvzih@kynes> Mail-Followup-To: "Gix, Brian" , "linux-bluetooth@vger.kernel.org" , "rafal.gajda@silvair.com" References: <20200108091604.15185-1-rafal.gajda@silvair.com> <89614c82891524958af2a7c75c1792b0c9ca4467.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <89614c82891524958af2a7c75c1792b0c9ca4467.camel@intel.com> User-Agent: NeoMutt/20180716 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Brian, Rafał, On 01/08, Gix, Brian wrote: > > - if (ivu != net->iv_update || local_iv_index != net->iv_index) { > > + if (ivu != net->iv_update || iv_index != net->iv_index) { > > Would it be fair to say that this is the *only* change to the code that fixes the logic that was > malfunctioning? That's correct. > > If so, I would like to shrink this patch to just: > > - if (ivu != net->iv_update || local_iv_index != net->iv_index) { > + if (ivu != local_ivu || iv_index != local_iv_index) { > > or, breaking this into a 2-patch patchset, where one of the patches removes the local caching of ivu and ivi, > and the second patch fixes the actual bug. Ok, let's split this into 2 separate patches. I still think this "local caching" was the underlying cause of the mistake. regards -- Michał Lowas-Rzechonek Silvair http://silvair.com Jasnogórska 44, 31-358 Krakow, POLAND