mirror of
https://github.com/gryf/wicd.git
synced 2026-01-03 12:24:14 +01:00
Make sure we fall back to wpa_cli if wpactrl isn't available when stopping wpa_supplicant.
This commit is contained in:
@@ -426,6 +426,8 @@ class WirelessInterface(Interface, BaseWirelessInterface):
|
||||
@neediface(False)
|
||||
def StopWPA(self):
|
||||
""" Terminates wpa_supplicant using its ctrl interface. """
|
||||
if not WPACTRL_AVAIL:
|
||||
return BaseWirelessInterface.StopWPA(self)
|
||||
wpa = self._connect_to_wpa_ctrl_iface()
|
||||
if not wpa:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user