Skip to content

Commit 1755187

Browse files
committed
Use company id in EIR_Manufacturer_Specific_Data
1 parent adfc11c commit 1755187

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scapy/layers/bluetooth.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,9 +1172,12 @@ 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, BLUETOOTH_CORE_COMPANY_IDENTIFIERS),
11781181
]
11791182

11801183
registered_magic_payloads = {}

0 commit comments

Comments
 (0)