summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-02 14:19:28 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-02 14:19:28 +0000
commitc884a5d4dded72a4f334bf38e6764e6b2bcb4f8e (patch)
tree51fb77e892b2a8518ecd15d2b9b44ccb5b245269
parent283a0af5227182f2f035f1a5f2fd94e7f3075811 (diff)
downloaddrakx-net-c884a5d4dded72a4f334bf38e6764e6b2bcb4f8e.tar
drakx-net-c884a5d4dded72a4f334bf38e6764e6b2bcb4f8e.tar.gz
drakx-net-c884a5d4dded72a4f334bf38e6764e6b2bcb4f8e.tar.bz2
drakx-net-c884a5d4dded72a4f334bf38e6764e6b2bcb4f8e.tar.xz
drakx-net-c884a5d4dded72a4f334bf38e6764e6b2bcb4f8e.zip
reorder
-rw-r--r--lib/network/connection/wireless.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index 9c68ab7..18f312f 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -611,14 +611,14 @@ sub add_nework_to_wpa_supplicant {
sub write_settings {
my ($self, $o_net, $o_modules_conf) = @_;
- $self->add_nework_to_wpa_supplicant if $self->need_wpa_supplicant;
-
- wlan_ng_configure($self->{access}{network}{essid}, $self->{access}{network}{key}, $self->get_interface, $self->get_driver) if $self->{thirdparty}{name} eq 'prism2';
-
my $network = $self->get_selected_network;
network::network::write_wireless_conf($_, $self->build_ifcfg_settings) foreach
grep { $_ } ($network ? $network->{ap} : ()), $self->{access}{network}{essid};
+ $self->add_nework_to_wpa_supplicant if $self->need_wpa_supplicant;
+
+ wlan_ng_configure($self->{access}{network}{essid}, $self->{access}{network}{key}, $self->get_interface, $self->get_driver) if $self->{thirdparty}{name} eq 'prism2';
+
$self->SUPER::write_settings($o_net, $o_modules_conf);
}