Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp519165pxv; Thu, 24 Jun 2021 13:14:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykHGxPIUR3f+9jdhkwjjwB+aMKMSbYM22/XE/nqDH4X4fwvRvQKSLEXDdSZdhIk6m5UdQL X-Received: by 2002:a17:907:1c06:: with SMTP id nc6mr7005694ejc.345.1624565675691; Thu, 24 Jun 2021 13:14:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624565675; cv=none; d=google.com; s=arc-20160816; b=ibMv5cUhw/dh4mcGOYZhMn/Ts5DlO6mdkwt0jIjnGgKT+xvM3Ov8SlwGv8eVoK32CH CqXYLAXDUa+LNVHhvYma++CPzC8jPghKHaAWS4FrW+e70nNPYPTGV9e0FtGCvcG15T7t N7QOt+LVcRQpAeKtyD/CqmYyDX5i7vYBkY0bSanBTkg7Asv4B6GfPakyADnyKH2l6aMa 39M93oCvFquJvYIo3Ff6NvXg3AcnYa6tPgeBd/yfjkXWRAefHqaqrd9fMi2Ge9BQJiHy 6fPTo3ahE9unSNuA8SRBVXtQv73zxhySx8ti8ljPGi34EcwJvoKanX/yakTtPvusVu7u mgRg== 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=s7V0Dh9pI1Q+r/yo42CJo946ge2GWiuhccIkM5LYG58=; b=f1GHtvJX/kQmvNOgWooQ5shKXNzcizE/sWc5Ypzpez4Qlf/0+qlKEogwztwZdGEpSL TvHhj835ioR8tmkSSmh9sWOceAv6BeoUajohLLJkO11MSl2ZIUWnTsJuT0BdUsIBn4Tk OdJtESuBkC4gJ8QclLaRZQLTmEiXydinOT5yR2UNT23ktjDrLdKIqH20pA1D4/+fGLvT 53LjTSm8wNAAgvywJyfDfVBdJCc+CHHK/qOUCv+yfAqDHIdzh6JISa2QiWmncs06md74 xhLMkXFMd7ogFEmhPq73uIeLPD+OcPkUMsk+IzU9g0dy7hff5eR090tLEAOu5DkYlYLy AFGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZmU2urSu; 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 m9si4102064ejn.683.2021.06.24.13.14.03; Thu, 24 Jun 2021 13:14:35 -0700 (PDT) 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=ZmU2urSu; 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 S232582AbhFXUP1 (ORCPT + 99 others); Thu, 24 Jun 2021 16:15:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232565AbhFXUP0 (ORCPT ); Thu, 24 Jun 2021 16:15:26 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63DD3C061574 for ; Thu, 24 Jun 2021 13:13:07 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id s129so1121255ybf.3 for ; Thu, 24 Jun 2021 13:13:07 -0700 (PDT) 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=s7V0Dh9pI1Q+r/yo42CJo946ge2GWiuhccIkM5LYG58=; b=ZmU2urSuX53mOuKsNkW2AHcZkbgcChO86mXCebjuV6b4gzU01R8t7LqjGg6aw0H9kj +dyHy0xzRWZ+OAK9duwEwMRUu+22A6TFEjetXasgAfJMqd+wARtu2uRvGg5a7B9EFGAk 0ew4lXyWetVzH+bADP1+YwNcr9mwmQmo/Aa+yHTayPBb5FQ1F6F9gIRKdYZFTIks89Jk hqv1vd5Bcdkh9r1KyRNJ88FGDzmLxWrCNMcK8W57Taagz4Duv7GoiQb9hw06pli0LCF3 V5x3Sm0NaqjASHqeTr7sFvPAVkxi03dzxOIp8C6qAe1OIX/YkBatpQJsxkX9AOBeDlZW AyqQ== 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=s7V0Dh9pI1Q+r/yo42CJo946ge2GWiuhccIkM5LYG58=; b=Ng4TjqPozi+PNLeNKDk5BTW5mG8PfaACGZT6Rm1CRSM2k0EJIVpgjFQqDCmeP9Bcdq 9Kmkc3ruOt7jQCgzvpU0terzcWoYIZbPKXyC7RkuwTY8QTgzHXu7ObYwSHfnxH/3bNYi GmjL/CAQLFrHywZJSS66x5mu9yPLkVtNl/CqqM3mljwYJRwsy/0fdFWGhx+BL+2D12x9 6luArlRB5leONNMmPCqDfrL7ejrmxa4nGkyAJZy9ySl8Yu8zcIsESYcQvojdzKCkHtb/ +mq1KOkOudqA/49kSiy36yaEwq3rjvtdgJMSX0Bc9b2SZ73Mkf+olGg3rI6atO5dCkOW 7sBg== X-Gm-Message-State: AOAM533e+ty7LEItP3ZPuvwezQUwmCPwDmFtP68BRaiZhYJDh4/j6bvO RTys5Sk1VEE9sVdYxq1F4Unb6AlEWTOAVenPlPI= X-Received: by 2002:a25:e80f:: with SMTP id k15mr7245653ybd.432.1624565586603; Thu, 24 Jun 2021 13:13:06 -0700 (PDT) MIME-Version: 1.0 References: <20210617215758.BlueZ.v1.1.Iaf42bf6ccbc1a06a9fb7f8da55bf7f2ef37349f2@changeid> In-Reply-To: From: Luiz Augusto von Dentz Date: Thu, 24 Jun 2021 13:12:55 -0700 Message-ID: Subject: Re: [BlueZ PATCH v1] adv_monitor: Avoid skipping non-discoverable dev on Monitor match To: Manish Mandlik Cc: Marcel Holtmann , "linux-bluetooth@vger.kernel.org" , ChromeOS Bluetooth Upstreaming , Miao-chen Chou , Alain Michaud Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Manish, On Thu, Jun 24, 2021 at 10:10 AM Manish Mandlik wrote: > > Friendly reminder to review this patch. > > Regards, > Manish. > > > On Thu, Jun 17, 2021 at 9:58 PM Manish Mandlik wrote: >> >> Do no skip a non-discoverable device if it matches any Advertisement >> Monitor. >> >> Reviewed-by: mcchou@google.com >> Reviewed-by: alainmichaud@google.com >> Signed-off-by: Manish Mandlik >> --- >> >> src/adapter.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/src/adapter.c b/src/adapter.c >> index 98fc78f1e..2175120f4 100644 >> --- a/src/adapter.c >> +++ b/src/adapter.c >> @@ -6656,7 +6656,7 @@ static void update_found_devices(struct btd_adapter *adapter, >> >> dev = btd_adapter_find_device(adapter, bdaddr, bdaddr_type); >> if (!dev) { >> - if (!discoverable) { >> + if (!discoverable && !matched_monitors) { >> eir_data_free(&eir_data); >> return; >> } >> -- >> 2.32.0.288.g62a8d224e6-goog >> Applied, thanks. -- Luiz Augusto von Dentz