mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
hci: use ERROR_CODE_CONNECTION_REJECTED_DUE_TO_SECURITY_REASONS to rejected classic connections
This commit is contained in:
parent
f88bff64d4
commit
d152b6c6cd
@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
### Changed
|
||||
- A2DP: new a2dp.c contains shared code of Sink and Source roles
|
||||
- A2DP Sink: automatically configure stream endpoint for outgoing connections
|
||||
- HCI: use ERROR_CODE_CONNECTION_REJECTED_DUE_TO_SECURITY_REASONS to rejected classic connections
|
||||
- HFP AG: drop unused number parameter from hfp_ag_outgoing_call_initiated
|
||||
- SM: pairing events indicate if LE Secure Connection will be used
|
||||
|
||||
|
@ -3117,7 +3117,7 @@ static void event_handler(uint8_t *packet, uint16_t size){
|
||||
|
||||
if (hci_stack->gap_classic_accept_callback != NULL){
|
||||
if ((*hci_stack->gap_classic_accept_callback)(addr, link_type) == 0){
|
||||
hci_stack->decline_reason = ERROR_CODE_CONNECTION_REJECTED_DUE_TO_UNACCEPTABLE_BD_ADDR;
|
||||
hci_stack->decline_reason = ERROR_CODE_CONNECTION_REJECTED_DUE_TO_SECURITY_REASONS;
|
||||
bd_addr_copy(hci_stack->decline_addr, addr);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user