Skip to content

Commit f26c841

Browse files
committed
Use company id in EIR_Manufacturer_Specific_Data
1 parent d5e514c commit f26c841

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scapy/layers/bluetooth.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,9 +1172,13 @@ class EIR_PeripheralConnectionIntervalRange(EIR_Element):
11721172

11731173
class EIR_Manufacturer_Specific_Data(EIR_Element):
11741174
name = "EIR Manufacturer Specific Data"
1175+
deprecated_fields = {
1176+
"company_id": ("company_identifier", "2.6.2"),
1177+
}
11751178
fields_desc = [
11761179
# https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers
1177-
XLEShortField("company_id", None),
1180+
LEShortEnumField("company_identifier", None,
1181+
BLUETOOTH_CORE_COMPANY_IDENTIFIERS),
11781182
]
11791183

11801184
registered_magic_payloads = {}

0 commit comments

Comments
 (0)