diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-04-27 06:33:30 -0400 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-04-27 06:33:30 -0400 |
commit | cc48b5ef34849a2daa5645841f618d389c8179b0 (patch) | |
tree | 94f343192e22584dd448c8d393f6664a1ed7ab65 /lib/network | |
parent | 28ac87d6be55e97e86f3128391da62e20ad87f1e (diff) | |
download | drakx-net-cc48b5ef34849a2daa5645841f618d389c8179b0.tar drakx-net-cc48b5ef34849a2daa5645841f618d389c8179b0.tar.gz drakx-net-cc48b5ef34849a2daa5645841f618d389c8179b0.tar.bz2 drakx-net-cc48b5ef34849a2daa5645841f618d389c8179b0.tar.xz drakx-net-cc48b5ef34849a2daa5645841f618d389c8179b0.zip |
fix displaying MAC for hidden network (mga13685)
ESSID is bogus when the card fails to detect it's hidden...
Diffstat (limited to 'lib/network')
-rw-r--r-- | lib/network/monitor.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/network/monitor.pm b/lib/network/monitor.pm index b06bbe3..43edb29 100644 --- a/lib/network/monitor.pm +++ b/lib/network/monitor.pm @@ -97,7 +97,9 @@ sub list_wireless { $has_key = $has_wpa = $has_eap = undef; } /Address: (.*)/ and $net->{ap} = lc($1); - /ESSID:"(.*?)"/ and $net->{essid} = $1; + if (my ($essid) = /ESSID:"(.*?)"/) { + $essid !~ /^\\x00/ and $net->{essid} = $essid; + } /Mode:(\S*)/ and $net->{mode} = $1; $net->{mode} = 'Managed' if $net->{mode} eq 'Master'; $_ =~ $quality_match and $net->{signal_strength} = $eval_quality->($1); |