Revisión 135
Añadido por Francisco Mora hace alrededor de 14 años
wifi-ltsp/trunk/parsehostapd/escanea.py | ||
---|---|---|
import os
|
||
import re
|
||
import locale
|
||
import time
|
||
from subprocess import Popen, STDOUT, PIPE, call
|
||
|
||
# Expresiones Regulares.
|
||
... | ... | |
|
||
#Si hostapd está corriendo iwlist scan no funciona:
|
||
Popen(["invoke-rc.d","hostapd","stop"]).wait()
|
||
time.sleep(2.0)
|
||
Popen(["ifconfig",interface,"up"]).wait()
|
||
|
||
cmd = 'iwlist ' + interface + ' scan'
|
Exportar a: Unified diff
Retardo en escanea.py para deteccion de redes wifi