diff --git a/subsys/bluetooth/host/gatt.c b/subsys/bluetooth/host/gatt.c index 9ef7d22f1a6d..f561507e0d48 100644 --- a/subsys/bluetooth/host/gatt.c +++ b/subsys/bluetooth/host/gatt.c @@ -3425,7 +3425,7 @@ static void gatt_write_ccc_rsp(struct bt_conn *conn, u8_t err, SYS_SLIST_FOR_EACH_NODE_SAFE(&subscriptions, node, tmp) { if (node == ¶ms->node) { - gatt_subscription_remove(conn, tmp, params); + gatt_subscription_remove(conn, prev, params); break; }