mirror of
https://github.com/espressif/openthread.git
synced 2026-09-25 02:17:39 +00:00
Include the operational dataset tlv in Data Response unicast to SED. (#1012)
This commit is contained in:
@@ -2410,7 +2410,7 @@ exit:
|
||||
|
||||
ThreadError MleRouter::HandleNetworkDataUpdateRouter(void)
|
||||
{
|
||||
static const uint8_t tlvs[] = {Tlv::kLeaderData, Tlv::kNetworkData};
|
||||
static const uint8_t tlvs[] = {Tlv::kNetworkData};
|
||||
Ip6::Address destination;
|
||||
|
||||
VerifyOrExit(mDeviceState == kDeviceStateRouter || mDeviceState == kDeviceStateLeader, ;);
|
||||
@@ -2445,7 +2445,9 @@ ThreadError MleRouter::HandleNetworkDataUpdateRouter(void)
|
||||
{
|
||||
if (child->mNetworkDataVersion != mNetworkData.GetStableVersion())
|
||||
{
|
||||
SendDataResponse(destination, tlvs, sizeof(tlvs));
|
||||
static const uint8_t responseTlvs[] = {Tlv::kNetworkData, Tlv::kActiveDataset, Tlv::kPendingDataset};
|
||||
|
||||
SendDataResponse(destination, responseTlvs, sizeof(responseTlvs));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1957,7 +1957,7 @@ class ARM(IThci):
|
||||
else:
|
||||
return False
|
||||
except Exception, e:
|
||||
modulehelper.writeintodebuglogger("allowcommission() error: " + str(e))
|
||||
Modulehelper.writeintodebuglogger("allowcommission() error: " + str(e))
|
||||
|
||||
def joinCommissioned(self, strPSKd='threadjpaketest', waitTime=20):
|
||||
"""start joiner
|
||||
@@ -2057,7 +2057,7 @@ class ARM(IThci):
|
||||
print cmd
|
||||
return self.__sendCommand(cmd) == 'Done'
|
||||
except Exception, e:
|
||||
modulehelper.writeintodebuglogger("MGMT_ED_SCAN() error: " + str(e))
|
||||
Modulehelper.writeintodebuglogger("MGMT_ED_SCAN() error: " + str(e))
|
||||
|
||||
def MGMT_PANID_QUERY(self, sAddr, xCommissionerSessionId, listChannelMask, xPanId):
|
||||
"""send MGMT_PANID_QUERY message to a given destination
|
||||
@@ -2082,7 +2082,7 @@ class ARM(IThci):
|
||||
print cmd
|
||||
return self.__sendCommand(cmd) == 'Done'
|
||||
except Exception, e:
|
||||
modulehelper.writeintodebuglogger("MGMT_PANID_QUERY() error: " + str(e))
|
||||
Modulehelper.writeintodebuglogger("MGMT_PANID_QUERY() error: " + str(e))
|
||||
|
||||
def MGMT_ANNOUNCE_BEGIN(self, sAddr, xCommissionerSessionId, listChannelMask, xCount, xPeriod):
|
||||
"""send MGMT_ANNOUNCE_BEGIN message to a given destination
|
||||
@@ -2099,7 +2099,7 @@ class ARM(IThci):
|
||||
print cmd
|
||||
return self.__sendCommand(cmd) == 'Done'
|
||||
except Exception, e:
|
||||
modulehelper.writeintodebuglogger("MGMT_ANNOUNCE_BEGIN() error: " + str(e))
|
||||
Modulehelper.writeintodebuglogger("MGMT_ANNOUNCE_BEGIN() error: " + str(e))
|
||||
|
||||
def MGMT_ACTIVE_GET(self, Addr='', TLVs=[]):
|
||||
"""send MGMT_ACTIVE_GET command
|
||||
|
||||
Reference in New Issue
Block a user