Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp125448ybd; Fri, 28 Jun 2019 16:02:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+e7Oa6a5UOlFX39+i97p13Nyt4Ow/O98+2/neUNNvtGgWNQO+BTlmv8Gi9z6FRvM9PhiK X-Received: by 2002:a17:902:2e81:: with SMTP id r1mr14629789plb.0.1561762951707; Fri, 28 Jun 2019 16:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561762951; cv=none; d=google.com; s=arc-20160816; b=dnf9G8/kNmvyZH06t2u1m+DhF9f/MeHgRoAumWeNjnVcPijthMBFlhfHQ9gInBNoE8 lcXFl3HMo5TmR/8ah7lJqXadniVbjgbKUjcf3v649i0ZDCQuxtgv3a1/8p8Ust01j1Os uByippqCY428WiieMqJlIMJ8Kp/ZPLYPlQrdgY/Rx791fzVvp+o2wY2QeRBbZbNmSdJq Ez6ZvX0RPcuAUcME5Q3naqoQI8L6DHqGHycjhApbD97z3aCsojdRx4cs40zGLdYGwjmo KSoGbPbNDp2FvDSdBVKpEKHnZF28b6m1PdsE3PMExNPnjXljWJGNCbzPcvalrsJLyaIY EpAQ== 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=1Q8W+GgQPczW5Y/Mr1Vc52LfedKQwlffnVrI0QT085k=; b=IXjQeG1iuOP2QVOzEZ4Z6iuza3x1LMqW75z7j3U+0xjbuDzAHqDw/etL4qwDCeBVNM 507pn1LapZAymfLy+Ypb6rWklTL/B5oDlw6HdS3/v0e/8pHvWL6MYoVQQn/MXSAZ0iqV RBOS/FDCuKAoP4FByhkPsTWsSX2wWPpL7uzc6azkrstuGDEX9C5VxLfFGrXY4b5OXzqd g6/w8zkKnB5htc2OcWOAR9lUA+ZsEcYZzKTAXMU5Ksf8mZNZDWUZ7lt4N+0pkrqNrTU9 X/ClZU49Cvfu2gWgX01cN9xR7hDTgi/UblegW1WFFY9b2n1kRqo62HR9WasY+MsPIAjX 1AJA== 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 b92si3475815pjc.17.2019.06.28.16.02.01; Fri, 28 Jun 2019 16:02:31 -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 S1727015AbfF1XBo (ORCPT + 99 others); Fri, 28 Jun 2019 19:01:44 -0400 Received: from mga06.intel.com ([134.134.136.31]:53752 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726672AbfF1XBo (ORCPT ); Fri, 28 Jun 2019 19:01:44 -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 orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jun 2019 16:01:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,429,1557212400"; d="scan'208";a="314271642" Received: from ingas-nuc1.sea.intel.com ([10.252.196.161]) by orsmga004.jf.intel.com with ESMTP; 28 Jun 2019 16:01:43 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, Inga Stotland Subject: [PATCH BlueZ 0/4 v3] Model publication fixes Date: Fri, 28 Jun 2019 16:01:38 -0700 Message-Id: <20190628230142.16367-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 + 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