Make sure we fall back to wpa_cli if wpactrl isn't available when stopping wpa_supplicant.
This commit is contained in:
1 parent
0a007d0f44
commit
3a4ea9a0b5
1 file changed
+2
@@ -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