mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-21 12:34:54 +00:00
lf _ftp_test.py radio update
This commit is contained in:
@@ -76,7 +76,7 @@ class ftp_test(LFCliBase):
|
|||||||
#This method will set values according user input
|
#This method will set values according user input
|
||||||
|
|
||||||
if self.band == "5G":
|
if self.band == "5G":
|
||||||
self.radio = ["wiphy2"] # need to pass in the radios
|
self.radio = ["wiphy0"] # need to pass in the radios
|
||||||
if self.file_size == "2MB":
|
if self.file_size == "2MB":
|
||||||
|
|
||||||
#providing time duration for Pass or fail criteria
|
#providing time duration for Pass or fail criteria
|
||||||
@@ -98,7 +98,7 @@ class ftp_test(LFCliBase):
|
|||||||
else:
|
else:
|
||||||
self.duration = self.convert_min_in_time(10) # 10
|
self.duration = self.convert_min_in_time(10) # 10
|
||||||
elif self.band == "Both":
|
elif self.band == "Both":
|
||||||
self.radio = ["wiphy2", "wiphy0"] # need to pass in the radios
|
self.radio = ["wiphy0", "wiphy0"] # need to pass in the radios
|
||||||
|
|
||||||
#if Both then number of stations are half for 2.4G and half for 5G
|
#if Both then number of stations are half for 2.4G and half for 5G
|
||||||
self.num_sta = self.num_sta // 2
|
self.num_sta = self.num_sta // 2
|
||||||
@@ -119,13 +119,14 @@ class ftp_test(LFCliBase):
|
|||||||
self.count=0
|
self.count=0
|
||||||
|
|
||||||
#delete everything in the GUI before starting the script
|
#delete everything in the GUI before starting the script
|
||||||
try:
|
'''try:
|
||||||
self.local_realm.load("BLANK")
|
self.local_realm.load("BLANK")
|
||||||
except:
|
except:
|
||||||
print("Couldn't load 'BLANK' Test configurations")
|
print("Couldn't load 'BLANK' Test configurations")
|
||||||
|
'''
|
||||||
|
|
||||||
for rad in self.radio:
|
for rad in self.radio:
|
||||||
if rad == "wiphy2":
|
if rad == "wiphy0":
|
||||||
|
|
||||||
#select mode(All stations will connects to 5G)
|
#select mode(All stations will connects to 5G)
|
||||||
self.station_profile.mode = 10
|
self.station_profile.mode = 10
|
||||||
@@ -170,6 +171,7 @@ class ftp_test(LFCliBase):
|
|||||||
debug=self.debug)
|
debug=self.debug)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|
||||||
print("precleanup done")
|
print("precleanup done")
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user