joshvillbrandt / wireless

A dead simple, cross-platform Python library to connect to wireless networks.
https://pypi.org/project/wireless/
Apache License 2.0
83 stars 42 forks source link

fix: use ubuntu 18.04 nmcli parameters #36

Open Minipada opened 5 years ago

Minipada commented 5 years ago

Description

iface parameter is valid for older versions of nmcli but not new ones. ifname is the new parameter name.

Without this patch, the iface parameter was not found on ubuntu 18 and the command simply uses the first interface it found.

I am not sure that iface is used or not on ubuntu 16 and couldnt test it.