Skip to content

Commit 33cb7cb

Browse files
Flag check updated. (#1572)
1 parent 9f8e7f2 commit 33cb7cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/6LoWPAN/Thread/thread_extension.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ void thread_extension_discover_response_read(discovery_response_list_t *nwk_info
616616
void thread_extension_discover_response_tlv_write(uint16_t *data, uint8_t version, uint16_t securityPolicy)
617617
{
618618

619-
if (version == 3 && securityPolicy & SECURITY_POLICY_CCM_ENABLED) {
619+
if (version == 3 && !(securityPolicy & SECURITY_POLICY_CCM_ENABLED)) {
620620
*data |= (uint16_t) (1 << 10);
621621
}
622622
return;

0 commit comments

Comments
 (0)