rfcomm: accept incoming L2CAP connection in Basic mode if ERTM is enabled but not requested for this connection

This commit is contained in:
Matthias Ringwald 2019-08-02 18:22:14 +02:00
parent a4ea32feba
commit 26244be471
2 changed files with 10 additions and 1 deletions

View File

@ -8,6 +8,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
### Fixed
- RFCOMM: accept incoming L2CAP connection in Basic mode if ERTM is enabled but not requested for this connection
---
## Changes July 2019
### Fixed
- SM: Fixed regression introduced in f3582630
@ -16,6 +23,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
---
## Changes June 2019
### Changed

View File

@ -1015,8 +1015,8 @@ static int rfcomm_hci_event_handler(uint8_t *packet, uint16_t size){
if (request.ertm_config && request.ertm_buffer && request.ertm_buffer_size){
multiplexer->ertm_id = request.ertm_id;
l2cap_accept_ertm_connection(l2cap_cid, request.ertm_config, request.ertm_buffer, request.ertm_buffer_size);
return 1;
}
return 1;
#endif
l2cap_accept_connection(l2cap_cid);