Update wifi

This commit is contained in:
Jeroen Oudshoorn
2024-01-05 21:53:59 +01:00
parent 379d87f50a
commit 1d9ba3a7cf

View File

@ -323,7 +323,6 @@ 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]))
return channels