Fix typo
This commit is contained in:
1 parent
9ea38a8ebc
commit
5aaaa117e7
1 file changed
+1
-1
@@ -338,7 +338,7 @@ class WirelessInterface(Interface, wnettools.BaseWirelessInterface):
|
|||||||
socket_loc = os.path.join(ctrl_iface, self.iface)
|
socket_loc = os.path.join(ctrl_iface, self.iface)
|
||||||
if os.path.exists(socket_loc):
|
if os.path.exists(socket_loc):
|
||||||
try:
|
try:
|
||||||
return wpactrl.WPACtrl(socket)
|
return wpactrl.WPACtrl(socket_loc)
|
||||||
except wpactrl.error, e:
|
except wpactrl.error, e:
|
||||||
print "Couldn't open ctrl_interface: %s" % e
|
print "Couldn't open ctrl_interface: %s" % e
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in new issue
Block a user