diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-05-27 19:35:37 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-05-27 19:35:37 +0000 |
commit | e5ebe7dc672b6f3858c0cfa2e20d1c2180fba109 (patch) | |
tree | da42941b33e7ed6f364af094103375dacffd71cc /lib | |
parent | d2ca1c3c67f831bd7c12a93e48d12057cc7dcedf (diff) | |
download | drakx-net-e5ebe7dc672b6f3858c0cfa2e20d1c2180fba109.tar drakx-net-e5ebe7dc672b6f3858c0cfa2e20d1c2180fba109.tar.gz drakx-net-e5ebe7dc672b6f3858c0cfa2e20d1c2180fba109.tar.bz2 drakx-net-e5ebe7dc672b6f3858c0cfa2e20d1c2180fba109.tar.xz drakx-net-e5ebe7dc672b6f3858c0cfa2e20d1c2180fba109.zip |
Simplified wireless configuration for Mandriva 2010
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/connection/wireless.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm index 7f46176..0ca26dd 100644 --- a/lib/network/connection/wireless.pm +++ b/lib/network/connection/wireless.pm @@ -446,10 +446,12 @@ sub get_network_access_settings { { label => N("Operating Mode"), val => \$self->{access}{network}{mode}, list => [ N_("Ad-hoc"), N_("Managed"), N_("Master"), N_("Repeater"), N_("Secondary"), N_("Auto") ], format => \&translate, + advanced => 1, }, { label => N("Network name (ESSID)"), val => \$self->{access}{network}{essid}, disabled => sub { my $network = $self->get_selected_network; $network && $network->{essid} } }, { label => N("Encryption mode"), val => \$self->{access}{network}{encryption}, list => [ keys %wireless_enc_modes ], + advanced => 1, sort => 1, format => sub { translate($wireless_enc_modes{$_[0]}) } }, { label => N("Encryption key"), val => \$self->{access}{network}{key}, hidden => sub { $self->{hide_passwords} }, @@ -458,18 +460,21 @@ sub get_network_access_settings { type => "bool", val => \$self->{hide_passwords} }, { text => N("Force using this key as ASCII string (e.g. for Livebox)"), type => "bool", val => \$self->{access}{network}{force_ascii_key}, + advanced => 1, disabled => sub { #- only for WEP keys looking like hexadecimal !member($self->{access}{network}{encryption}, qw(open restricted)) || !get_hex_key($self->{access}{network}{key}); } }, { label => N("EAP Login/Username"), val => \$self->{access}{network}{eap_identity}, + advanced => 1, disabled => sub { $self->{access}{network}{encryption} ne 'wpa-eap' }, help => N("The login or username. Format is plain text. If you need to specify domain then try the untested syntax DOMAIN\\username") }, { label => N("EAP Password"), val => \$self->{access}{network}{eap_password}, hidden => sub { $self->{hide_passwords} }, + advanced => 1, disabled => sub { $self->{access}{network}{encryption} ne 'wpa-eap' }, help => N(" Password: A string. Note that this is not the same thing as a psk. @@ -486,6 +491,7 @@ automatically PEAP and TTLS modes. TLS mode is completely certificate based and may ignore the username and password values specified here.") }, { label => N("EAP client certificate"), val => \$self->{access}{network}{eap_client_cert}, + advanced => 1, disabled => sub { $self->{access}{network}{encryption} ne 'wpa-eap' }, help => N("The complete path and filename of client certificate. This is only used for EAP certificate based authentication. It could be |