mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-25 18:35:17 +00:00
hfp: decline incoming rfcomm connection after outgoing connection was started
This commit is contained in:
parent
ef07b2dc0f
commit
4960f9e71e
@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
|
||||
### Fixed
|
||||
- L2CAP: fix issue with outgoing connection before read remote supported complete when other channels exist
|
||||
- HFP: decline incoming RFCOMM connection after outgoing connection was started
|
||||
|
||||
## Changes September 2018
|
||||
|
||||
|
@ -712,7 +712,8 @@ void hfp_handle_rfcomm_event(uint8_t packet_type, uint16_t channel, uint8_t *pac
|
||||
return;
|
||||
}
|
||||
if (hfp_connection->state != HFP_IDLE) {
|
||||
log_error("hfp: incoming connection but state != HFP_IDLE");
|
||||
log_error("hfp: incoming connection but not idle, reject");
|
||||
rfcomm_decline_connection(rfcomm_event_incoming_connection_get_rfcomm_cid(packet));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user