From 88668fb4f82f74357967f460ec739a91ac01418e Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Fri, 5 Jan 2024 22:00:28 +0100 Subject: [PATCH] Update wifi --- pwnagotchi/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/utils.py b/pwnagotchi/utils.py index 3f9b2836..d3a64c79 100644 --- a/pwnagotchi/utils.py +++ b/pwnagotchi/utils.py @@ -320,7 +320,7 @@ def total_unique_handshakes(path): def iface_channels(ifname): channels = [] phy = subprocess.getoutput("/sbin/iw %s info | grep wiphy | cut -d ' ' -f 2" % ifname) - output = subprocess.getoutput("/sbin/iw phy%s channels | grep ' MHz' | sed 's/^.*\[//g' | sed s/\].*\$//g" % phy) + output = subprocess.getoutput("/sbin/iw phy%s channels | grep ' MHz' | grep -v disabled | sed 's/^.*\[//g' | sed s/\].*\$//g" % phy) for line in output.split("\n"): line = line.strip() channels.append(int(line))