lf_cisco_power.py : updates for Beacon

This commit is contained in:
Chuck SmileyRekiere
2020-12-16 10:55:54 -07:00
parent 179927e7c8
commit deef5bb89a

View File

@@ -513,13 +513,13 @@ def main():
worksheet.set_column(col, col, 10) # Set width
worksheet.write(row, col, 'Controller\n dBm', dblue_bold); col += 1
worksheet.set_column(col, col, 10) # Set width
worksheet.write(row, col, 'Calc dBm\n Beacon', dblue_bold); col += 1
worksheet.write(row, col, 'Calculated\n dBm\n Beacon', dblue_bold); col += 1
worksheet.set_column(col, col, 14) # Set width
worksheet.write(row, col, 'Diff\n Cntl dBm\n & Beacon dBm\n (+/- {} dBm)'.format(args.beacon_dbm_diff), dblue_bold); col += 1
worksheet.write(row, col, 'Diff\nController dBm\n & Beacon dBm\n (+/- {} dBm)'.format(args.beacon_dbm_diff), dblue_bold); col += 1
worksheet.set_column(col, col, 10) # Set width
worksheet.write(row, col, 'Calc dBm\n Combined', dblue_bold); col += 1
worksheet.set_column(col, col, 10) # Set width
worksheet.write(row, col, 'Diff dBm\n Combined', dblue_bold); col += 1
worksheet.write(row, col, 'Calculated\n dBm\n Combined', dblue_bold); col += 1
worksheet.set_column(col, col, 14) # Set width
worksheet.write(row, col, 'Diff\nController dBm\n & Combined', dblue_bold); col += 1
worksheet.set_column(col, col, 12) # Set width
worksheet.write(row, col, "PASS /\nFAIL\n( += %s dBm)"%(pf_dbm), dgreen_bold); col += 1
worksheet.set_column(col, col, 24) # Set width
@@ -1309,7 +1309,7 @@ def main():
diff_dbm = calc_dbm - cc_dbmi
diff_dbm_beacon = calc_dbm_beacon - cc_dbmi
if(int(abs(diff_dbm_beacon)) > int(args.beacon_dbm_diff)):
w_tot = "WARNING: Controller and beacon power diff greater then +/- {} dBm".format(args.beacon_dbm_diff)
w_tot = "WARNING: Controller and beacon power different by greater then +/- {} dBm".format(args.beacon_dbm_diff)
pfs = "PASS"
pfrange = pf_dbm;