Skip to content

Commit

Permalink
shared/att: Fix not requeueing in the same channel
Browse files Browse the repository at this point in the history
If request needs to be resend due to change in the security use the
chan->queue otherwise it may end up using a different channel.
  • Loading branch information
Vudentz committed Dec 9, 2022
1 parent 758161c commit f8670f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/att.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,8 @@ static bool handle_error_rsp(struct bt_att_chan *chan, uint8_t *pdu,

chan->pending_req = NULL;

/* Push operation back to request queue */
return queue_push_head(att->req_queue, op);
/* Push operation back to channel queue */
return queue_push_head(chan->queue, op);
}

static void handle_rsp(struct bt_att_chan *chan, uint8_t opcode, uint8_t *pdu,
Expand Down

0 comments on commit f8670f9

Please sign in to comment.