awkman/pywifi

Doubled results

MomboteQ opened this issue · 0 comments

I have this code:

import pywifi
import time

iface = pywifi.PyWiFi().interfaces()[0]
iface.scan()
time.sleep(10)
profiles = iface.scan_results()
print([profile.ssid for profile in profiles])

and have this result

['Q60_2492', 'HUAWEI-B525-2ACC', 'Q60_2492', 'HUAWEI-B525-2ACC', 'PLAY Internet 4G LTE-4F17C2', 'HUAWEI-B525-5G-2ACC']

script printed doubled results (doubled only saved networks)