mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update wifi
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user