Skip to content
Commit cc0abee3 authored by Lingao Meng's avatar Lingao Meng Committed by Anas Nashif
Browse files

Bluetooth: Mesh: Check the CID field before opcode compare



Bluetooth Mesh Vendor model hava company id field.

Accordin MeshPRFV1.0.1 3.7.3.1 Operation codes.

The 3-octet opcodes are used for manufacturer-specific opcodes.
The company identifiers are 16-bit values defined by the
Bluetooth SIG and are coded into the second and third octets of
the 3-octet opcodes.

Therefore, we can speed up the search process by checking whether
CID fields match, rather than comparing opcodes one by one.

Signed-off-by: default avatarLingao Meng <menglingao@xiaomi.com>
parent 9fd079bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment