This commit is contained in:
SiloDS
2021-07-30 13:36:47 +01:00
parent ab9b2aa44b
commit 827f115b06
3 changed files with 5 additions and 5 deletions

View File

@@ -76,8 +76,8 @@ def parse_iwlist(iwlist_output, current_sid):
cell["Connected"] = "Yes"
else:
cell["Connected"] = ""
if line.partition("Signal level=")[2].split("/")[0] != "" != -1:
cell["Signal"] = line.partition("Signal level=")[2].split("/")[0]
if line.partition("Quality=")[2].split("/")[0] != "" != -1:
cell["Signal"] = line.partition("Quality=")[2].split("/")[0] + "/70"
if line.find("Encryption key:") != -1:
if line.find(":on") != -1:
cell["WPA"] = "WPA2"