mirror of
https://github.com/google/bumble.git
synced 2026-05-08 03:58:01 +00:00
fix: metadata call for peer_identity_address_type
Fixed a crash caused by a missing `metadata` initialization for the `peer_identity_address_type` field in the `HCI_LE_Set_Privacy_Mode_Command` dataclass. The absence of this call led to incorrect field setup, resulting in runtime exceptions during `HCI_LE_Set_Privacy_Mode_Command` handling.
This commit is contained in:
@@ -4990,7 +4990,9 @@ class HCI_LE_Set_Privacy_Mode_Command(HCI_Command):
|
||||
NETWORK_PRIVACY_MODE = 0x00
|
||||
DEVICE_PRIVACY_MODE = 0x01
|
||||
|
||||
peer_identity_address_type: int = field(metadata=Address.ADDRESS_TYPE_SPEC)
|
||||
peer_identity_address_type: int = field(
|
||||
metadata=metadata(Address.ADDRESS_TYPE_SPEC)
|
||||
)
|
||||
peer_identity_address: Address = field(
|
||||
metadata=metadata(Address.parse_address_preceded_by_type)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user