Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp200384pxu; Wed, 2 Dec 2020 19:49:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBh4vMUR9a0EntdpJOTUpc9vQavrHQ2VNFpbDmp5EpxViz7P0jDVWoWfyJh1NAPrJ27PJP X-Received: by 2002:a17:906:c04b:: with SMTP id bm11mr823964ejb.394.1606967363318; Wed, 02 Dec 2020 19:49:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606967363; cv=none; d=google.com; s=arc-20160816; b=qsogFawDctb96b7FaThhTIVQX8Ny5RigyQWAENgM3HWICB9NzWr420ypFeNOQ0tJML LXs1RPiIAi+1Mat2SrdM0o9hwhV2fU+wCoEPnzPvoJYB42H3wZvOuE5D/7sMK4FnoyZy 55YCS+sMdB4z/JoWsg3pWfL06gsZhBfzDbqd4If/LOkfU8br/xgkWpbjTcT2iFCmABeN 8qNZHX6wlWdzWFEqwZTFJAI2lh/A5kR79r2FqmXZMtc/0jrG8Z4lMPDcFEtAgGVuj52o zGFMpCptNaiBjKFf9atjvXWeerrDMZodb8DnpaPHuw5JJad/V6FFCAhuVcCPjMxc0ics G+Vw== 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:mime-version:message-id:date :sender:dkim-signature; bh=HrscAejiPtaiY78VeFUfBvygFWbXvuDCBIOPXXdZXXw=; b=jdHBdAiPkoAxHNX1iJ07qk74S+tH6DUYnjbBGOgUCu6Lpbxpp7HgHms3dvMB78kglK DN1pfBLiihXEyEra7mZ49pX2pio0ZxCDE32SHAAZn3I5I06PozP2UB3aQFP97hqAmdlL TwTqksEu5fvHs1RXzlU+2hagpzUMFq+0ZFp/rszG+7uVSGkMq81baPjdUDJZgFUcuzOa TgBtuqDwFlCipOhJT5bcaMlXyjAbe/GB2gIW0mo1FDigxy7vTLGT2NNqhr0DU+12FB93 d6AmS2hOWdUYITIuQ+uyZH3GK6qPxYbjxsflxWA86/BDrb95TtA+cGfYxCBoXIcM0Ymn xJhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=I3BAo+CQ; 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 bs24si205601edb.519.2020.12.02.19.48.59; Wed, 02 Dec 2020 19:49:23 -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=I3BAo+CQ; 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 S1726923AbgLCDrx (ORCPT + 99 others); Wed, 2 Dec 2020 22:47:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726734AbgLCDrx (ORCPT ); Wed, 2 Dec 2020 22:47:53 -0500 Received: from mail-qv1-xf49.google.com (mail-qv1-xf49.google.com [IPv6:2607:f8b0:4864:20::f49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBC4DC061A4D for ; Wed, 2 Dec 2020 19:47:12 -0800 (PST) Received: by mail-qv1-xf49.google.com with SMTP id b9so595075qvj.6 for ; Wed, 02 Dec 2020 19:47:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=HrscAejiPtaiY78VeFUfBvygFWbXvuDCBIOPXXdZXXw=; b=I3BAo+CQDMKenAVWONaVeKoFj1nJ8aUQrxRmmOyyVqjo3fUyRisox8QicXrdflSlgi pj0JoLQcCO8uzVDf0/2AkNCXJZCmiuuBlEkYMTEcdNt8bFgu19xwhahc6mbSBEtPljI1 LNDstbXvDXDPWHnCRYk01L8IXshBRGBv70Nrov3QdFwU+Iq78XVekHgOVUUBOTSuejQG fp18db2thE2YyZj6Z5xVzwige8Gob4S8mP1AJkPVFo9WLTMoCzxiKwy7PcYbOrKeGJTy MNjZuhLJznYiN5K9cNrlYbsvJTIkIK9vkSo/y00Zw0t7rIze18FaImihp4BpNLNwkldO K4dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=HrscAejiPtaiY78VeFUfBvygFWbXvuDCBIOPXXdZXXw=; b=ryjGQ/UuewtKZIZbfdxUdfjucP5H6ojog/5imlepVfhUoutucl/n8RPL5H0/q7kwdk UOZB2fVIZ/uNFv3a0hBuGrR3UMAOpmlsHoCFrRa/OV7oybUQ9lAssIJpfhY5vkHKj/ld Kn/XPA5CBbTqLWmgLI+E7PjSWQXlhEkFonRCgkQO/A4cW1zQzHBHJNnzfH4eKi6ob5mT OMtL6mToEdkps/L+MDxVpMnA552pro+Yv2ICKnl3npGGyzs4Dk69sWVwbU6AM8z95s0f vmU7rbwTl9yBlgZxxToL+GNGh346gbsgfzUYtchsxwgpgQgHVLDhKTqthbWp/hs2kpcB PXTQ== X-Gm-Message-State: AOAM533w1+f2JHa69cpvp0tzfm475xFI/rD8Dpw3DU/Q4AQU7flnLU9v gDqBxCAuzE4v88sHIowBu89xAIx/2UE6og== 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:bf44:: with SMTP id b4mr1322420qvj.30.1606967231782; Wed, 02 Dec 2020 19:47:11 -0800 (PST) Date: Wed, 2 Dec 2020 19:46:51 -0800 Message-Id: <20201202194547.bluez.v2.1.Idce75740a54d8a860450da8a7a21d55777c87ae9@changeid> Mime-Version: 1.0 X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog Subject: [bluez PATCH v2 1/2] adv_monitor: Register client app with app-root-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 that root path. Because of this, InterfacesAdded/InterfacesRemoved signals emitted by app - while creating/removing advertisement monitor objects at the app root path - are not received by bluetoothd. Use g_dbus_client_new_full() to register a client app with the correct app root path. Signed-off-by: Manish Mandlik Reviewed-by: sonnysasaka@chromium.org Reviewed-by: howardchung@google.com Reviewed-by: mcchou@chromium.org --- Changes in v2: - updated the commit message and title 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