mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
sta_connect_bssid_mac: Fix whitespace errors
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user