From 9c0c5f414811aa86c5fd13b80b8910c06647162c Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Fri, 5 Jan 2024 21:57:38 +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 3047d14b..3f9b2836 100644 --- a/pwnagotchi/utils.py +++ b/pwnagotchi/utils.py @@ -323,7 +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() - channels.append(int(line.split()[1])) + channels.append(int(line)) return channels