Update wifi

This commit is contained in:
Jeroen Oudshoorn
2024-01-05 21:57:38 +01:00
parent 1d9ba3a7cf
commit 9c0c5f4148

View File

@ -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) output = subprocess.getoutput("/sbin/iw phy%s channels | grep ' MHz' | sed 's/^.*\[//g' | sed s/\].*\$//g" % phy)
for line in output.split("\n"): for line in output.split("\n"):
line = line.strip() line = line.strip()
channels.append(int(line.split()[1])) channels.append(int(line))
return channels return channels