From 603201bc139c6b33a411ec3729c7a10cbb9008e7 Mon Sep 17 00:00:00 2001 From: Nikita Yadav Date: Wed, 27 Jan 2021 16:36:36 +0530 Subject: [PATCH] Netear Dfs Test --- py-scripts/netgear_dfs_test.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/py-scripts/netgear_dfs_test.py b/py-scripts/netgear_dfs_test.py index 8e6bdeae..f70742f1 100644 --- a/py-scripts/netgear_dfs_test.py +++ b/py-scripts/netgear_dfs_test.py @@ -1,3 +1,7 @@ +''' This script uses Netgear AP for DFS testing +''' + + import os import paramiko import time @@ -384,15 +388,6 @@ class DFS_Test: var_1 = (var['interface']['cx time (us)']) return var_1 - def convert_to_sec(self, time_string): - self.time_string = time_string - date_time = datetime.datetime.strptime(self.time_string, "%H:%M:%S") - - print(date_time) - - a_timedelta = date_time - datetime.datetime(1900, 1, 1) - seconds = a_timedelta.total_seconds() - return seconds class ThreadWithReturnValue(Thread): @@ -755,7 +750,7 @@ def main(): "

" + date_1 + "



Objective

The DFS Test is designed to test the Performance of the Netgear Access Point.Dynamic frequency selection is a technology that is designed to ensure that wireless devices operating in the unlicensed WLAN 5 GHz bands are able to detect when they may be interfering with military and weather radar systems and automatically switch over to another frequency where they will not cause any disturbance.
Test Setup Information
Device Under Test
AP NameNetgear WAC505
SSIDTestAP22
Number of Clients1
" \ "

Graph


Detailed Results
Client NameChannelSwitched Channelstation association time(milliseconds)Result
sta000052"+ ch_list[0] +""+ time_ass[0] +""+ data +"
sta0000100"+ ch_list[1] + ""+ time_ass[1] +""+ data_1 +"
sta0000120"+ ch_list[2] +""+ time_ass[2] +""+ data_2 +"
" - file = open("dfs.html", "w") + file = open("/home/lanforge/lanforge-scripts/py-scripts/dfs.html", "w") file.write(html_content) file.close()