mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
tests: Change wpas_config_file test for dedicated P2P Device case
SAVE_CONFIG command on the global control interface tries to save the config file on all interfaces. The test disabled updating the config file only on one interface, thus for configurations that support a dedicated P2P Device interface, saving the config file would still have succeeded on the P2P Device interface. Fix the test by disabling updating the configuration file on the global control interface (which will, in practice, disable this for the P2P Device interface) in addition to disabling it on the main interface. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
This commit is contained in:
parent
c5d070f249
commit
cf0dffd67e
@ -117,6 +117,7 @@ def test_wpas_config_file(dev):
|
|||||||
raise Exception("Unexpected configuration change")
|
raise Exception("Unexpected configuration change")
|
||||||
|
|
||||||
wpas.request("SET update_config 0")
|
wpas.request("SET update_config 0")
|
||||||
|
wpas.global_request("SET update_config 0")
|
||||||
if "OK" in wpas.request("SAVE_CONFIG"):
|
if "OK" in wpas.request("SAVE_CONFIG"):
|
||||||
raise Exception("SAVE_CONFIG succeeded unexpectedly")
|
raise Exception("SAVE_CONFIG succeeded unexpectedly")
|
||||||
if "OK" in wpas.global_request("SAVE_CONFIG"):
|
if "OK" in wpas.global_request("SAVE_CONFIG"):
|
||||||
@ -126,6 +127,7 @@ def test_wpas_config_file(dev):
|
|||||||
os.remove(config)
|
os.remove(config)
|
||||||
os.mkdir(config)
|
os.mkdir(config)
|
||||||
wpas.request("SET update_config 1")
|
wpas.request("SET update_config 1")
|
||||||
|
wpas.global_request("SET update_config 1")
|
||||||
if "OK" in wpas.request("SAVE_CONFIG"):
|
if "OK" in wpas.request("SAVE_CONFIG"):
|
||||||
raise Exception("SAVE_CONFIG succeeded unexpectedly")
|
raise Exception("SAVE_CONFIG succeeded unexpectedly")
|
||||||
if "OK" in wpas.global_request("SAVE_CONFIG"):
|
if "OK" in wpas.global_request("SAVE_CONFIG"):
|
||||||
|
Loading…
Reference in New Issue
Block a user