From 3a4ea9a0b5ad29934a9d845dfac3b78ef7e748bf Mon Sep 17 00:00:00 2001 From: Dan O'Reilly Date: Sat, 11 Apr 2009 19:57:02 -0400 Subject: [PATCH] Make sure we fall back to wpa_cli if wpactrl isn't available when stopping wpa_supplicant. --- wicd/backends/be-ioctl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wicd/backends/be-ioctl.py b/wicd/backends/be-ioctl.py index 4314054..ed7dc3f 100644 --- a/wicd/backends/be-ioctl.py +++ b/wicd/backends/be-ioctl.py @@ -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