From 1d9ba3a7cf118394fa6ef8c7c7e0189a971f5734 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Fri, 5 Jan 2024 21:53:59 +0100 Subject: [PATCH] Update wifi --- pwnagotchi/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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