From afa9c4395c7aff570b871ae1a360e299a6e05d59 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 12 May 2008 12:33:59 +0000 Subject: default to roaming for all encryption types if ROAMING is true in /etc/sysconfig/drakx-net --- lib/network/connection/wireless.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm index bdac4af..6cb43da 100644 --- a/lib/network/connection/wireless.pm +++ b/lib/network/connection/wireless.pm @@ -318,7 +318,10 @@ sub guess_network_access_settings { undef $self->{ifcfg}{WIRELESS_IWPRIV} if is_old_rt2x00($self->get_driver) && $self->{ifcfg}{WIRELESS_IWPRIV} =~ /WPAPSK/; - $self->{control}{roaming} = exists $self->{ifcfg}{WIRELESS_WPA_DRIVER} && !is_old_rt2x00($self->get_driver); + my $system_file = '/etc/sysconfig/drakx-net'; + my %global_settings = getVarsFromSh($system_file); + $self->{control}{roaming} = (exists $self->{ifcfg}{WIRELESS_WPA_DRIVER} || text2bool($global_settings{ROAMING})) + && !is_old_rt2x00($self->get_driver); $self->{access}{network}{mode} = $network && $network->{mode} || -- cgit v1.2.1