summaryrefslogtreecommitdiffstats
path: root/perl-install/network/netconnect.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-02-05 17:44:23 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-02-05 17:44:23 +0000
commitc136855a7196da06006c010daab5d5d40ec36a01 (patch)
treef8be3f761e6b23e7b448603b061b4f7ab66d98b8 /perl-install/network/netconnect.pm
parent28a8346a55a1db48e4deb127e97dae3128b503f0 (diff)
downloaddrakx-backup-do-not-use-c136855a7196da06006c010daab5d5d40ec36a01.tar
drakx-backup-do-not-use-c136855a7196da06006c010daab5d5d40ec36a01.tar.gz
drakx-backup-do-not-use-c136855a7196da06006c010daab5d5d40ec36a01.tar.bz2
drakx-backup-do-not-use-c136855a7196da06006c010daab5d5d40ec36a01.tar.xz
drakx-backup-do-not-use-c136855a7196da06006c010daab5d5d40ec36a01.zip
enable one to not enter optional parameters (aka relax checks on valid
values for bitrate and frequency) (#7432)
Diffstat (limited to 'perl-install/network/netconnect.pm')
-rw-r--r--perl-install/network/netconnect.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index a409f875e..006c46485 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -898,11 +898,11 @@ See iwpriv(8) man page for further information."),
}
],
complete => sub {
- if ($ethntf->{WIRELESS_FREQ} !~ /[0-9.]*[kGM]/) {
+ if ($ethntf->{WIRELESS_FREQ} && $ethntf->{WIRELESS_FREQ} !~ /[0-9.]*[kGM]/) {
$in->ask_warn(N("Error"), N("Freq should have the suffix k, M or G (for example, \"2.46G\" for 2.46 GHz frequency), or add enough '0' (zeroes)."));
return 1, 6;
}
- if ($ethntf->{WIRELESS_RATE} !~ /[0-9.]*[kGM]/) {
+ if ($ethntf->{WIRELESS_RATE} && $ethntf->{WIRELESS_RATE} !~ /[0-9.]*[kGM]/) {
$in->ask_warn(N("Error"), N("Rate should have the suffix k, M or G (for example, \"11M\" for 11M), or add enough '0' (zeroes)."));
return 1, 8;
}