diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-03-18 21:15:40 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-03-18 21:15:40 +0000 |
commit | 91fc58fc890a658bd96bedd11b13b21b8c8647f0 (patch) | |
tree | 2962fc3e1e0634f94a77a6e5c205a33cf2a350eb /lib/network | |
parent | addd108e464eb7b94f90c322b27043c9932c065e (diff) | |
download | drakx-net-91fc58fc890a658bd96bedd11b13b21b8c8647f0.tar drakx-net-91fc58fc890a658bd96bedd11b13b21b8c8647f0.tar.gz drakx-net-91fc58fc890a658bd96bedd11b13b21b8c8647f0.tar.bz2 drakx-net-91fc58fc890a658bd96bedd11b13b21b8c8647f0.tar.xz drakx-net-91fc58fc890a658bd96bedd11b13b21b8c8647f0.zip |
Added support for regulatory domain settings (#47324).
Diffstat (limited to 'lib/network')
-rw-r--r-- | lib/network/connection/wireless.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm index 9ea8199..4e284d1 100644 --- a/lib/network/connection/wireless.pm +++ b/lib/network/connection/wireless.pm @@ -6,6 +6,9 @@ use strict; use common; use log; +# list of CRDA domains +our @crda_domains = qw(AE AL AM AN AR AT AU AZ BA BE BG BH BL BN BO BR BY BZ CA CH CL CN CO CR CS CY CZ DE DK DO DZ EC EE EG ES FI FR GB GE GR GT HK HN HR HU ID IE IL IN IR IS IT JM JO JP KP KR KW KZ LB LI LK LT LU LV MA MC MK MO MT MX MY NL NO NP NZ OM PA PE PG PH PK PL PR PT QA RO RU SA SE SG SI SK SV SY TH TN TR TT TW UA US UY UZ VE VN YE ZA ZW); + #- class attributes: #- network: ID of the selected network @@ -360,6 +363,8 @@ sub check_device { sub load_interface_settings { my ($self) = @_; $self->SUPER::load_interface_settings; + # by default, use US regulatory domain for wireless networks + $self->{ifcfg}{CRDA_DOMAIN} ||= "US"; } sub get_networks { @@ -485,6 +490,8 @@ the username and password values specified here.") }, only used for EAP certificate based authentication. It could be considered as the alternative to username/password combo. Note: other related settings are shown on the Advanced page.") }, + { label => N("Wireless regulatory domain"), val => \$self->{ifcfg}{CRDA_DOMAIN}, + list => \@crda_domains, sort => 1, advanced => 1, }, { label => N("Network ID"), val => \$self->{ifcfg}{WIRELESS_NWID}, advanced => 1 }, { label => N("Operating frequency"), val => \$self->{ifcfg}{WIRELESS_FREQ}, advanced => 1 }, { label => N("Sensitivity threshold"), val => \$self->{ifcfg}{WIRELESS_SENS}, advanced => 1 }, |