Include the operational dataset tlv in Data Response unicast to SED. (#1012)

This commit is contained in:
Xiao Ma
2016-11-28 19:22:02 -08:00
committed by Jonathan Hui
parent 9db4aeebc9
commit c2598bf4c9
2 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -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));
}
}
}
+4 -4
View File
@@ -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