mirror of
https://github.com/gryf/wicd.git
synced 2026-01-31 13:05:49 +01:00
Actually display the error messag we get when scanning fails in the ioctl backend.
Make sure we actually abort the connection attempt when authentication validation fails.
This commit is contained in:
@@ -288,7 +288,7 @@ class WirelessInterface(Interface, BaseWirelessInterface):
|
|||||||
try:
|
try:
|
||||||
results = self.scan_iface.Scan()
|
results = self.scan_iface.Scan()
|
||||||
except iwscan.error, e:
|
except iwscan.error, e:
|
||||||
print "ERROR: %s"
|
print "ERROR: %s" % e
|
||||||
return []
|
return []
|
||||||
return filter(None, [self._parse_ap(cell) for cell in results])
|
return filter(None, [self._parse_ap(cell) for cell in results])
|
||||||
|
|
||||||
|
|||||||
@@ -866,7 +866,8 @@ class WirelessConnectThread(ConnectThread):
|
|||||||
if self.network.get('enctype'):
|
if self.network.get('enctype'):
|
||||||
self.SetStatus('validating_authentication')
|
self.SetStatus('validating_authentication')
|
||||||
if not wiface.ValidateAuthentication(time.time()):
|
if not wiface.ValidateAuthentication(time.time()):
|
||||||
if not self.connect_result:
|
print "connect result is %s" % self.connect_result
|
||||||
|
if not self.connect_result or self.connect_result == 'Failed':
|
||||||
self.abort_connection('bad_pass')
|
self.abort_connection('bad_pass')
|
||||||
|
|
||||||
# Set up gateway, IP address, and DNS servers.
|
# Set up gateway, IP address, and DNS servers.
|
||||||
|
|||||||
Reference in New Issue
Block a user