mirror of
https://github.com/gryf/wicd.git
synced 2026-02-19 00:15:47 +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)
|
@neediface(False)
|
||||||
def StopWPA(self):
|
def StopWPA(self):
|
||||||
""" Terminates wpa_supplicant using its ctrl interface. """
|
""" Terminates wpa_supplicant using its ctrl interface. """
|
||||||
|
if not WPACTRL_AVAIL:
|
||||||
|
return BaseWirelessInterface.StopWPA(self)
|
||||||
wpa = self._connect_to_wpa_ctrl_iface()
|
wpa = self._connect_to_wpa_ctrl_iface()
|
||||||
if not wpa:
|
if not wpa:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user