Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1053466pxu; Wed, 2 Dec 2020 09:50:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwn5eRlD6b+UR656GKP1TVhyEWtUo46kYztMQs1BWL4HoLbcLZLvdQdPERWYEqr+RwmPXQB X-Received: by 2002:a17:906:ed2:: with SMTP id u18mr907915eji.1.1606931449305; Wed, 02 Dec 2020 09:50:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606931449; cv=none; d=google.com; s=arc-20160816; b=Y9NwBNKpXPvfdcj16nLZOnqlUsNLOzwqXW6dviLpM3RxL2Gc9An457E0XzssXIOmv+ ZUdwvILm+/ISjSiY4fbwqDtkdB4jfsdjG8FVOQTU5GrLBgfy8iXnKVMHeVkNKDgt6Uv6 2X8YJJL11gtkFgoxTYRWPTyW2RxmKHYaZttsXuKOf6Hd56cn22F2FvU0AcgEgnGelAjX TqBty0otKi+rauBKPWcLpD/6A7rk7t/J/FDo2ZzKYOOYW2hLFVycvjBoZG/B+UAfO4ux d95JefFjzV5G/Sw+SmZkh1sVVtALboE9wBPg9PJmbfpJgVINIEZiV2FqVgUVhKfEFbrC Ro5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HO7PjkVgeKh69coO0RqIL3fZq/8fhIMc6jpEVnWIV+k=; b=UuewkmQbuBiTRa9bR93a33IueInP8P004xkI8PXLg1sb9CdylQHvQxulppEViw27xc y4fG5n9BeYgVF7G6pGGX4FtrhadZB3D0lponuhALB7i2HyOwxnqhuV//AY6+4ItTl0Ke UkteIkd+eqVKx51acvmworsKKqQkNClhznhqGRf18t4rRUiwI4MstrDYYvoHy2O6eNkS wxuyeguAt0r8x4jUeTIc7xyzK9zn9ia6RCjTGQkIezcOhujTqbgTxsnDwI6t1aJo4ITD TwtoUkvydHJ/O3Ef4WQuLp/iar8KTaHAz92OZIkS44uKt37Nc+gtpTW9zRMi4FyD2Lgq hb8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J+FBFH5l; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb31si388624ejc.465.2020.12.02.09.50.25; Wed, 02 Dec 2020 09:50:49 -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=@gmail.com header.s=20161025 header.b=J+FBFH5l; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388302AbgLBRtV (ORCPT + 99 others); Wed, 2 Dec 2020 12:49:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389093AbgLBRtU (ORCPT ); Wed, 2 Dec 2020 12:49:20 -0500 Received: from mail-oi1-x241.google.com (mail-oi1-x241.google.com [IPv6:2607:f8b0:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03559C0613CF for ; Wed, 2 Dec 2020 09:48:40 -0800 (PST) Received: by mail-oi1-x241.google.com with SMTP id f11so2448996oij.6 for ; Wed, 02 Dec 2020 09:48:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HO7PjkVgeKh69coO0RqIL3fZq/8fhIMc6jpEVnWIV+k=; b=J+FBFH5luIhxVwQSILmoI4yoBKCV67NI6AA3mv257oJ5j8iagR0fOKJ9nF4+J5dK95 rOnsWevcZ7s/2QSwH4aAhtKjG+3jCYmY5YSG3Wz8Tl95KcJiamX9jwvR9wJkbMAdPQ/X miwX3LidTxxXYvTdOAhl9POMqekjF77aSt/PvhdRM6YIfJEY2sp5+qAKB1KnSxhSpDu5 QBQk2Bd5PA7vmZKgCpwtbosGGKg1OuyV8s+LkPHseQN+yYnQQRIwiaGBBoQ4tBdE8Lbs XQFnTwj4AIymPCpPShHqvP2bvPbYFnVX4t3gTDbUPOBGjK9HAig2UIL661UytBcxCu9d NziA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HO7PjkVgeKh69coO0RqIL3fZq/8fhIMc6jpEVnWIV+k=; b=YGyMTc7WznEPohotxg18WpsVF6X7TUjXdGxUdbGGvcbtledvYPz2pSR6A00FL0MdUu HrcWLeQDH+hZOQgYlY1ay8142/UWJULf4luf0l9M3N0jiaAadfBHykoGAtrcRhP2RWOF Pi2EHNQvX5fsjJ6ACMdGOL6F60ag64Vu9BsyXKE+WTe1NA90bhncC13NsXXrJdAL4+kj GSIRLnP3LB6EDSEVhFd39FZjKlNfddQnAtMB6Kw6NTcjAlKM821I3TEWwjxoc19aBqyT TwbFBncuzODEaBmWvDl7tqmquXyjayKqtYDolJZ6thr00aV93K0bqIC05dZlx68phKyG llsA== X-Gm-Message-State: AOAM533bAB3j0QEgq+WBmOZRUsXOtzQbDC1hU4vjWvemA8tfEY2JWYYC AQGYOlkTDlSOREcpEsHjAE4hlsUXmQF89gAOfT39eXha X-Received: by 2002:aca:5052:: with SMTP id e79mr2410960oib.58.1606931319273; Wed, 02 Dec 2020 09:48:39 -0800 (PST) MIME-Version: 1.0 References: <20201202011930.2130671-1-mmandlik@google.com> <20201201171838.bluez.v1.3.Ic1f25ec863fe218390cfbe5e5252f787a4475d3b@changeid> In-Reply-To: <20201201171838.bluez.v1.3.Ic1f25ec863fe218390cfbe5e5252f787a4475d3b@changeid> From: Luiz Augusto von Dentz Date: Wed, 2 Dec 2020 09:48:27 -0800 Message-ID: Subject: Re: [bluez PATCH v1 3/3] client: Fix add advertisement monitor To: Manish Mandlik Cc: Marcel Holtmann , "linux-bluetooth@vger.kernel.org" , ChromeOS Bluetooth Upstreaming , Sonny Sasaka , Yun-hao Chung , Miao-chen Chou Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Manish, On Tue, Dec 1, 2020 at 5:20 PM Manish Mandlik wrote: > > This patch fixes bluetoothctl add-monitor to emit > InterfacesAdded/InterfacesRemoved signals correctly. > > Signed-off-by: Manish Mandlik > Reviewed-by: sonnysasaka@chromium.org > Reviewed-by: howardchung@google.com > Reviewed-by: mcchou@chromium.org > > --- > > client/adv_monitor.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/client/adv_monitor.c b/client/adv_monitor.c > index 8e81857af..1d1745831 100644 > --- a/client/adv_monitor.c > +++ b/client/adv_monitor.c > @@ -602,8 +602,9 @@ void adv_monitor_add_monitor(DBusConnection *conn, char *type, > adv_monitor->patterns = patterns; > adv_monitor->path = g_strdup_printf("%s/%hhu", ADV_MONITOR_APP_PATH, > adv_mon_idx); > - if (g_dbus_register_interface(conn, adv_monitor->path, > + if (g_dbus_register_interface_full(conn, adv_monitor->path, > ADV_MONITOR_INTERFACE, > + ADV_MONITOR_APP_PATH, > adv_monitor_methods, NULL, > adv_monitor_props, adv_monitor, > free_adv_monitor) == FALSE) { > -- > 2.29.2.454.gaff20da3a2-goog Nack, the right fix here is to use the real root path which is '"/" just like is done in client/gatt.c -- Luiz Augusto von Dentz