Skip to content

Commit

Permalink
Flag check updated. (ARMmbed#1572)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakvenugopal authored Feb 15, 2018
1 parent 9f8e7f2 commit 33cb7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/6LoWPAN/Thread/thread_extension.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ void thread_extension_discover_response_read(discovery_response_list_t *nwk_info
void thread_extension_discover_response_tlv_write(uint16_t *data, uint8_t version, uint16_t securityPolicy)
{

if (version == 3 && securityPolicy & SECURITY_POLICY_CCM_ENABLED) {
if (version == 3 && !(securityPolicy & SECURITY_POLICY_CCM_ENABLED)) {
*data |= (uint16_t) (1 << 10);
}
return;
Expand Down

0 comments on commit 33cb7cb

Please sign in to comment.