mirror of
https://github.com/espressif/openthread.git
synced 2026-10-07 16:27:35 +00:00
[joiner] add validation of joiner PSKd (#4934)
This commit is contained in:
@@ -2035,7 +2035,7 @@ class OpenThread(IThci):
|
||||
def diagnosticQuery(self, strDestinationAddr, listTLV_ids=[]):
|
||||
self.diagnosticGet(strDestinationAddr, listTLV_ids)
|
||||
|
||||
def startNativeCommissioner(self, strPSKc='GRLpassWord'):
|
||||
def startNativeCommissioner(self, strPSKc='GRLPASSPHRASE'):
|
||||
# TODO: Support the whole Native Commissioner functionality
|
||||
# Currently it only aims to trigger a Discovery Request message to pass
|
||||
# Certification test 5.8.4
|
||||
@@ -2069,7 +2069,7 @@ class OpenThread(IThci):
|
||||
def setJoinKey(self, strPSKc):
|
||||
pass
|
||||
|
||||
def scanJoiner(self, xEUI='*', strPSKd='threadjpaketest'):
|
||||
def scanJoiner(self, xEUI='*', strPSKd='THREADJPAKETEST'):
|
||||
"""scan Joiner
|
||||
|
||||
Args:
|
||||
@@ -2143,7 +2143,7 @@ class OpenThread(IThci):
|
||||
ModuleHelper.writeintodebuglogger('allowcommission() error: ' +
|
||||
str(e))
|
||||
|
||||
def joinCommissioned(self, strPSKd='threadjpaketest', waitTime=20):
|
||||
def joinCommissioned(self, strPSKd='THREADJPAKETEST', waitTime=20):
|
||||
"""start joiner
|
||||
|
||||
Args:
|
||||
|
||||
@@ -2117,7 +2117,7 @@ class OpenThread_WpanCtl(IThci):
|
||||
def diagnosticReset(self, strDestinationAddr, listTLV_ids=[]):
|
||||
"""@todo : required if as reference device"""
|
||||
|
||||
def startNativeCommissioner(self, strPSKc='GRLpassWord'):
|
||||
def startNativeCommissioner(self, strPSKc='GRLPASSPHRASE'):
|
||||
# TODO: Support the whole Native Commissioner functionality
|
||||
# Currently it only aims to trigger a Discovery Request message to pass
|
||||
# Certification test 5.8.4
|
||||
@@ -2152,7 +2152,7 @@ class OpenThread_WpanCtl(IThci):
|
||||
def setJoinKey(self, strPSKc):
|
||||
pass
|
||||
|
||||
def scanJoiner(self, xEUI='*', strPSKd='threadjpaketest'):
|
||||
def scanJoiner(self, xEUI='*', strPSKd='THREADJPAKETEST'):
|
||||
"""scan Joiner
|
||||
|
||||
Args:
|
||||
@@ -2225,7 +2225,7 @@ class OpenThread_WpanCtl(IThci):
|
||||
ModuleHelper.WriteIntoDebugLogger('allowcommission() error: ' +
|
||||
str(e))
|
||||
|
||||
def joinCommissioned(self, strPSKd='threadjpaketest', waitTime=20):
|
||||
def joinCommissioned(self, strPSKd='THREADJPAKETEST', waitTime=20):
|
||||
"""start joiner
|
||||
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user