mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-15 22:20:59 +00:00
l2cap: use decline reason in l2cap_cbm_decline_connection
This commit is contained in:
parent
8ec6b8c649
commit
d2bf13739d
@ -5120,7 +5120,7 @@ uint8_t l2cap_cbm_decline_connection(uint16_t local_cid, uint16_t result) {
|
||||
|
||||
// set state decline connection
|
||||
channel->state = L2CAP_STATE_WILL_SEND_LE_CONNECTION_RESPONSE_DECLINE;
|
||||
channel->reason = L2CAP_CBM_CONNECTION_RESULT_NO_RESOURCES_AVAILABLE;
|
||||
channel->reason = result;
|
||||
l2cap_run();
|
||||
return ERROR_CODE_SUCCESS;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user