From c53c0e4a8013a2863fa0656f8d049d4a8cb59618 Mon Sep 17 00:00:00 2001 From: Nick Banks Date: Mon, 5 Dec 2016 14:11:15 -0800 Subject: [PATCH] Use factory address for HWADDR property. (#1024) --- src/ncp/ncp_base.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ncp/ncp_base.cpp b/src/ncp/ncp_base.cpp index 42077a517..3c0c02312 100644 --- a/src/ncp/ncp_base.cpp +++ b/src/ncp/ncp_base.cpp @@ -1540,12 +1540,15 @@ ThreadError NcpBase::GetPropertyHandler_POWER_STATE(uint8_t header, spinel_prop_ ThreadError NcpBase::GetPropertyHandler_HWADDR(uint8_t header, spinel_prop_key_t key) { + otExtAddress hwAddr; + otGetFactoryAssignedIeeeEui64(mInstance, &hwAddr); + return SendPropertyUpdate( header, SPINEL_CMD_PROP_VALUE_IS, key, SPINEL_DATATYPE_EUI64_S, - otGetExtendedAddress(mInstance) + hwAddr.m8 ); }