Mageia Bugzilla – Attachment 6365 Details for
Bug 13685
Fix for seeing \x00 (repeated several times) instead of Mac address of a hidden network
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
just skip bogus ESSID when reading it
13685.diff (text/plain), 696 bytes, created by
Thierry Vignaud
on 2015-04-27 11:14:53 CEST
(
hide
)
Description:
just skip bogus ESSID when reading it
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2015-04-27 11:14:53 CEST
Size:
696 bytes
patch
obsolete
>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);
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);
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 13685
:
5262
|
6354
|
6355
|
6363
|
6364
| 6365 |
6366
|
6367
|
6368
|
9207
|
9208
|
9217
|
9218
|
9349