File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 64
64
65
65
#define TRACE_GROUP "comm"
66
66
67
- #define SECURITY_POLICY_CCM_ENABLED 0x04 /* Thread Commercial Commissioning Mode is enabled when this bit is set. This is Thread 1.2 feature. */
67
+ #define SECURITY_POLICY_CCM_DISABLED 0x04 /* Thread Commercial Commissioning Mode is enabled when this bit is set. This is Thread 1.2 feature. */
68
68
69
69
typedef struct thread_extension_info {
70
70
int8_t coap_service_id ;
@@ -581,7 +581,7 @@ bool thread_extension_enabled(protocol_interface_info_entry_t *cur)
581
581
}
582
582
uint16_t securityPolicy = thread_joiner_application_security_policy_get (cur -> id );
583
583
584
- if (securityPolicy & SECURITY_POLICY_CCM_ENABLED ) {
584
+ if (!( securityPolicy & SECURITY_POLICY_CCM_DISABLED ) ) {
585
585
return true;
586
586
}
587
587
@@ -620,11 +620,9 @@ void thread_extension_discover_response_read(discovery_response_list_t *nwk_info
620
620
621
621
void thread_extension_discover_response_tlv_write (uint16_t * data , uint8_t version , uint16_t securityPolicy )
622
622
{
623
-
624
- if (version == 3 && !(securityPolicy & SECURITY_POLICY_CCM_ENABLED )) {
623
+ if (version == 3 && !(securityPolicy & SECURITY_POLICY_CCM_DISABLED )) {
625
624
* data |= (uint16_t ) (1 << 10 );
626
625
}
627
- return ;
628
626
}
629
627
630
628
#ifdef HAVE_THREAD_ROUTER
You can’t perform that action at this time.
0 commit comments