l2cap: use next signaling id for echo request

This commit is contained in:
Matthias Ringwald 2021-02-22 17:28:38 +01:00
parent c694b835fe
commit dae76da43b

View File

@ -1367,7 +1367,7 @@ int l2cap_send(uint16_t local_cid, uint8_t *data, uint16_t len){
}
int l2cap_send_echo_request(hci_con_handle_t con_handle, uint8_t *data, uint16_t len){
return l2cap_send_signaling_packet(con_handle, ECHO_REQUEST, 0x77, len, data);
return l2cap_send_signaling_packet(con_handle, ECHO_REQUEST, l2cap_next_sig_id(), len, data);
}
static inline void channelStateVarSetFlag(l2cap_channel_t *channel, L2CAP_CHANNEL_STATE_VAR flag){