mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-31 18:58:01 +00:00
sta_scan_test.py : fixed imports
tip_station_powersave.py : added --help lf_qa.py : fixed comments in help Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import importlib
|
||||
import pprint
|
||||
import time
|
||||
import datetime
|
||||
import argparse
|
||||
|
||||
if sys.version_info[0] != 3:
|
||||
print("This script requires Python 3")
|
||||
@@ -380,6 +381,26 @@ class TIPStationPowersave(LFCliBase):
|
||||
self.sta_powersave_disabled_profile.cleanup(desired_stations=self.normal_sta_list)
|
||||
|
||||
def main():
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
prog='tip_station_powersave.py',
|
||||
formatter_class=argparse.RawTextHelpFormatter,
|
||||
epilog='''\
|
||||
tip_station_powersave.py
|
||||
|
||||
''',
|
||||
description='''\
|
||||
This script uses filters from realm's PacketFilter class to filter pcap output for specific packets.
|
||||
Currently it uses a filter for association packets using wlan.fc.type_subtype<=3. It is also using a filter
|
||||
for QOS Null packets using wlan.fc.type_subtype==44. Both filters are also looking for the existence of
|
||||
either the station MAC or the AP MAC in wlan.addr
|
||||
These are returned as an array of lines from the output in the format
|
||||
$subtype $mac_addresses $wlan.fc.pwrmgt
|
||||
|
||||
#Currently, this test can only be applied to UDP connections
|
||||
''')
|
||||
args = parser.parse_args()
|
||||
|
||||
lfjson_host = "localhost"
|
||||
lfjson_port = 8080
|
||||
#station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_=4, padding_number_=10000)
|
||||
|
||||
Reference in New Issue
Block a user