-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Bluetooth: Mesh: Check the CID field before opcode compare #35001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@LingaoM would you have time to look into the compliance issue, so we can move this forwards? Looks good to me apart from this. |
I didn't see the real wrong place |
The string needs a space at the line break. Either end the first line with |
|
If it's implied by the spec that this is how implementations should behave, perhaps we want the new Kconfig option to default to being enabled? |
|
|
@LingaoM up to you whether you want to add this in this PR, I haven't seen a usecase for this yet, but you never know |
|
I'm thinking that if we leave it off by default, this optimization may never be used (because most people don't know what it is). On the contrary, we can optimize most of the scenarios as much as possible. |
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: Lingao Meng <[email protected]>
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: Lingao Meng [email protected]