Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1173582pxj; Fri, 18 Jun 2021 00:54:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxALPySksuu1U5UBLjRZ/DMMarRpns/tkBF1yrkwUfy0KxoOi4affbNCB565sb7jHKR324 X-Received: by 2002:a02:c906:: with SMTP id t6mr2141956jao.117.1624002888144; Fri, 18 Jun 2021 00:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624002888; cv=none; d=google.com; s=arc-20160816; b=FOBzmZWn3wPFODAF5DbT0atzs8LZP2qa9w9868h0YEMm6kzC7pcOfLnn3yxrkChKCF aVztAIZYAawh0/KHpmR5m4ZB5HAFseg6PAInpm9y5MrOg05bJYmQ2hjOVZZGkEhuIHVo fqwr8RnSktc5kWiO+ln5LKHI41PrcK21yG3xw+oj24PJoxbWYHkHe60pQZKLGsm6mBO9 RE8GrimTeulOaTM+oz1DlYpIF9Fa440hxL3rMsrlgeIjF0khpk/DyDWdYZUnKANwObuW o17MMNdEEwdJXv0kSuGFd9ktkvgoYtZlERTaogRNQfXGak64fBBwhBiDnplMbvHtMm+a 6nzw== 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 :dkim-signature; bh=X17qt7MhHUSEMu3p+ufn01XB2FZgaoigL7RLgxOKT2o=; b=d7OGoqtkaJwyG+vjWkrIY6FFk7fLzc3raWKzyrUMzCEnofeRd6T3boIjUEuxc3ANxy Fpfrh1jfprT2iAL9CLCP6zopOJdRW9lFT34jF4aWDZFcAKkuccq1hJQzOWSyNtMYLu5/ S5D3Fg9CAqmWB0deo4kmJienBVJaeL+RGSEkUGsXe8mkEp+Q8Su5gRB8UgijyjPxvPIV 2tKgQzVEfsuMO7K7uibAmJESYCCuWBHGfYxMtjQEHMyU87IG0vujlobaTHpsNOFOWpns EXt78ZMD3HNVpULICeMagMyimpSQgN9F98ITEXoZWpX1AZy4OlMOyxTeY0f4cycG6SSj bvxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=v3xfR5VF; 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 k24si8690602jan.49.2021.06.18.00.54.16; Fri, 18 Jun 2021 00:54:48 -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=@google.com header.s=20161025 header.b=v3xfR5VF; 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 S232132AbhFRFAX (ORCPT + 99 others); Fri, 18 Jun 2021 01:00:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231365AbhFRFAW (ORCPT ); Fri, 18 Jun 2021 01:00:22 -0400 Received: from mail-qk1-x749.google.com (mail-qk1-x749.google.com [IPv6:2607:f8b0:4864:20::749]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DAD6C061574 for ; Thu, 17 Jun 2021 21:58:12 -0700 (PDT) Received: by mail-qk1-x749.google.com with SMTP id 81-20020a370e540000b02903aacdbd70b7so4286568qko.23 for ; Thu, 17 Jun 2021 21:58:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=X17qt7MhHUSEMu3p+ufn01XB2FZgaoigL7RLgxOKT2o=; b=v3xfR5VFor3inQ9y7iUmw6uqb1AfuGY/sKcprL6RtvEY3kXNvvd62e3CWtaqyZtDhv TR520h/sb36e2eyAi+rqmSZCh1NhLYQFEjeAWjP0RbHXemwwHhLx3FPp/wnFmu/pkkYY O/DD/n+qKmYCO8wrkJ5MR32FgJ6ZU3Bx26tT/AGvtE5vx3A359GwrmSoHWoGH1lNHonv jjY6awLs5Ydfntghde1DSEVASU9J2KL5nALoKqt3eNZvG/cTLX7fN3wwc6iWAujn831K xgd6xPQUHLF/8XHPP4aJXebTuFqRdBbssXF+p+ALtTsjdcrygKOmKLgWjgbKTzG66Mc+ 0DLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=X17qt7MhHUSEMu3p+ufn01XB2FZgaoigL7RLgxOKT2o=; b=Zird7csxLYiRidMu/GmNHiVJqAV03moQE+4mgZYns8qBbppPGvG1nEWxzDiBQFm+V4 gEv4h8kMp0fDyIVt0G5iI/4NMA0WI5JYKSIk9H3/pA2JZNN66oLqD4nyVk8dL+gcCoP9 Iv4XlvVGcgxZzrmsP/SeNZI0Od7bKLl48O3MNp+Z7nL9D1OP8DNqZajf2I25ZN4vWUg5 f7adgTcN7lSdr+fqJvDjQi00mYJY91uLVplB9koqIJgnyrrslmc3RO2h1sB9wydk2Emt OHZd1vSvqKnEI0LOF4aFGWskoH9QuCVlysntTNjeIgWqwz2ej2xXNcBpQQSa5H6WeUYj uaAQ== X-Gm-Message-State: AOAM530MRm7zWUlLTuRAzz7SLhUCeGxzBl49HvSLAhGBvI3BYfQDjCtb dpKY6LM3f9WNZFwWrMHzc7jY2+XKnC1l9g== X-Received: from mmandlik.mtv.corp.google.com ([2620:15c:202:201:d84a:3484:47ae:4444]) (user=mmandlik job=sendgmr) by 2002:a0c:e8cd:: with SMTP id m13mr3690238qvo.52.1623992291017; Thu, 17 Jun 2021 21:58:11 -0700 (PDT) Date: Thu, 17 Jun 2021 21:58:06 -0700 Message-Id: <20210617215758.BlueZ.v1.1.Iaf42bf6ccbc1a06a9fb7f8da55bf7f2ef37349f2@changeid> Mime-Version: 1.0 X-Mailer: git-send-email 2.32.0.288.g62a8d224e6-goog Subject: [BlueZ PATCH v1] adv_monitor: Avoid skipping non-discoverable dev on Monitor match From: Manish Mandlik To: marcel@holtmann.org, luiz.dentz@gmail.com Cc: linux-bluetooth@vger.kernel.org, chromeos-bluetooth-upstreaming@chromium.org, Manish Mandlik , mcchou@google.com, alainmichaud@google.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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