Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp775597ybi; Sat, 29 Jun 2019 23:44:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxL7aad4GUSWwtuQwhDr6VttTP3mQo9QPf/CHnTX6b0hLC+fGUCP+PxdL8UhpvSEg8Gsflw X-Received: by 2002:a17:902:a607:: with SMTP id u7mr21908081plq.43.1561877070745; Sat, 29 Jun 2019 23:44:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561877070; cv=none; d=google.com; s=arc-20160816; b=A5UuoOKNo5CnUoqXuhO/6A+kYpaIUhtKsf6+02qDXSqOSsTqVtxDPUxtTDRng2OVPU C3pTwcaW3gYnawJq+5BgpYg7gZzrhpVMy3X2DegRFsawu4LjLIaosCv7vbYG6wPblpaW NpiS5wsZUOlOgpORYt/1CqoipwtD7IPm3TfHgqpOLrr6q0hrNsGLJO7nLv7wa3ZC75u9 +jhpXuMKYI61Tsf3jIAlvyKY5OIxb9zrqIRHMaIVK+3b9k9ravIssnmbZ6jHZgQKL3D7 Oo4fiSGT9616QL269LXeqKlPSlopZhn8ZTcuLUMigeGh3Yx6jgCANffQ4Rky1t7v+3om Q2uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Z7ovGJh9WJbgA42mW/iCcoVN0/rRlrzDeq/VrzCelmM=; b=AOgFN/K2o0vR5hHY+800dEQW6nYy76rL/DpLzkpfq42+H0aKbijrNiTb+G6YK4LMRA FsDhKKLL8eJD0EKGi87p+GIDkaR9VYTD5uR2pZRpwQMlOkoyWrN01AG6l4YjOmPM8vyX 3Rz9CNogPuxHtCal2O7ga15gLwrhlqVvgmunFNJyx1iXaLyVv5RrHJaUK6cpE7Pivrt5 bX11wj4a5uIR7jmjOkuKI6QnMPUWnjFrpvzNBCyTEq75b7XB6yGASUOTdWZdPjJMKVT7 +P+MD4VNRLvHG/VGGLLir/2YzCEpM/hGW1uOtrTttlSnQU/IKRTL0H6UrQhg/+XKAjbS yhXQ== ARC-Authentication-Results: i=1; mx.google.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 i11si6510656pgq.509.2019.06.29.23.44.16; Sat, 29 Jun 2019 23:44:30 -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; 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 S1726472AbfF3Gn6 (ORCPT + 99 others); Sun, 30 Jun 2019 02:43:58 -0400 Received: from mga07.intel.com ([134.134.136.100]:7272 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbfF3Gn6 (ORCPT ); Sun, 30 Jun 2019 02:43:58 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jun 2019 23:43:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,434,1557212400"; d="scan'208";a="314543827" Received: from ingas-nuc1.sea.intel.com ([10.254.64.161]) by orsmga004.jf.intel.com with ESMTP; 29 Jun 2019 23:43:57 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, michal.lowas-rzechonek@silvair.com, Inga Stotland Subject: [PATCH BlueZ 0/4 v4] Model publication fixes Date: Sat, 29 Jun 2019 23:43:52 -0700 Message-Id: <20190630064356.12660-1-inga.stotland@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 + Michal's comment: explicit setting of ref_cnt = 1 in virt addresses housekeeping + A workaround for (bogus) compiler warning, plus commit text fixes + Michal's comment: variable naming This set of patches cleans up miscellaneous code redundancies in model.c and contains fixes in the following areas: - virtual address housekeeping - checks for model publication removal, i.e., when config pub message has "unassigned" value for publication address - return values discrepancies (few cases where an integer error code is to be returned, but boolean false was returned instead) Inga Stotland (4): mesh: Clean up model.c and cfg-server.c mesh: Fix virtual address processing mesh: Fix and clean up model publication code test: test-mesh - Correctly stop periodic publication mesh/cfgmod-server.c | 47 +++--- mesh/model.c | 366 ++++++++++++++++++------------------------- mesh/model.h | 38 ++--- test/test-mesh | 8 +- 4 files changed, 190 insertions(+), 269 deletions(-) -- 2.21.0