awkman / pywifi

A cross-platform module for manipulating WiFi devices.
MIT License
453 stars 154 forks source link

Cannot scan on linux #4

Closed kootenpv closed 8 years ago

kootenpv commented 8 years ago

Perhaps I'm missing something, but the following doesn't work:

>>> import pywifi
>>> iface = pywifi.PyWiFi().interfaces()[0]
>>> iface.scan()
>>> iface.scan_results()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.5/site-packages/pywifi/iface.py", line 39, in scan_results
    return wifiutils.scan_results(self.__raw_obj)
  File "/usr/lib/python3.5/site-packages/pywifi/linux/wifiutils.py", line 48, in scan_results
    security += tmp_rsn['KeyMgmt']
TypeError: unsupported operand type(s) for +=: 'bool' and 'dbus.Array'

@awkman any idea?

Michael-Jalloh commented 8 years ago

Yes it doesn't. I just tried it too. Can u please help

awkman commented 8 years ago

I pull a new commit to fix this issue, please try it again.

kootenpv commented 8 years ago

Fixed! Thank you.