mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-25 09:02:30 +00:00
sm: use static random address after power up
This commit is contained in:
parent
74d525e6ef
commit
4a688bd119
@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
- embedded audio: mono audio is played on both channels if HAVE_HAL_AUDIO_SINK_STEREO_ONLY is defined
|
- embedded audio: mono audio is played on both channels if HAVE_HAL_AUDIO_SINK_STEREO_ONLY is defined
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
- GAP: use static random address after power up
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- HCI Dump: provide log level to log_message implementation
|
- HCI Dump: provide log level to log_message implementation
|
||||||
|
@ -3692,7 +3692,11 @@ static void sm_event_packet_handler (uint8_t packet_type, uint16_t channel, uint
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// restart random address updates after power cycle
|
// restart random address updates after power cycle
|
||||||
|
if (gap_random_adress_type == GAP_RANDOM_ADDRESS_TYPE_STATIC){
|
||||||
|
gap_random_address_set(sm_random_address);
|
||||||
|
} else {
|
||||||
gap_random_address_set_mode(gap_random_adress_type);
|
gap_random_address_set_mode(gap_random_adress_type);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HCI_STATE_OFF:
|
case HCI_STATE_OFF:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user