Mageia Bugzilla – Attachment 6354 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]
1st of two drakx-net patches that include linuxero's fix
0001-add-Linuxero-s-fix-to-get-rid-of-fake-x00-SSIDs-mga-.patch (text/plain), 1.50 KB, created by
Marja Van Waes
on 2015-04-25 18:29:30 CEST
(
hide
)
Description:
1st of two drakx-net patches that include linuxero's fix
Filename:
MIME Type:
Creator:
Marja Van Waes
Created:
2015-04-25 18:29:30 CEST
Size:
1.50 KB
patch
obsolete
>From e9822f2ee114dca5859e3849a84e03daadd34162 Mon Sep 17 00:00:00 2001 >From: Marja van Waes <marja@mageia.org> >Date: Sat, 25 Apr 2015 17:45:36 +0200 >Subject: [PATCH 1/2] add Linuxero's fix to get rid of fake \x00 SSIDs > (mga#13685) > >--- > lib/network/monitor.pm | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/lib/network/monitor.pm b/lib/network/monitor.pm >index b06bbe3..de08b79 100644 >--- a/lib/network/monitor.pm >+++ b/lib/network/monitor.pm >@@ -35,6 +35,9 @@ sub list_wireless { > #- bssid / frequency / signal level / flags / ssid > while ($results =~ /^((?:[0-9a-f]{2}:){5}[0-9a-f]{2})\t(\d+)\t(-?\d+)\t(.*?)\t(.*)$/mg) { > my ($ap, $frequency, $signal_strength, $flags, $essid) = ($1, $2, $3, $4, $5); >+ $_ = $essid; >+ s/\\x00//g; >+ $essid = $_; > $networks{$ap}{ap} ||= $ap; > #- wpa_supplicant may list the network two times, use ||= > $networks{$ap}{frequency} ||= $frequency; >@@ -89,6 +92,9 @@ sub list_wireless { > my ($has_key, $has_wpa, $has_eap); > foreach (@list) { > if ((/^\s*$/ || /Cell/) && exists $net->{ap}) { >+ $_ = $net->{essid}; >+ s/\\x00//g; >+ $net->{essid} = $_; > $net->{current} = to_bool($net->{ap} ? $net->{ap} eq $current_ap : $net->{essid} && $net->{essid} eq $current_essid); > $net->{flags} = $has_wpa ? '[WPA]' : $has_key ? '[WEP]' : ''; > $net->{flags} .= '[EAP]' if $has_eap; >-- >2.3.2 >
From e9822f2ee114dca5859e3849a84e03daadd34162 Mon Sep 17 00:00:00 2001 From: Marja van Waes <marja@mageia.org> Date: Sat, 25 Apr 2015 17:45:36 +0200 Subject: [PATCH 1/2] add Linuxero's fix to get rid of fake \x00 SSIDs (mga#13685) --- lib/network/monitor.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/network/monitor.pm b/lib/network/monitor.pm index b06bbe3..de08b79 100644 --- a/lib/network/monitor.pm +++ b/lib/network/monitor.pm @@ -35,6 +35,9 @@ sub list_wireless { #- bssid / frequency / signal level / flags / ssid while ($results =~ /^((?:[0-9a-f]{2}:){5}[0-9a-f]{2})\t(\d+)\t(-?\d+)\t(.*?)\t(.*)$/mg) { my ($ap, $frequency, $signal_strength, $flags, $essid) = ($1, $2, $3, $4, $5); + $_ = $essid; + s/\\x00//g; + $essid = $_; $networks{$ap}{ap} ||= $ap; #- wpa_supplicant may list the network two times, use ||= $networks{$ap}{frequency} ||= $frequency; @@ -89,6 +92,9 @@ sub list_wireless { my ($has_key, $has_wpa, $has_eap); foreach (@list) { if ((/^\s*$/ || /Cell/) && exists $net->{ap}) { + $_ = $net->{essid}; + s/\\x00//g; + $net->{essid} = $_; $net->{current} = to_bool($net->{ap} ? $net->{ap} eq $current_ap : $net->{essid} && $net->{essid} eq $current_essid); $net->{flags} = $has_wpa ? '[WPA]' : $has_key ? '[WEP]' : ''; $net->{flags} .= '[EAP]' if $has_eap; -- 2.3.2
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