From c884a5d4dded72a4f334bf38e6764e6b2bcb4f8e Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 2 May 2008 14:19:28 +0000 Subject: reorder --- lib/network/connection/wireless.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/network/connection/wireless.pm') 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); } -- cgit v1.2.1