wraith-wireless / PyRIC

Python wireless library for Linux
http://wraith-wireless.github.io/PyRIC
Other
95 stars 50 forks source link

Differentiate betw/ no device present and no/partial support for netlink #24

Closed wraith-wireless closed 8 years ago

wraith-wireless commented 8 years ago

Need a way to notify users when a device is not present vs their card's driver does not fully support netlink/nl80211.

Possible Solutions:

  1. compose a check script that identifies cards and their support (or lack of) for netlink functions
  2. add a check in errors of type errno 19 no such device to identify lack of support for netlink

    2 is the preferred solution.

wraith-wireless commented 8 years ago

getcard which is the entry point for any nl80211 functionality uses devinfo to retrieve the Card tuple. devinfo will now report No Such device as two seperate errors one identifying when there is no device currently present on the machine and one identifying when the specified dev's driver does not support nl80211