Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6318352ybi; Mon, 8 Jul 2019 01:01:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7Vg3fzze5zppNZexBuMW9ID2yqrCPMFFI+w/O1XM1e1OePCuH0APQXQ/ViFbH6dzQGXYR X-Received: by 2002:a17:902:d917:: with SMTP id c23mr22662352plz.248.1562572862607; Mon, 08 Jul 2019 01:01:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562572862; cv=none; d=google.com; s=arc-20160816; b=yOmm0OYo2MX3ZiMHX4fF9cfdR0+b0IXbWbYPS1L98wUToDGyDbJ8beICrl+2LoY5d0 xN+UdN4ZJiy556PYyttl5d732yuKLyWBbLuJ22ajnVNiZTPhRBV+DgKHvUtOw2i/pE+F 6GB2VYKqOf1SgWRvhoRQaRY7aEgYbxqt2CghBO5t752HTCqNnbxKkvvptfw6RfSkvsn0 L27YJ0aNITMQRKfPHr8B6M6bcgdqrcxkgNB7sW3s6tyUcLuN+46zAkZ66k2rw6JcU9oY 3zinaLez0GJ7raQUMZhsntcgAR6hX0OsT4swhoPYZ6CzIq74f495ZWjBmWmEX5l4Ys0e j/Lg== 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 :mime-version:dkim-signature; bh=OAhvcCQaMh7H2QS0isqmwJnFxoeSY05Sn6R4RPHdl3k=; b=sVrWq8cK8N+z+xZleJ2siaF5eqQbGj+8YGDkXIrXmS4oIGFM1Y5QZGL1MlX+LnnqMD wkacnlKjpw0Eq+lvH2QHH31uPlhFxl4IeTTuYbtqsNJhONXBhD6u2Awra02bnNoc1S2L 8XPYJGAIDpNExPapiBsB7BHIeXwx7USoNvbCeecUZ/y5A/Ew5WqhfJCu6UbZ3oS7Mf4O GyC0zy57ajT+9nudla/mfxz3icG7Bqvkpwm2O08Tg50B6FHo8wIUXw/xhFepwaVWY8Ow yAzWJ+bFFbstvPzdc72h1n+hQEHd4GEsGW8VmKErax71Zn+ai3D3wPfkTnaB08HlHLKV 7ZWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@orcam.com header.s=google header.b=YekBBksM; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si17335984pgv.139.2019.07.08.01.00.35; Mon, 08 Jul 2019 01:01:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@orcam.com header.s=google header.b=YekBBksM; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727851AbfGHFhK (ORCPT + 99 others); Mon, 8 Jul 2019 01:37:10 -0400 Received: from mail-io1-f52.google.com ([209.85.166.52]:41394 "EHLO mail-io1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727286AbfGHFhK (ORCPT ); Mon, 8 Jul 2019 01:37:10 -0400 Received: by mail-io1-f52.google.com with SMTP id j5so13022343ioj.8 for ; Sun, 07 Jul 2019 22:37:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orcam.com; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=OAhvcCQaMh7H2QS0isqmwJnFxoeSY05Sn6R4RPHdl3k=; b=YekBBksMq2s9n4hsoAAe+H0d8fq2xsbkuogrR5hcw5VSLD43sHyaIc09GeXy7vT9w1 fgA95SBsPzidWmOx1lbP0TMxlU/Y+d10Prqutv1BJUxtRxYHOEbrB25+A/sjw7MdpJmM C5c1Tb0IV8eDc4m3BjmcQgw+GUDbj1l11a30k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=OAhvcCQaMh7H2QS0isqmwJnFxoeSY05Sn6R4RPHdl3k=; b=kM2K3yxBru/EHM0lsx6gMWwjOlo2ijEwZZdsbJZW/RKrZ0SWoo0OuZ9/zMxp53hmJo bCKbEqQgWVQ2h6YTw6jdBWGhCklUlUDtWQ9GdOWrkD9CE1Y4lrIwQYk+RjRBJbBYo2jy M1xuidRhmYYGmAPXiidwj/oDvUq1EqDvEvv6tp2nCYm83DEzXmWUGWTbhxAjsiOPbHGv NXbmg/GtbJtsNAgCUhft4xPkNCUk3ghxp0GO0cNshT22yztRIZmF9yewNhbLhAuNpd0u IIL3EXLBT11JPOEvbimgJRK7HPRtCBVDLs0/D5U5zfcUzjB6aaiwd0B/t/mQb5QbA9OR r9OQ== X-Gm-Message-State: APjAAAU87Z20amRX7hr+YBZmXpEWoMU/T5QRe46zcG2Drlis8vEe57Qk Zct8192mGJCqAVyuEQIpi6GiDGemqqy2zUdoiaXjLaHqRdc= X-Received: by 2002:a6b:e20a:: with SMTP id z10mr10096292ioc.76.1562564229294; Sun, 07 Jul 2019 22:37:09 -0700 (PDT) MIME-Version: 1.0 From: Ordit Gross Date: Mon, 8 Jul 2019 08:36:58 +0300 Message-ID: Subject: Bluetoothctl scan question To: linux-bluetooth@vger.kernel.org Cc: Naama Paz 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, I would like for bluetoothctl scan on to have only "new" results for each scan. I see in the src/adapter.c that the old devices which aren't bonded are dropped via "remove_temp_devices" function. how can I find bonded devices in scan? I would like to be able to use connect function only if a device is present (really found by scan- not cached). currently unable to since the scan is keeping the bonded devices in the devices list. how can I overcome this? also, I understand from google that the suggested approach is to remove_device, which isn't acceptable since the device would then be unpaired.. * I could in theory remove_device then push keys into the kernel, but wouldn't this cause other connections to drop? thanks in advance