diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-10-02 17:59:56 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-10-02 17:59:56 +0000 |
commit | 658179546f22d6e229be3f58457e604a0faf977b (patch) | |
tree | 328135068ea40485a632703ba0d2a2b23c44e3c0 /lib/network/connection/wireless.pm | |
parent | 026787d2ff9b6e51e4c621a2ac95948ab7af5665 (diff) | |
download | drakx-net-658179546f22d6e229be3f58457e604a0faf977b.tar drakx-net-658179546f22d6e229be3f58457e604a0faf977b.tar.gz drakx-net-658179546f22d6e229be3f58457e604a0faf977b.tar.bz2 drakx-net-658179546f22d6e229be3f58457e604a0faf977b.tar.xz drakx-net-658179546f22d6e229be3f58457e604a0faf977b.zip |
refresh wpa_supplicant network ids after wpa_supplicant is restarted too
Diffstat (limited to 'lib/network/connection/wireless.pm')
-rw-r--r-- | lib/network/connection/wireless.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm index 7027092..361da27 100644 --- a/lib/network/connection/wireless.pm +++ b/lib/network/connection/wireless.pm @@ -361,10 +361,9 @@ sub get_networks { sub refresh_roaming_ids { my ($self) = @_; #- needed when switching from non-roaming to roaming - #- to get wpa_supplicant network IDs - get_networks($self) if - $self->{control}{roaming} && - !any { defined $_->{id} } values %{$self->{networks}}; + #- or after restarting wpa_supplicant + #- to get fresh wpa_supplicant network IDs + get_networks($self) if $self->{control}{roaming}; } sub guess_network { |