tip_station_powersave.py: computes more appropriate sniff duration

This commit is contained in:
Jed Reynolds
2020-07-31 09:21:45 -07:00
parent 7fa76d4517
commit afa76898fd

View File

@@ -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)