diff --git a/pwnagotchi/utils.py b/pwnagotchi/utils.py index 2cc25bc0..3047d14b 100644 --- a/pwnagotchi/utils.py +++ b/pwnagotchi/utils.py @@ -323,8 +323,7 @@ def iface_channels(ifname): output = subprocess.getoutput("/sbin/iw phy%s channels | grep ' MHz' | sed 's/^.*\[//g' | sed s/\].*\$//g" % phy) for line in output.split("\n"): line = line.strip() - if line.startswith("Channel "): - channels.append(int(line.split()[1])) + channels.append(int(line.split()[1])) return channels