sta_connect_bssid_mac: Fix whitespace errors

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-11-24 16:08:51 -08:00
parent 212f3c45ca
commit 69e9ac829e

View File

@@ -23,7 +23,6 @@ if sys.version_info[0] != 3:
print("This script requires Python 3")
exit(1)
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../")))
lfcli_base = importlib.import_module("py-json.LANforge.lfcli_base")
@@ -60,14 +59,13 @@ class client_connect(Realm):
self.station_profile.desired_add_sta_flags_mask = ["use-bss-transition"]
for station_name in range(len(station_)):
stat_list = []
stat_list = [station_[station_name]]
stat_list.append(station_[station_name])
print(station_name)
self.station_profile.cleanup(stat_list)
try:
if self.bssid[station_name] is not None or self.bssid[station_name] != "":
if self.bssid[station_name] is not None or self.bssid[station_name] != "":
self.station_profile.set_command_param("add_sta", "ap", bssid_list[station_name])
except:
self.station_profile.set_command_param("add_sta", "ap", "DEFAULT")
@@ -91,8 +89,7 @@ class client_connect(Realm):
def main():
# This has --mgr, --mgr_port and --debug
parser = LFCliBase.create_bare_argparse(prog="sta_connect_bssid_mac.py",
description=
"""
description="""
--mgr localhost --mgr_port 8080
--ssid "TestAP-Jitendra"
--radio wiphy0