Skip to content

Commit

Permalink
move file. Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
isapozhkov committed Oct 24, 2016
1 parent 70cb0d3 commit ebb640c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions wificontrol/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .wificontrol import wificontrol
6 changes: 3 additions & 3 deletions wificontrol.py → wificontrol/wificontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def _remove_network_from_wpa_supplicant_file(self, ssid):
def _reconfigure(self):
try:
if self._wpa_supplicant_start:
self._launch("wpa_cli _reconfigure")
self._launch("wpa_cli reconfigure")
return True
except subprocess.CalledProcessError:
return False
Expand Down Expand Up @@ -600,7 +600,7 @@ def _try_to_connect(self, ssid):

def _enable_network(self, network_id):
try:
self._launch("wpa_cli _enable_network {}".format(
self._launch("wpa_cli enable_network {}".format(
network_id))
return True
except subprocess.CalledProcessError:
Expand All @@ -620,7 +620,7 @@ def _check_correct_connection(self, ssid):

def _reconnect(self):
try:
self._launch("wpa_cli _reconnect")
self._launch("wpa_cli reconnect")
return True
except (subprocess.CalledProcessError):
return False
Expand Down

0 comments on commit ebb640c

Please sign in to comment.