summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/network/connection/wireless.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index b8630d5..8b7d856 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -574,11 +574,9 @@ sub write_settings {
if ($self->need_wpa_supplicant) {
if ($self->{access}{network}{encryption} =~ /eap/i) {
- #for eap
- wpa_supplicant_add_eap_network($self->{access}{network});
+ wpa_supplicant_add_eap_network($self->{access}{network});
} else {
- #For WEP/PSK
- wpa_supplicant_add_network($self->{access}{network}{essid}, $self->{access}{network}{encryption}, $self->{access}{network}{key}, $self->{access}{network}{mode});
+ wpa_supplicant_add_network($self->{access}{network}{essid}, $self->{access}{network}{encryption}, $self->{access}{network}{key}, $self->{access}{network}{mode});
}
}