mirror of
https://github.com/gryf/wicd.git
synced 2025-12-24 07:02:29 +01:00
Remove pointless assignment in be-ioctl
Set wireless mode before putting interface up. Put wireless interfaces up before trying to authenticate.
This commit is contained in:
@@ -407,7 +407,6 @@ class WirelessInterface(Interface, BaseWirelessInterface):
|
||||
except ValueError:
|
||||
return False
|
||||
|
||||
result = result
|
||||
if result.endswith("COMPLETED"):
|
||||
return True
|
||||
elif result.endswith("DISCONNECTED"):
|
||||
|
||||
@@ -831,17 +831,17 @@ class WirelessConnectThread(ConnectThread):
|
||||
self.reset_ip_addresses(wiface)
|
||||
self.stop_wpa(wiface)
|
||||
self.flush_routes(wiface)
|
||||
|
||||
# Generate PSK and authenticate if needed.
|
||||
if self.wpa_driver != 'ralink legacy':
|
||||
self.generate_psk_and_authenticate(wiface)
|
||||
wiface.SetMode(self.network['mode'])
|
||||
|
||||
# Put interface up.
|
||||
self.SetStatus('configuring_interface')
|
||||
self.put_iface_up(wiface)
|
||||
|
||||
# Generate PSK and authenticate if needed.
|
||||
if self.wpa_driver != 'ralink legacy':
|
||||
self.generate_psk_and_authenticate(wiface)
|
||||
|
||||
# Associate.
|
||||
wiface.SetMode(self.network['mode'])
|
||||
wiface.Associate(self.network['essid'], self.network['channel'],
|
||||
self.network['bssid'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user