diff --git a/py-scripts/sta_connect_bssid_mac.py b/py-scripts/sta_connect_bssid_mac.py index e0da58c1..1824fb04 100644 --- a/py-scripts/sta_connect_bssid_mac.py +++ b/py-scripts/sta_connect_bssid_mac.py @@ -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