Fix lettura potenza segnale
This commit is contained in:
parent
8ee8cc64f2
commit
6dc868ea37
|
@ -95,7 +95,7 @@ def PrintInfo(pkt) :
|
||||||
mac = " MAC: " + pkt.addr2
|
mac = " MAC: " + pkt.addr2
|
||||||
SSID = " SSID: " + pkt.info.ljust(maxlenght)[0:maxlenght]
|
SSID = " SSID: " + pkt.info.ljust(maxlenght)[0:maxlenght]
|
||||||
OUI = " OUI: "+ oui
|
OUI = " OUI: "+ oui
|
||||||
db = -(256-ord(pkt.notdecoded[-4:-3]))
|
db = pkt.dBm_AntSignal
|
||||||
if db <= -100:
|
if db <= -100:
|
||||||
quality = 0
|
quality = 0
|
||||||
elif db >= -50:
|
elif db >= -50:
|
||||||
|
|
Loading…
Reference in New Issue