tests: ctrl_iface BSSID command
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
d6e88ee9e8
commit
23fbf45cf5
1 changed files with 13 additions and 0 deletions
|
@ -169,6 +169,19 @@ def test_wpas_ctrl_network(dev):
|
||||||
if "FAIL" not in dev[0].request('SET_NETWORK ' + str(id) + ' pairwise WEP40'):
|
if "FAIL" not in dev[0].request('SET_NETWORK ' + str(id) + ' pairwise WEP40'):
|
||||||
raise Exception("Invalid pairwise accepted")
|
raise Exception("Invalid pairwise accepted")
|
||||||
|
|
||||||
|
if "OK" not in dev[0].request('BSSID ' + str(id) + ' 00:11:22:33:44:55'):
|
||||||
|
raise Exception("Unexpected BSSID failure")
|
||||||
|
if dev[0].request("GET_NETWORK 0 bssid") != '00:11:22:33:44:55':
|
||||||
|
raise Exception("BSSID command did not set network bssid")
|
||||||
|
if "OK" not in dev[0].request('BSSID ' + str(id) + ' 00:00:00:00:00:00'):
|
||||||
|
raise Exception("Unexpected BSSID failure")
|
||||||
|
if "FAIL" not in dev[0].request("GET_NETWORK 0 bssid"):
|
||||||
|
raise Exception("bssid claimed configured after clearing")
|
||||||
|
if "FAIL" not in dev[0].request('BSSID 123 00:11:22:33:44:55'):
|
||||||
|
raise Exception("Unexpected BSSID success")
|
||||||
|
if "FAIL" not in dev[0].request('BSSID ' + str(id) + ' 00:11:22:33:44'):
|
||||||
|
raise Exception("Unexpected BSSID success")
|
||||||
|
|
||||||
def add_cred(dev):
|
def add_cred(dev):
|
||||||
id = dev.add_cred()
|
id = dev.add_cred()
|
||||||
ev = dev.wait_event(["CRED-ADDED"])
|
ev = dev.wait_event(["CRED-ADDED"])
|
||||||
|
|
Loading…
Reference in a new issue