tests: SSID verification using beacon protection
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
5452a4a302
commit
454a22daba
1 changed files with 5 additions and 0 deletions
|
@ -1449,6 +1449,11 @@ def run_ap_pmf_beacon_protection(dev, apdev, cipher):
|
||||||
if ev is not None:
|
if ev is not None:
|
||||||
raise Exception("Beacon loss detected")
|
raise Exception("Beacon loss detected")
|
||||||
|
|
||||||
|
# Verify that the SSID has been successfully verified from a protected
|
||||||
|
# Beacon frame.
|
||||||
|
if dev[0].get_status_field("ssid_verified") != "1":
|
||||||
|
raise Exception("ssid_verified=1 not in STATUS")
|
||||||
|
|
||||||
def test_ap_pmf_beacon_protection_mismatch(dev, apdev):
|
def test_ap_pmf_beacon_protection_mismatch(dev, apdev):
|
||||||
"""WPA2-PSK Beacon protection MIC mismatch"""
|
"""WPA2-PSK Beacon protection MIC mismatch"""
|
||||||
run_ap_pmf_beacon_protection_mismatch(dev, apdev, False)
|
run_ap_pmf_beacon_protection_mismatch(dev, apdev, False)
|
||||||
|
|
Loading…
Reference in a new issue