From 1392a4403a841ca05f74ac5ad6a09cfa4427d2e3 Mon Sep 17 00:00:00 2001 From: Jed Reynolds Date: Thu, 21 Nov 2019 17:23:17 -0800 Subject: [PATCH] LFUtils.py: small improvements --- py-json/LANforge/LFUtils.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/py-json/LANforge/LFUtils.py b/py-json/LANforge/LFUtils.py index f3ca063b..f773d339 100644 --- a/py-json/LANforge/LFUtils.py +++ b/py-json/LANforge/LFUtils.py @@ -48,8 +48,6 @@ class PortEID: port_name = json_s['name'] # end class PortEID - - def staNewDownStaRequest(sta_name, resource_id=1, radio="wiphy0", flags=ADD_STA_FLAGS_DOWN_WPA2, ssid="", passphrase="", debug_on=False): """ For use with add_sta. If you don't want to generate mac addresses via patterns (xx:xx:xx:xx:81:*) @@ -291,10 +289,10 @@ def waitUntilPortsDisappear(resource_id=1, port_list=()): found_stations.append(port_name) return None -### + def waitUntilPortsAppear(resource_id=1, port_list=()): found_stations = [] - sleep(1) + sleep(2) while len(found_stations) < len(port_list): found_stations = [] for port_name in port_list: @@ -304,5 +302,7 @@ def waitUntilPortsAppear(resource_id=1, port_list=()): json_response = lf_r.getAsJson(show_error=False) if (json_response != None): found_stations.append(port_name) - sleep(1) - return None \ No newline at end of file + sleep(2) + return None + + ### \ No newline at end of file