New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 727943 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 719581
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocking:
issue 719581


Show other hotlists

Hotlists containing this issue:
Hotlist-2
Hotlist-1


Sign in to add a comment

BlueZ should not remember gatt database after disconnection for unpaired devices

Project Member Reported by sonnysasaka@chromium.org, May 30 2017

Issue description

According to Core Specification v4.2 [1] and v5.0 [2], the
attributes should be cleared between unbonded devices after disconnection, since the attributes are no long valid.

[1] Page 525, Section 2.5.2 Attribute Caching, Part G, Volume 3: "For clients that do not have a trusted relationship with the server, the attribute cache is valid only during the connection."
[2] Page 2227, Section 2.5.2 Attribute Caching, Part G, Volume 3: "For clients that do not have a trusted relationship with the server, the attribute cache is valid only during the connection."
 
Blocking: 719581

Comment 2 by ortuno@chromium.org, May 30 2017

Specifically about notifications:

page 2238 Section 3.3.3.3 Client Characteristic Configuration, Part G, Volume 3: "The Client Characteristic Configuration descriptor value shall be set to the default value at each connection with non-bonded devices."

Comment 3 by mcchou@chromium.org, Oct 31 2017

Owner: josephsih@chromium.org

Comment 4 by mcchou@chromium.org, Oct 31 2017

Hi Joseph,

This is the root cause of  issue 719581 .
You can change the GATT cache policy in the main.conf:

https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/src/main.conf#n78

Just change it from 'always' to 'yes'. Note that always only cache attributes of device which uses public or random static addresses which in effect is their identity address, device using privacy will not be affected by this policy since once disconnected the whole device object is removed.
Components: Privacy
Mergedinto: 719581
Status: Duplicate (was: Available)
Per Miao's comment in C#4, this is a duplicate of  issue 719581  which was already fixed.

Sign in to add a comment