1
0
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:
Dan O'Reilly
2009-04-11 19:57:02 -04:00
parent 0a007d0f44
commit 3a4ea9a0b5

View File

@@ -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