Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1558298ybd; Wed, 26 Jun 2019 20:34:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwf3mu247L6bTyhzZngp49G8zaGb6+I/v6k2GVVoiD5b4abXHjrczbNlAI53p7kbsy4IGoZ X-Received: by 2002:a63:88c1:: with SMTP id l184mr1501495pgd.376.1561606452744; Wed, 26 Jun 2019 20:34:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561606452; cv=none; d=google.com; s=arc-20160816; b=aMyVGSBjR8GZMFDaWQnlUdumGE+qT0A4/WmMdOOMLJv6hcG84OdFxtRbf3Cr6ybYeI Ta3mzgsgAv9O13NUMS3y2wxODVU2f5RoPamdGMKVvrUS+ZG+AMOXMasiunN1bhC8Aaz2 gmBM+sMr1WzAp4x0S1bodLqj4jbJpwJDQunnqgii2sEDAV7ay/4o2VciWbDrCcwQmS1L 8cK6R4ppJhaS4ayDkW5PoOxsQbqaHLN0EopBMuxpBJEIW88E7er9/Yzn5hdqdHTwPhee 9humOUwaGbi8h1NqE+fNN6O3UXywZI4PmF3VTFpdcljNgK007qkXL8t/vyYT9RyYQ3in B2+A== 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=s/wiKyvQ82Z1EEKTkvCHo9xqec6d57yFGvF5LN7tVyU=; b=sAS0IysDhw1b7y84SFyt5GqkxT5blyO/mv4yLCNguB5qtqtdwRemDm+DeQgYbf4nkQ TxBE7zfTfUEbRjB5X+jWn45qcp4Z/jAqC2zOjJPUWFJUmPZOwpJWEksKcqTX7aHv1LUC eMwCdTG8S/ur0n1mux+SyxSo6HuHAWpKeHlEZBlJdWHwvnY8RqLayUVTWv+fNGqaXS5g vLDQWaOjNdfxaoocXIwLU6qrgp0J9FcUZfw/l9Q2PD9A2ELen+mKNxmXZyn2v86xDAql Rb3+HWxbO5DlL693CdOKQdjtXzJwk2dI/C8FLzgHjQFkdBuuzXzMDmZa057bkRwTkDbg 9X5A== 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 z14si918373pgc.581.2019.06.26.20.33.43; Wed, 26 Jun 2019 20:34:12 -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 S1726621AbfF0DdZ (ORCPT + 99 others); Wed, 26 Jun 2019 23:33:25 -0400 Received: from mga12.intel.com ([192.55.52.136]:10350 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726447AbfF0DdZ (ORCPT ); Wed, 26 Jun 2019 23:33:25 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2019 20:33:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,422,1557212400"; d="scan'208";a="164586086" Received: from ingas-nuc1.sea.intel.com ([10.255.82.90]) by orsmga003.jf.intel.com with ESMTP; 26 Jun 2019 20:33:23 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, johan.hedberg@gmail.com, luiz.dentz@gmail.com, Inga Stotland Subject: [PATCH BlueZ 0/4] Model publication fixes Date: Wed, 26 Jun 2019 20:33:16 -0700 Message-Id: <20190627033320.8898-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 This set of patches cleans up miscellaneous code redundancies in model.c, fixes virtual address labels housekeeping, fixes checks for model publication removal (i.e., for unassigned address in the config message), fixes return values (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 | 360 ++++++++++++++++++------------------------- mesh/model.h | 38 ++--- test/test-mesh | 8 +- 4 files changed, 187 insertions(+), 266 deletions(-) -- 2.21.0