mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
Jira: LAN-715 port_probe.py : defaut bw = 20 to fix
UnboundLocalError: local variable 'bw' referenced before assignment Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -172,12 +172,13 @@ class ProbePort(LFCliBase):
|
||||
T_dft = 3.2 * 10**-6 # Constant for HT
|
||||
T_gi_short = .4 * 10**-6 # Guard index.
|
||||
T_gi_long = .8 * 10**-6 # Guard index.
|
||||
bw = 20
|
||||
# Note the T_gi is not exactly know so need to calculate bothh with .4 and .8
|
||||
# the nubmer of Data Subcarriers is based on modulation and bandwith
|
||||
try:
|
||||
bw = int(self.tx_mhz)
|
||||
except BaseException:
|
||||
print("port_probe.py: {} WARNING unable to parse tx MHz (BW) , check probe output will use ")
|
||||
print("port_probe.py: WARNING unable to parse tx MHz (BW) , check probe output will use {bw}".format(bw=bw))
|
||||
|
||||
print("Mhz {Mhz}".format(Mhz=self.tx_mhz))
|
||||
if bw == 20:
|
||||
|
||||
Reference in New Issue
Block a user