Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2609748ybd; Thu, 27 Jun 2019 15:49:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3QVzdM3TDRhNOcRq2Fa6zqNcCBgK9UiZjbvEa9nT/O1hzoLKBlOZjsgSamUYakfV2Y+S9 X-Received: by 2002:a17:902:aa88:: with SMTP id d8mr7152792plr.274.1561675761897; Thu, 27 Jun 2019 15:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561675761; cv=none; d=google.com; s=arc-20160816; b=PoD9ig5Xvs3l92AkRm3dZo1MpsoWHfdMoU53nN1CZZN5LguRuZ/XXqbX1ZD/SWmkcV 7boJLG3wIT4guBBGjYawbVr+G5F7Wm7VahWQnfzi5TsqDB3rtRJAQmhvlcdpDEHLrC5x sKs2sw46CsdpBm0EEXh8XSRkf/DkbTVUqK6SZGIBy5Luyxf19j2z+y1tuRYlnfkl8rP6 +clFVEgF0FwlaZwMEp5jwAImqjxxx+ocgol7vJNGqzqIN/j+3CeAhV82zUw9yhGe+51q fczba3CcG58NBibRIvkZH5omzEwlyagIv6bkHx8soAsHyfcltTx49gdhuYvlPRD4wW53 jltw== 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=Ter+HqB1VwPxtSN/kTVB5QMON+pd2qVBmrA9rOhOCUY=; b=kVuKP6KHyA9TKqorFz6Nx+zA6eWsman9f9uzthKBsimZcwe4bLjkY7x/nF9ctJLXSI RhRT77/xeBHOuUBWufxrcs+bAc0BpTWdnVFw7UeOWlC43o4k5MEr0Ov6VVXEAVE/HqTL FKhmk71pGNZdIw28UkUqjzc0Wxpg2xTgLg5nxVEUAsTmExEiioInFzfTJVerk9vRtytc 2y400dcy6KEIzvSTVvzKudjqzmA7gwtlC9SGAU7eIs71iNbWn4wXr9dGs8CB99WRQyH2 uMAkgq9u0TtZebMGE1PXDuDfFQWqTo0yl6vUL9hxUowyL2k5oSctklgg4sMKswXxZslt a6kw== 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 k16si382094pfk.68.2019.06.27.15.48.51; Thu, 27 Jun 2019 15:49:21 -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 S1726563AbfF0Wsr (ORCPT + 99 others); Thu, 27 Jun 2019 18:48:47 -0400 Received: from mga17.intel.com ([192.55.52.151]:6157 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726514AbfF0Wsr (ORCPT ); Thu, 27 Jun 2019 18:48:47 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Jun 2019 15:48:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,425,1557212400"; d="scan'208";a="183556388" Received: from ingas-nuc1.sea.intel.com ([10.252.196.161]) by fmsmga001.fm.intel.com with ESMTP; 27 Jun 2019 15:48:46 -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 v2] Model publication fixes Date: Thu, 27 Jun 2019 15:48:41 -0700 Message-Id: <20190627224845.20762-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: 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 publicaation code test: test-mesh - Correctly stop periodic publication mesh/cfgmod-server.c | 47 +++--- mesh/model.c | 364 ++++++++++++++++++------------------------- mesh/model.h | 38 ++--- test/test-mesh | 8 +- 4 files changed, 189 insertions(+), 268 deletions(-) -- 2.21.0