summaryrefslogtreecommitdiffstats
path: root/lib/network/monitor.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-02 14:16:04 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-02 14:16:04 +0000
commitb76aaeed03155c95c862abe15ff036f8ff6d486f (patch)
treebb7fb65fd9596f37298a5d00f14bdf783643f8a0 /lib/network/monitor.pm
parent8bd6e48a50110601902530c5fd45bb5d64c03509 (diff)
downloaddrakx-net-b76aaeed03155c95c862abe15ff036f8ff6d486f.tar
drakx-net-b76aaeed03155c95c862abe15ff036f8ff6d486f.tar.gz
drakx-net-b76aaeed03155c95c862abe15ff036f8ff6d486f.tar.bz2
drakx-net-b76aaeed03155c95c862abe15ff036f8ff6d486f.tar.xz
drakx-net-b76aaeed03155c95c862abe15ff036f8ff6d486f.zip
force using wireless-tools when wpa_supplicant gives empty results
(by removing useless info from wpa_cli output)
Diffstat (limited to 'lib/network/monitor.pm')
-rw-r--r--lib/network/monitor.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/network/monitor.pm b/lib/network/monitor.pm
index 1754d89..84b944c 100644
--- a/lib/network/monitor.pm
+++ b/lib/network/monitor.pm
@@ -28,6 +28,7 @@ sub list_wireless {
if (!$has_roaming && !$>) {
$results = `/usr/sbin/wpa_cli scan_results 2>/dev/null`;
$list = `/usr/sbin/wpa_cli list_networks 2>/dev/null`;
+ $_ =~ s/^Selected interface (.*)\n//g foreach $results, $list;
}
if ($results && $list) {
#- bssid / frequency / signal level / flags / ssid