Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp501929pxu; Tue, 1 Dec 2020 17:25:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHXe0QEVTSyzPXpjywQQScnUcj6sGIrZ30plefndL6w3cOWXlQtXzovNhS7fNNtUOJZ4+K X-Received: by 2002:a05:6402:2377:: with SMTP id a23mr402191eda.34.1606872329457; Tue, 01 Dec 2020 17:25:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606872329; cv=none; d=google.com; s=arc-20160816; b=aRORW9sZ2JnoypS/53zCsD9sTCdsaYaeTGEVkssP+DFM9FPdGtx5BlGL35deYm686k m4j+8mausV5eRXW6L+GL85yX6GhsM0oQacpxRzNtDQyzs+KiheN8vuuZtkPqVDceftt4 AklEuRcwBOjJBruqpUDXZr44WtK1y8b05TV6qCcgHVS94Xax/5n78Cb3cSMO2IH34Nqu EMKoiM0Ytd2ldey/djIO1HirgrugiGsLoHFAu3OvLasJQ34WPCx3XkyVX7Czxosmu8Al m4GXQ2/8hMocBqQ2f+LCd8U3Pw0rGlCCJQfvZxD58oN5ewtumENfm4N0ngfihfmb66Fe lG8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=pOsqAx9KPl4W/43b5WZZwrQMoJvSXKzPYsLT4nmTWgA=; b=BFBNwQSU1Nk5dXvyi/J0QLoSWkbkirbrvjXX6yGppVGYjMdJPoKQIWwGGfKGACDjd5 qtoUpV1c4iu71lJt2LlcDi0swizySR9Xrm15qAdvQiHJo80FQVuAK8NICFTaDrMsJcGO iivQbO3NdA/49p5knopzo/waTO63PzTxW6OXQ64wK1JNQ9mIA/O86P8iXGA2OCUFfNLS B9EWxFcqSntdmMFYXw4XKvvXiLQwxtPP47SwLQtt0vw8CRdPNn1e5X9A6VhftbahbYpk qjiegiORhy4udV1GzA4ePKBpvdRYAb7VhIdAvs1diT1Y1uOtPoI/0IgTO6KwvRgMnWMg 7miw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XD9SZa61; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si1109920ejr.2.2020.12.01.17.25.05; Tue, 01 Dec 2020 17:25:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XD9SZa61; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727767AbgLBBVX (ORCPT + 99 others); Tue, 1 Dec 2020 20:21:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727731AbgLBBVX (ORCPT ); Tue, 1 Dec 2020 20:21:23 -0500 Received: from mail-qt1-x849.google.com (mail-qt1-x849.google.com [IPv6:2607:f8b0:4864:20::849]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D642DC0613D6 for ; Tue, 1 Dec 2020 17:20:42 -0800 (PST) Received: by mail-qt1-x849.google.com with SMTP id z8so26778qti.17 for ; Tue, 01 Dec 2020 17:20:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=pOsqAx9KPl4W/43b5WZZwrQMoJvSXKzPYsLT4nmTWgA=; b=XD9SZa61GnAQqQK3Mc++en5Sv5YwcHSe7c1SANnLV5XJOJJcofV7M6DehA29A5WOxK Vb43lkOkze4kKwO40CO/AQRo5zE7ZCjNl9sdLXepyrWcop54V5/ZLfEt1Qx3sWblu0ek YYDjV6ftyD0K+/ouFZUB6J8Wo7KRSzMfDoXmXxkM4toj5FwOl+jjxaJo+UEdQirPWmLo 5vK/pXiWmuX8RqlnKXW9w+ObEg9yRM2D7k2pDb5dcoy59mOoCoXMbgsz/f68o9t3HdHN 6RXjSiwLibTqT0g4RIzjANaJZvudOAN52SZiR7HXZYTFWRJMvIJhNXXBXDqsFaNaC+r4 JEZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=pOsqAx9KPl4W/43b5WZZwrQMoJvSXKzPYsLT4nmTWgA=; b=BYJKS92ii/rECQg8LaSPMDfvLVWwmbXTqItT7b9KDapGrLKCdaH8v/3kn7ym5tP3xb JwiaSIoxuL4woYRlNHQp7A1PlWDPMcAs3Q13Um8NDuOPYOVMqrGDoATEzSUrSfNiceFu 0ItXgMaq7pzOYo3ApdK0jZanKNxjnB0tEbUNlwYNc7YvVpK9MvkjUCJs2JMhiuiEQGXa 2GppG9TVNvKOMQqoEybkge0TXHB1P2JRIzdsbm3tsZN6Fbfs0GsNQX+tcF2NZKrPf5T/ 7AsPtcBE2JS0BQThk41W1TzGE+zvA55YdGgcLxRelZIFzzpGR8j2GSClseA+SDM2rBST /VJA== X-Gm-Message-State: AOAM530kya5oOUwbwKR4nY/vJqC3R32Wpf9dWBCHzUPl21KrJiEDD/Kg Wm1KHOt7mfHTAtX1yIXz25pYFuC4G6RAEQ== Sender: "mmandlik via sendgmr" X-Received: from mmandlik.mtv.corp.google.com ([2620:15c:202:201:f693:9fff:fef4:e50e]) (user=mmandlik job=sendgmr) by 2002:a0c:a802:: with SMTP id w2mr304834qva.9.1606872041972; Tue, 01 Dec 2020 17:20:41 -0800 (PST) Date: Tue, 1 Dec 2020 17:19:28 -0800 In-Reply-To: <20201202011930.2130671-1-mmandlik@google.com> Message-Id: <20201201171838.bluez.v1.1.Idce75740a54d8a860450da8a7a21d55777c87ae9@changeid> Mime-Version: 1.0 References: <20201202011930.2130671-1-mmandlik@google.com> X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog Subject: [bluez PATCH v1 1/3] adv_monitor: Register client app with app-base-path From: Manish Mandlik To: marcel@holtmann.org, luiz.dentz@gmail.com Cc: linux-bluetooth@vger.kernel.org, chromeos-bluetooth-upstreaming@chromium.org, Manish Mandlik , sonnysasaka@chromium.org, howardchung@google.com, mcchou@chromium.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org When a client app is registered with g_dbus_client_new(), bluez root path, i.e. '/', is used as the app root path and signal watches are added at the root path. Because of this, InterfacesAdded/InterfacesRemoved signals emitted by app while creating/removing advertisement monitor objects at app root path are not received by bluetoothd. Use g_dbus_client_new_full() to register client app with correct app root path. Signed-off-by: Manish Mandlik Reviewed-by: sonnysasaka@chromium.org Reviewed-by: howardchung@google.com Reviewed-by: mcchou@chromium.org --- src/adv_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adv_monitor.c b/src/adv_monitor.c index fc058dbf1..a5bc61c48 100644 --- a/src/adv_monitor.c +++ b/src/adv_monitor.c @@ -775,7 +775,7 @@ static struct adv_monitor_app *app_create(DBusConnection *conn, app->manager = manager; app->reg = NULL; - app->client = g_dbus_client_new(conn, sender, path); + app->client = g_dbus_client_new_full(conn, sender, path, path); if (!app->client) { app_destroy(app); return NULL; -- 2.29.2.454.gaff20da3a2-goog