mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
Improved sniff logic for DFS
Signed-off-by: jitendra-kushavah <jitendra.kushavah@candelatech.com>
This commit is contained in:
@@ -1638,6 +1638,19 @@ class lf_tests(lf_libs):
|
|||||||
station_data=["4way time (us)", "channel", "cx time (us)", "dhcp (ms)",
|
station_data=["4way time (us)", "channel", "cx time (us)", "dhcp (ms)",
|
||||||
"ip", "signal", "mode", "parent dev"], dut_data=dut_data)
|
"ip", "signal", "mode", "parent dev"], dut_data=dut_data)
|
||||||
logging.info(f"station_data:{station_data}")
|
logging.info(f"station_data:{station_data}")
|
||||||
|
|
||||||
|
station_list = list(station_data.keys())
|
||||||
|
table_dict = {}
|
||||||
|
sta_channel_before_dfs_list = []
|
||||||
|
sta_channel_after_dfs_list = []
|
||||||
|
pass_fail = []
|
||||||
|
sta_channel_after_dfs = None
|
||||||
|
sta_channel_before_dfs = None
|
||||||
|
logging.info("The configured channel is: " + str(channel))
|
||||||
|
sta_channel_before_dfs = station_data[station_list[0]]["channel"]
|
||||||
|
logging.info("station channel before dfs: " + str(sta_channel_before_dfs))
|
||||||
|
if str(channel) == str(sta_channel_before_dfs):
|
||||||
|
# start sniffer
|
||||||
for ssid in station_data:
|
for ssid in station_data:
|
||||||
sniffer_radio = station_data[ssid]['parent dev']
|
sniffer_radio = station_data[ssid]['parent dev']
|
||||||
shelf = list(ssid.split('.'))[0]
|
shelf = list(ssid.split('.'))[0]
|
||||||
@@ -1651,17 +1664,6 @@ class lf_tests(lf_libs):
|
|||||||
radio=sniffer_radio,
|
radio=sniffer_radio,
|
||||||
duration=300)
|
duration=300)
|
||||||
|
|
||||||
station_list = list(station_data.keys())
|
|
||||||
table_dict = {}
|
|
||||||
sta_channel_before_dfs_list = []
|
|
||||||
sta_channel_after_dfs_list = []
|
|
||||||
pass_fail = []
|
|
||||||
sta_channel_after_dfs = None
|
|
||||||
sta_channel_before_dfs = None
|
|
||||||
logging.info("The configured channel is: " + str(channel))
|
|
||||||
sta_channel_before_dfs = station_data[station_list[0]]["channel"]
|
|
||||||
logging.info("station channel before dfs: " + str(sta_channel_before_dfs))
|
|
||||||
if str(channel) == str(sta_channel_before_dfs):
|
|
||||||
if tip_2x_obj is not None:
|
if tip_2x_obj is not None:
|
||||||
logging.info("AP idx: " + str(self.dut_data.index(dut)))
|
logging.info("AP idx: " + str(self.dut_data.index(dut)))
|
||||||
tip_2x_obj.simulate_radar(idx=self.dut_data.index(dut))
|
tip_2x_obj.simulate_radar(idx=self.dut_data.index(dut))
|
||||||
|
|||||||
Reference in New Issue
Block a user