Fix get_aps_on_channel to call get_aps directly; remove redundant return statement
This commit is contained in:
parent
6f83109579
commit
b6d6b8989a
1 changed files with 1 additions and 2 deletions
|
@ -202,7 +202,7 @@ def get_clients_on_channel(capture, ap_channel, ap_bssid):
|
|||
return len(clients)
|
||||
|
||||
def get_aps_on_channel(capture, ap_channel):
|
||||
return len(get_aps_on_channel(capture, ap_channel))
|
||||
return len(get_aps(capture, ap_channel))
|
||||
|
||||
def calculate_signal_strength_stats(capture, ap_channel):
|
||||
try:
|
||||
|
@ -326,7 +326,6 @@ def analyze_pcap(pcapng_path, start_ts, end_ts, ap_bssid, ap_channel):
|
|||
|
||||
return clients_on_ap, clients_on_channel, aps_on_channel, None, avg_ap_signal, max_ap_signal, unlinked_devices
|
||||
|
||||
|
||||
def main():
|
||||
args = parse_args()
|
||||
cap = pyshark.FileCapture(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue