Skip to content

Commit

Permalink
1. Modfified the API call otThreadGetNetworkKey() from OpenThreadUtil…
Browse files Browse the repository at this point in the history
…s.cpp to follow the appropriate API call (#28638)
  • Loading branch information
Sarthak-Shaha committed Aug 15, 2023
1 parent d8d6178 commit 39511c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/platform/OpenThread/OpenThreadUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ void LogOpenThreadStateChange(otInstance * otInst, uint32_t flags)
}
#if CHIP_CONFIG_SECURITY_TEST_MODE
{
const otNetworkKey * otKey = otThreadGetNetworkKey(otInst);
otNetworkKey otKey;
otThreadGetNetworkKey(otInst, &otKey);
for (int i = 0; i < OT_NETWORK_KEY_SIZE; i++)
snprintf(&strBuf[i * 2], 3, "%02X", otKey->m8[i]);
snprintf(&strBuf[i * 2], 3, "%02X", otKey.m8[i]);
ChipLogDetail(DeviceLayer, " Network Key: %s", strBuf);
}
#endif // CHIP_CONFIG_SECURITY_TEST_MODE
Expand Down

0 comments on commit 39511c2

Please sign in to comment.