hfp: decline incoming rfcomm connection after outgoing connection was started

This commit is contained in:
Matthias Ringwald 2018-10-02 16:36:40 +02:00
parent ef07b2dc0f
commit 4960f9e71e
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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;
}