Fixs for channelmask process and MLE Announce message. (#1189)

- Processing channel mask bits from left-side.
 - Host swap Ticks field of Timestamp in big-endian order.
 - Set transmit frame counter for Announce message to an incrementing value.
This commit is contained in:
Xiao Ma
2017-01-24 03:21:41 -08:00
committed by Jonathan Hui
parent d724b757cd
commit 1007bdd46d
6 changed files with 31 additions and 14 deletions
+1 -4
View File
@@ -2201,10 +2201,7 @@ class OpenThread(IThci):
if listChannelMask != None:
cmd += ' channelmask '
if len(listChannelMask) > 2:
cmd += '0x' + self.__convertLongToString(self.__convertChannelMask(listChannelMask))
elif len(listChannelMask) == 2:
cmd += str(hex(1 << listChannelMask[1]))
cmd += '0x' + self.__convertLongToString(self.__convertChannelMask(listChannelMask))
if sPSKc != None or listSecurityPolicy != None or \
xCommissioningSessionId != None or xTmfPort != None or xSteeringData != None or xBorderRouterLocator != None or \