Skip to content

Commit 0a1f553

Browse files
MarekPietacarlescufi
authored andcommitted
Bluetooth: host: Remove CCC update from GATT connected callback
The CCC update should be done after the connection is encrypted. Before the connection is encrypted, the GATT Server does not know if the reconnecting peer was actually bonded. Fixes: #40759 Signed-off-by: Marek Pieta <[email protected]>
1 parent 2bf27f5 commit 0a1f553

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

subsys/bluetooth/host/gatt.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4900,8 +4900,6 @@ void bt_gatt_connected(struct bt_conn *conn)
49004900
settings_load_subtree_direct(key, ccc_set_direct, (void *)key);
49014901
}
49024902

4903-
bt_gatt_foreach_attr(0x0001, 0xffff, update_ccc, &data);
4904-
49054903
/* BLUETOOTH CORE SPECIFICATION Version 5.1 | Vol 3, Part C page 2192:
49064904
*
49074905
* 10.3.1.1 Handling of GATT indications and notifications

0 commit comments

Comments
 (0)