bluetooth: fix removal of needed subscriptions
Providing 'tmp', which was never updated, resulted in removeal of subscriptions from the beginning. Using the updated 'prev' resolves this. Signed-off-by: Marco Sterbik <madbadmax00@gmail.com>
This commit is contained in:
parent
95c18f1e6b
commit
9217c6634e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue