sm: fix CTKD over BR/EDR

This commit is contained in:
Matthias Ringwald 2024-07-03 18:39:42 +02:00
parent 8e0bef02fe
commit 20964aa9e7
2 changed files with 8 additions and 1 deletions

View File

@ -13,7 +13,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Fixed
- RFCOMM: shut down multiplexer after closing last channel instead of multiplexer idle timer
- HID Host: return complete HID report
- SM: fix CTDK key distribution over BR/EDR
### Changed
- GAP: return command disallowed if disconnect already requested

View File

@ -3319,10 +3319,16 @@ static void sm_run(void){
sm_send_connectionless(connection, (uint8_t *) &setup->sm_s_pres, sizeof(sm_pairing_packet_t));
break;
case SM_BR_EDR_DISTRIBUTE_KEYS:
// send next key
if (setup->sm_key_distribution_send_set != 0) {
sm_run_distribute_keys(connection);
}
// more to send?
if (setup->sm_key_distribution_send_set != 0){
return;
}
// keys are sent
if (IS_RESPONDER(connection->sm_role)) {
// responder -> receive master keys if there are any