diff --git a/drivers/bluetooth/nble/gatt.c b/drivers/bluetooth/nble/gatt.c index 63bc8444441..c06898ab299 100644 --- a/drivers/bluetooth/nble/gatt.c +++ b/drivers/bluetooth/nble/gatt.c @@ -1220,6 +1220,7 @@ static void remove_subscriptions(struct bt_conn *conn) if (params->flags & BT_GATT_SUBSCRIBE_FLAG_VOLATILE) { /* Remove subscription */ + params->value = 0; gatt_subscription_remove(conn, prev, params); } } diff --git a/subsys/bluetooth/host/gatt.c b/subsys/bluetooth/host/gatt.c index c6b75d5fa50..58c909d0521 100644 --- a/subsys/bluetooth/host/gatt.c +++ b/subsys/bluetooth/host/gatt.c @@ -761,6 +761,7 @@ static void remove_subscriptions(struct bt_conn *conn) if (!bt_addr_le_is_bonded(&conn->le.dst) || (params->flags & BT_GATT_SUBSCRIBE_FLAG_VOLATILE)) { /* Remove subscription */ + params->value = 0; gatt_subscription_remove(conn, prev, params); } else { update_subscription(conn, params);