Add type assertion and debug statements in query_metrics for AP channel validation

This commit is contained in:
Yaro Kasear 2025-04-29 11:43:14 -05:00
parent 92015c4ba7
commit a1cc33e842

View file

@ -137,6 +137,9 @@ class IndexedCapture:
]
def query_metrics(self, start_ts, end_ts, ap_bssid, ap_channel):
ap_channel = int(ap_channel)
assert isinstance(ap_channel, int), f"ap_channel must be int, got {type(ap_channel)}"
packets = self.get_packets_in_time_range(start_ts, end_ts)
# Build local windowed structures