Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp940121ybt; Wed, 8 Jul 2020 16:00:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4IBwuAuhOUKjWXRYmRzYel6YwnzeZuYifRIeC3hDTTSXGVwwkwKL11pcp6nzPs2hmM69K X-Received: by 2002:a05:6402:1b0e:: with SMTP id by14mr66753274edb.266.1594249206482; Wed, 08 Jul 2020 16:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594249206; cv=none; d=google.com; s=arc-20160816; b=XsxWPh8b4Y1PWvvCds3x33zLZn40Ct+/V+PfNcfZm74SydWunlKvZU5eFO/cMdo8hq O26msCuwmjsGy99/ZLAN15qiJsAfBOTcfOAgusiDk5UAG1HUGDgCF4hJNahoyTRgjT9D hv0Ais81FQpO/vRjbnoMH44O16MFhocHcOvY8jJ67Lp/wVwKKJiwXulyoiJzMqJzPv1c ME4kOqua1E5RI3pDNWp6HZDDbfz3ibvhBfQiGny2RxgUxFvLnU9VYaWS/9OEc6mbQK3c QC8x4BLynrEcOq6cN1tkkkWkn1jrVgt7PzTOo4l7AB+50NS6LGDDQXUbDkwUj5cUgkIk 3Dtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=c7QG6h/xauqnUlFYdVCs+cNioLLC9h6T11l5pPM7bJE=; b=xlbU8R/CyM2R8AQqkHgjDc9u2+wr2sH5iWZJHNUGf37SKQydKImkWxqTc+s+qw4tE8 FnO0f7S7SPrfJJu8ce/3OOVHGdc5NU4bYBE1sGXil2bmxKYEULS59+bB4y9Y/0hoW1eo XAlX2hUg+P4u3Jyu9pmiA96DFdFCYavNgb9dfzJkGz3tg0ECiIUl2Bd7tSLJtOSEj+x/ gkBuAP1osOuxfI5Z07DTGdRtSiFtcNd7qJyTiDo5P4JKRQpk6BvzSwvqTkY5W8GAq9JX s3IPqIC+ytQc1r+hX8nWbYmIDkHfbKJfs+PigR4j1rIVViazFzudYFMXs0TqLLMo286N 0P0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qRziQvtm; 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 m23si816858ejk.664.2020.07.08.15.59.23; Wed, 08 Jul 2020 16:00:06 -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=qRziQvtm; 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 S1726065AbgGHW5U (ORCPT + 99 others); Wed, 8 Jul 2020 18:57:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726044AbgGHW5U (ORCPT ); Wed, 8 Jul 2020 18:57:20 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63FBFC061A0B for ; Wed, 8 Jul 2020 15:57:20 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id u185so139342pfu.1 for ; Wed, 08 Jul 2020 15:57:20 -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=c7QG6h/xauqnUlFYdVCs+cNioLLC9h6T11l5pPM7bJE=; b=qRziQvtmDkqWDt3vxVoG4szjKQ+s5SKmA4/R9nywha/B836KkdMPHi345QOkIHh8rC Pd7qnFiIF3UOV3QiB0ES7Gl89QDjC2rbcSZ6A0PWXsiX25sVicLyxvJd8/TwHl2M1SdW 9CI3XxeEHD+3fFDb/i7ctOSN6z/sGr2QJ1G7kgRqsWb8Ze2AIAlNwpEPeLo92Yv6Rxj1 LRLUu7frCf4xtrpr9U0dQP973Y/1D5asY5PEC3dlX0pKhcznHEv2ZJbuwEM6qU5i5ebq Jj+S7pGybVyb1oOtcsOsl0rdh7QoW4W1xG2w/YrSJsOejD1HMtsCFvkOYDjmCFkD7+1t soFQ== 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=c7QG6h/xauqnUlFYdVCs+cNioLLC9h6T11l5pPM7bJE=; b=e5WyGNC3o1Grtcc8TEoPW8WYz9eJGMOB3J4dIFtocGL/n+lhxHtk6QXughmak3VJMh Az3Z6lii/EBctAL5K8bC0puxIHQPK4/zKCxd6zI79RBux0OEZRseYRjoqXHeDFJSl353 czVALy06Vb90kz2gQKhzIOAKODk7P2cj3JqrnsA863AMCRnQxm3mTjskEnzkGu2KPPcF Dp2H+WXRo71K1CQJqcuI45wVSfyTAn6jvwXiFOF4jUg3FTzYJI1ztyr8Ou4k1HA4G90S 98A1jtl+qcL0Ot8EjkRjhPYG4VhbGax9LyLYLKjiEwoIPMm6oVFKNVjOUzybnSy/Lmxv AMTw== X-Gm-Message-State: AOAM5318G21TgjSw/TiKYNokwknwUUN/0Vbofho90QBVbfOUUNzoRu9r 0y2tv0hNhZrNQOWBAv0UWyWseGgyUu5IsOcjVnA= X-Received: by 2002:a62:4ec8:: with SMTP id c191mr20506953pfb.15.1594249039873; Wed, 08 Jul 2020 15:57:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andrey Batyiev Date: Thu, 9 Jul 2020 01:57:06 +0300 Message-ID: Subject: Re: Temporary device removal during discovery To: Luiz Augusto von Dentz Cc: Bastien Nocera , linux-bluetooth Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Luiz, On Thu, Jul 9, 2020 at 12:14 AM Luiz Augusto von Dentz wrote: > The delta logic might be a nice addition as a separate patch, it is > more for detecting devices disappearing then actually cleanup during > power off. No-no, it's not about adapter powering off. I meant that (external) devices never disappear from the bluez device list during the discovery, even if the (external) devices are turned off (i.e. they should be purged by bluez). So: - bluez is central - bluez is discovering - peripheral appear for a moment, than disappear (i.e. peripheral would be turned off) - bluez would not remove device from the list (at least until discovery is stopped) Use case: - bluez is monitoring environment (discovering literally forever) - peripherals are brought in and out of bluez visibility range - bluez list of visible devices grows infinitely and causes problems (hundreds of devices) Thanks, Andrey