Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1652612pxb; Thu, 4 Feb 2021 20:04:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5VNRx6la6mr+JxqdmS89oAJFWPCQ8ioujYdTpRU+T6l7QBG7FSqHlG71Jt0jFbK8DeJ7Y X-Received: by 2002:a05:6402:138e:: with SMTP id b14mr1755993edv.10.1612497893774; Thu, 04 Feb 2021 20:04:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612497893; cv=none; d=google.com; s=arc-20160816; b=bvvYMKeFFNAa7Bc+tHpi9LGQYe2f4P8488LkSQ/jqw8lFPdQJ9XimajLfjGlxwR4GK V7QiYeqzbvFH2y5JFHe/gKgeMIAitLPCTlzFDUTp/RsoR6UtRDTjGxqmKF0JFtCu0Rsd LMQYWKHu3plpoCBQ4tFCq9xJz/uFtwUfd0gktRYMdfoL7THKJr+BKMNKq3C1VECihNUs zJamdzNWfC6UnHtfOnBHYAbeguMo9YeKsRzLsaw/v0cI5zH+/xENKkDem9aQWG2Lsoiu w6o1VvCgdlohsxOBA5WHkFJ8Rzd2A1/CrB56Kw0aZRLMhHJFIH3P2u6ZC0pK5Q9Ya4Ni KbUQ== 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=iyo1w6inxPJMV9PxnjMWGoDiC8ff/rd01+lW7XOhkzU=; b=ucx22aRoFe49ybSMR+rwrn1xeX7eTnVDwGY//hKeTd/Kq8Hc+d8aqkqsMwgaL6FxFF 9DNmd/k7mTEejEIZ1rpyvkMn1XEUrzHzG/JwNCVn/3Due83HvoEkOEzgXrr15XLg11Om Ic5gDXEELU79LNAT6xVpfxEYL7EWVMuUeGXfiG+f6lOZGYjw2j+2Z1bQz5TMQOquCuMn 9UIVNMNW/0uYnNOPD+TaHXKDleyFIM4yvHHsliHd94w5/SEnPxMyJVatanrRGTRtT8uQ DL3jvQOWz155UAP0q5YDAdRfj1mq2rU4CFohcmwVEXHgbylYV+pXHL6zESIVRwjTc6df xfMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uKcmOg+7; 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 m26si4373663edv.305.2021.02.04.20.04.16; Thu, 04 Feb 2021 20:04:53 -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=uKcmOg+7; 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 S231167AbhBEECg (ORCPT + 99 others); Thu, 4 Feb 2021 23:02:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231128AbhBEECg (ORCPT ); Thu, 4 Feb 2021 23:02:36 -0500 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09806C0613D6 for ; Thu, 4 Feb 2021 20:01:56 -0800 (PST) Received: by mail-qk1-x72b.google.com with SMTP id l27so5687243qki.9 for ; Thu, 04 Feb 2021 20:01:55 -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=iyo1w6inxPJMV9PxnjMWGoDiC8ff/rd01+lW7XOhkzU=; b=uKcmOg+7sgDDheoe9RzVLoSyZyU3oriw3RwuL7hrcNFWM9FkQFfRilkFJv8kCxJtc8 q8/876PcecarJohqKunsNKim1hJpNiR1jAx18H7Zzfdz50QD+B9m+E4aT5rC/ERIIbgq Q5ApsE8jzFtIaSPhfDoELCeDiFD7bw8y6z6t6ZVp03P7/fVljU3LpRbPEMAj04NIskmp b9wSbQDl/sYBciUn7a4hJ0ELYp+5UQxSEH061HJhMW/9tSFZk2cA/TG/HjyrlCyMuRK6 H6C/uZY5K3vIeWsPh4riZApcT56gYuZ5/TW2tYT6J5XWCXLDNPIiZdOYRv80/7zFC8R0 I1wg== 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=iyo1w6inxPJMV9PxnjMWGoDiC8ff/rd01+lW7XOhkzU=; b=hIMQVK3LLAqRI39cRVKkRjlZL5UBbqhX0V4FBhcgrozKaSfmUd3PvzVWOZtyDbwjcf tYT537YLic31jjz0PjUbd0gzsIW6U4PDvImkbpW54BwUi+gAner7oqCPyYnfZn82r5iU M8M5xaGO2wL7GJZUygofHVm7DDHBKA4miV18xb5M52CgeUr/Y9fFqsM+ILcoQGtnLLcf JarHmQNg3GRRqrTHmoO7U4Kw4Eo+Ud+PZpDqeDCv4RNj68FfLyAC4VuJ168DzKDK1nKb 8otFimj9D0KNNzIk4kPjlPsoHnHcsNqoPp5wLVpA+7PRUxy9O5CB54CK2YDBgu91R+l/ 3BmQ== X-Gm-Message-State: AOAM530Jz/FKEP0HCjKuDavnXZIr5+gvhIS+5yOu4VDAfDPpMpEMu5Jf GAQhPgGAC0XEa7BhYl8Hu5EcsF7Lmd40NUrzkAiuDLKgyQ== X-Received: by 2002:a37:788:: with SMTP id 130mr2653006qkh.390.1612497715270; Thu, 04 Feb 2021 20:01:55 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Kenny Bian Date: Thu, 4 Feb 2021 20:01:42 -0800 Message-ID: Subject: Re: How to disable cache? To: Luiz Augusto von Dentz Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Thanks Luiz. We may disable the cache. On Thu, Feb 4, 2021 at 8:52 AM Luiz Augusto von Dentz wrote: > > Hi Kenny, > > On Wed, Feb 3, 2021 at 9:20 PM Kenny Bian wrote: > > > > Hello, > > > > In "/etc/bluetooth/main.conf", there seems a way to disable the cache: > > [GATT] > > Cache = no > > > > What does exactly the "disable cache" mean? It means the > > "/var/lib/bluetooth/[MAC_ADDRESS]/cache" folder won't be created? > > That means it won't cache any GATT attribute found when discovering, > the cache folder has other information as well. > > > We tried to disable the cache by changing the > > "/etc/bluetooth/main.conf". It seems the > > "/var/lib/bluetooth/[MAC_ADDRESS]/cache" folder is still created even > > if it was deleted. > > However, we noticed that the "[Attributes]" section in > > "/var/lib/bluetooth/[MAC_ADDRESS]/cache/[iPHONE_MAC]" file is gone. > > Does it mean the "disable cache" is working? Does it mean the handles > > used between the bluetooth and the mobile app won't be cached? > > Yes, that is the result of not caching anything. > > -- > Luiz Augusto von Dentz