Change interface type to monitor in reset_interface; update main function to improve clarity.
This commit is contained in:
parent
17683f5bd5
commit
2da759bf39
1 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ def reset_interface(interface):
|
||||||
try:
|
try:
|
||||||
subprocess.call(["ip", "link", "set", interface, "down"])
|
subprocess.call(["ip", "link", "set", interface, "down"])
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
subprocess.call(["iw", interface, "set", "type", "managed"])
|
subprocess.call(["iw", interface, "set", "type", "monitor"])
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
subprocess.call(["ip", "link", "set", interface, "up"])
|
subprocess.call(["ip", "link", "set", interface, "up"])
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue