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:
Vitalii Vydria
2025-07-14 13:29:46 +03:00
parent 1c1b947455
commit 8802c95d31

View File

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