summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-09-15 04:06:37 +0000
committerOlivier Blin <oblin@mandriva.org>2005-09-15 04:06:37 +0000
commit8709b05ba3de6b4db8fb42bfdbb137f93957070e (patch)
treea67d996377c6daaf1b6eb4c74df4fac0676db873 /perl-install/standalone
parent972007c22ac6fdb2790a6125ebc881e91a332fc4 (diff)
downloaddrakx-8709b05ba3de6b4db8fb42bfdbb137f93957070e.tar
drakx-8709b05ba3de6b4db8fb42bfdbb137f93957070e.tar.gz
drakx-8709b05ba3de6b4db8fb42bfdbb137f93957070e.tar.bz2
drakx-8709b05ba3de6b4db8fb42bfdbb137f93957070e.tar.xz
drakx-8709b05ba3de6b4db8fb42bfdbb137f93957070e.zip
use Managed mode if AP isn't Ad-Hoc
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakroam2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/drakroam b/perl-install/standalone/drakroam
index 6b605ff1a..e7eaf4aad 100755
--- a/perl-install/standalone/drakroam
+++ b/perl-install/standalone/drakroam
@@ -124,7 +124,7 @@ sub configure_ap {
$wireless_net->{BOOTPROTO} = $dhcp ? 'dhcp' : 'static';
$wireless_net->{WIRELESS_ENC_KEY} = $wireless_enc_key && network::wireless::convert_wep_key_for_iwconfig($wireless_enc_key, $wireless_enc_mode eq 'restricted');
- $wireless_net->{WIRELESS_MODE} = $network->{mode} eq 'Master' ? 'Managed' : $network->{mode};
+ $wireless_net->{WIRELESS_MODE} = $network->{mode} eq 'Ad-Hoc' ? $network->{mode} : 'Managed';
if ($has_roaming || $wireless_enc_mode eq 'wpa-psk') {
$wireless_net->{WIRELESS_WPA_DRIVER} = network::wireless::wpa_supplicant_get_driver($wireless_module);