Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3707760ybl; Mon, 12 Aug 2019 05:10:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfJXazUggwwa1AGsXDE6v9AGGWNTSJkvDYNf1g8Wm0UwzUjRKJJzh57HpOVZ5N7neaSPZx X-Received: by 2002:a17:90a:8408:: with SMTP id j8mr11034487pjn.24.1565611808917; Mon, 12 Aug 2019 05:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565611808; cv=none; d=google.com; s=arc-20160816; b=Z/Ta9q49RduTah2L82a84oM0v9nSdTzaHUVR30Fuaqsf5EcI7SHBRpsblmQYzbLTI8 dQNrJX/I3N2GEYjMf9wa7/riZlFf0aPedhJDvZFcCxd9VTXNFpxMKtbDjKTxDzCLUw1i ZqsbaN6o97Izk+FuKOCNruRnK/H33bShDGbextJKaDvGkQYmsY/hKQgoTNCnzSggmYpy SRSx35yuZbjAHiDghePmTok2O3SJ0h95n5IiWDbeT/jtmlmngJDaQlyqh/cLzwMfC7wF IJbWeBqQNFaauCpYQ6plszzm25eZ75e+MxR6iPpVqb3WTZSwmVBDqEPyQS9NhFXhKevB aDnw== 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:to:from:dkim-signature; bh=PrelaoJ6TnJpyofqhLMulqO3h0BlAQ5EW0e+QZj++2g=; b=QIzLrU/m78Am1sOx5mY0YkqaeEx3/Rp1JHTLqUT4NYXXGnM+z5JuPBEWgWmAdGY2v+ FLjn8YOSJpQ/8pdh4PL5RsyNuuL2qhJSlCqa+HrGRPTMo8H3dAIxcIEYxuzxAdHhjM/V MrUkdYlaYYsYWhsfgT2dpjfPvrNxpSJNbGa1e75JHxq/RiCF9nUXojv03bx6x6X9hsC5 5rPsvDpJ/VTwxSZBZb992QOlPumEy4frItbSfuJq0zUm73DAZlUag+Nv8yqVgEtbytaz BvQIppjyKYU6/hz+ApMCU+8YKtY0gYGjTtEyqDtZ0MH29TRr7huT26X7zCaapA9hwSPW Ylcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=OiCPXRde; 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 z193si61446695pgd.235.2019.08.12.05.09.54; Mon, 12 Aug 2019 05:10:08 -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; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=OiCPXRde; 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 S1728216AbfHLMId (ORCPT + 99 others); Mon, 12 Aug 2019 08:08:33 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:43589 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726714AbfHLMIc (ORCPT ); Mon, 12 Aug 2019 08:08:32 -0400 Received: by mail-lj1-f195.google.com with SMTP id h15so4376221ljg.10 for ; Mon, 12 Aug 2019 05:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=PrelaoJ6TnJpyofqhLMulqO3h0BlAQ5EW0e+QZj++2g=; b=OiCPXRdeaG94Qr9u9ukwqvx3KBFqWbW4sX74KOqEN0Bf9UJwt+go/99IkXlvRbk4Rk uU6nhgFLqGnAEJBtCleI/rc1b1UL2gk+GZX0K6OSofL+GhLZND86GEIV2yrrfAdLprVy eqRkYe4H3pg7+VaGKkBpleF/az4WPRW7dtyayunBzNcXuuFDPCWLUPP1waf6OiQqUcxA LWnTs/82IN/b8ACPwyUbDffUIy8JuTpd2nEvNKkg76noxflMTp0EXLmoHS0MMGPpONLg OeSRkFmKDxL2Z0oC8nIluv7IJ0K8aroy3N6Jyjnxein3FPjP2ABrvmDN0Xwkhl8oAfP7 rLhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=PrelaoJ6TnJpyofqhLMulqO3h0BlAQ5EW0e+QZj++2g=; b=P15MI761TaP885fF6XAF2+V/iDC7uVQ5ETElp3Njo4fJHRVBC4RP9SnNBotfHLk01g XWp1l0D67wrg8VfrBPLK4DGgzut9JhzgEgPWb8OxWF7i4Pf73Rc+851bB5oDnJyJfE4d ziCp6UszeC7cr6RLMIcftfSsMO68csA2vexneigacT/PGYwQ+Ax+qmTaDQlb4lHwmtSF hhSA/MqZQXvKz3xI/E4uYITmL8LjrtfVgCNm5rZ/NBYQf/U42kDRBKLsNMeibiLW8PNH 0xqg2Gap5Q1jQJO9Hsnuu7TIs3XGJZNX14FaCPs4bnEApAqU9WkAQpLkuOEz3PsX1XqL fj9w== X-Gm-Message-State: APjAAAXAKimqyjfw6hXVW1iOb6bPhFl6+WUIXyiWYW6pDaJMFN/DYxN6 WR02RSswTZNhQIxGJ0vf39p863dnof5whQ== X-Received: by 2002:a2e:9cc6:: with SMTP id g6mr4102305ljj.22.1565611710464; Mon, 12 Aug 2019 05:08:30 -0700 (PDT) Received: from localhost.localdomain ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id o3sm19019132lfb.40.2019.08.12.05.08.29 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 12 Aug 2019 05:08:29 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Gajda?= To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ] mesh: Fix model publication get Date: Mon, 12 Aug 2019 14:08:25 +0200 Message-Id: <20190812120825.29610-1-rafal.gajda@silvair.com> X-Mailer: git-send-email 2.22.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 --- mesh/cfgmod-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c index 4447b1cb1..dbed7e03f 100644 --- a/mesh/cfgmod-server.c +++ b/mesh/cfgmod-server.c @@ -93,7 +93,7 @@ static bool config_pub_get(struct mesh_node *node, uint16_t net_idx, ele_idx = node_get_element_idx(node, ele_addr); if (ele_idx >= 0) - pub = mesh_model_pub_get(node, ele_idx, mod_id, &status); + pub = mesh_model_pub_get(node, ele_addr, mod_id, &status); else status = MESH_STATUS_INVALID_ADDRESS; -- 2.22.0