mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
tests: IBSS and key_mgmt field in STATUS
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
4ac5f2f8f4
commit
1c96988bc2
@ -144,6 +144,10 @@ def test_ibss_rsn(dev):
|
||||
if "OK" not in dev[0].request("IBSS_RSN " + dev[1].p2p_interface_addr()):
|
||||
raise Exception("IBSS_RSN command failed")
|
||||
|
||||
key_mgmt = dev[0].get_status_field("key_mgmt")
|
||||
if key_mgmt != "WPA2-PSK":
|
||||
raise Exception("Unexpected STATUS key_mgmt: " + key_mgmt)
|
||||
|
||||
def test_ibss_wpa_none(dev):
|
||||
"""IBSS WPA-None"""
|
||||
ssid="ibss-wpa-none"
|
||||
@ -208,6 +212,10 @@ def test_ibss_wpa_none(dev):
|
||||
except Exception, e:
|
||||
logger.info("Ignoring known connectivity failure: " + str(e))
|
||||
|
||||
key_mgmt = dev[0].get_status_field("key_mgmt")
|
||||
if key_mgmt != "WPA-NONE":
|
||||
raise Exception("Unexpected STATUS key_mgmt: " + key_mgmt)
|
||||
|
||||
def test_ibss_wpa_none_ccmp(dev):
|
||||
"""IBSS WPA-None/CCMP"""
|
||||
ssid="ibss-wpa-none"
|
||||
@ -280,6 +288,10 @@ def test_ibss_open(dev):
|
||||
if freq0 != "2412" or freq1 != "2412":
|
||||
raise Exception("IBSS operating frequency not reported correctly (%s %s)" % (freq0, freq1))
|
||||
|
||||
key_mgmt = dev[0].get_status_field("key_mgmt")
|
||||
if key_mgmt != "NONE":
|
||||
raise Exception("Unexpected STATUS key_mgmt: " + key_mgmt)
|
||||
|
||||
def test_ibss_open_fixed_bssid(dev):
|
||||
"""IBSS open (no security) and fixed BSSID"""
|
||||
ssid="ibss"
|
||||
|
Loading…
Reference in New Issue
Block a user