Bluetooth: GATT: Remove all subscriptions for connection when unpairing

Make sure all subscriptions are removed when a connection is unpaired.

Fixes #21131

Signed-off-by: Jacob Siverskog <jacob@teenage.engineering>
This commit is contained in:
Jacob Siverskog 2019-12-03 14:20:16 +01:00 committed by Carles Cufí
commit 7096fa512f
3 changed files with 24 additions and 4 deletions

View file

@ -1256,7 +1256,8 @@ struct bt_gatt_subscribe_params;
/** @typedef bt_gatt_notify_func_t
* @brief Notification callback function
*
* @param conn Connection object.
* @param conn Connection object. May be NULL, indicating that the peer is
* being unpaired
* @param params Subscription parameters.
* @param data Attribute value data. If NULL then subscription was removed.
* @param length Attribute value length.