From afa76898fdc751b0f297afc4301febc841e2ad40 Mon Sep 17 00:00:00 2001 From: Jed Reynolds Date: Fri, 31 Jul 2020 09:21:45 -0700 Subject: [PATCH] tip_station_powersave.py: computes more appropriate sniff duration --- py-scripts/tip_station_powersave.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py-scripts/tip_station_powersave.py b/py-scripts/tip_station_powersave.py index 97ed32a6..a45267cb 100755 --- a/py-scripts/tip_station_powersave.py +++ b/py-scripts/tip_station_powersave.py @@ -226,7 +226,9 @@ class TIPStationPowersave(LFCliBase): date_time = now.strftime("%Y-%m-%d-%H%M%S") curr_mon_name = self.wifi_monitor_profile.monitor_name pcap_file = "/home/lanforge/Documents/%s-%s.pcap"%(curr_mon_name, date_time) - self.wifi_monitor_profile.start_sniff(pcap_file) + + capture_duration = 2 * ( self.test_duration.total_seconds() + self.pause_duration.total_seconds() + 4) + self.wifi_monitor_profile.start_sniff(pcap_file, capture_duration) time.sleep(0.05) self.sta_powersave_disabled_profile.admin_up(resource=1)