Bug#655159: WICD and \x00 ESSIDs

January 31st, 2012 - 01:10 pm ET by David Paleino | Report spam

Hello people,
I haven't thought I could setup my Android phone to act as a router and.. yes,
I reproduced it :)
(and my proposed patch works beautifully)

$ wicd-cli -ly
# BSSID Channel ESSID
0 00:18:**:**:**:** 11 Paleino
Traceback (most recent call last):
File "/usr/share/wicd/cli/wicd-cli.py", line 113, in <module>
wireless.GetWirelessProperty(network_id, 'essid'))
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 143, in __call__
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 630, in
call_blocking message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: Traceback
(most recent call last): File
"/usr/lib/python2.7/dist-packages/dbus/service.py", line 745, in _message_cb
_method_reply_return(connection, message, method_name, signature, *retval) File
"/usr/lib/python2.7/dist-packages/dbus/service.py", line 252, in
_method_reply_return reply.append(signature=signature, *retval) TypeError:
expected string without null bytes

$ sudo nano /usr/share/pyshared/wicd/wnettools.py
$ sudo rm
-rf /usr/lib/python*/*-packages/wicd/*.pyc /usr/lib/python*/*-packages/wicd/*.pyo /usr/share/wicd/*/*.pyc /usr/share/wicd/*/*.pyo
$ sudo service wicd restart
Restarting Network connection manager: wicd.
$ wicd-cli -ly # BSSID
# BSSID Channel ESSID
0 00:18:**:**:**:** 11 Paleino
1 [..] 1 Telecom-45213349
2 [..] 6 Alice-76638493
3 38:EC:**:**:**:** 6 <hidden> <-!!
4 [..] 6 A02-RA141-W54
5 [..] 6 <hidden>
6 [..] 6 FASTWEB-1-00036FE343D8
7 [..] 1 accardi

The 38:EC:... AP is my phone: without the patch, DBus bailed out, the GTK gui
was greyed out, and it was totally unusable. Since, from what I understood in
an upstream bugreport and here (IIRC), networks with \x00 are supposed to be
hidden (unless someone is so crazy to use '\x00' literally as ESSID), WICD
reports it correctly (sure, it won't connect to my phone, since in my case I'm
one of those "crazy guys using \x00 literally"). I hope there's no much people
in the world using that :)

I'll soon upload a package with the above fix, so that you don't have to get
your hands dirty :)

Sorry for the long time needed for this; I simply didn't think I had another
router handy -- my phone!

Have a nice evening,
David

. ''`. Debian developer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 -|- http://deb.li/dapal
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174






To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Martin Ziegler
February 05th, 2012 - 03:30 am ET | Report spam
Dear David,

I tested wicd 1.7.1-1 in the Frankfurt Airport and it worked
well:

:/usr/local/sbin# wicd-cli -ly
# BSSID Channel ESSID
0 00:0E:D7:B2:9F:71 1 \x00
1 00:0E:D7:B2:9F:73 1 \x00
2 00:0E:D7:B2:9F:70 1 \x00
3 00:26:0A:EF:F8:50 6 \x00
4 00:26:0A:EF:F8:52 6 Telekom
5 00:26:0A:EF:F8:53 6 \x00
6 00:26:0A:EF:F8:51 6 \x00
7 00:0E:D7:B0:E2:C1 11 \x00
8 00:0E:D7:B0:E2:C2 11 Telekom
9 00:18:F8:5F:79:85 6 <hidden>
10 F4:6D:04:94:F6:30 6 Fraport IPS
11 00:11:92:2A:A3:20 6 \x00
12 00:0E:D7:B0:E2:C0 11 \x00
13 00:11:5C:D1:1C:60 1 \x00
14 00:0E:D7:B0:E2:C3 11 \x00
15 00:0E:84:F0:23:E0 11 tmobile
16 00:0E:84:F0:23:E1 11 \x00
17 00:0E:D7:B2:9F:72 1 Telekom
18 00:11:21:77:4C:E0 1 tmobile

It seems though, that wicd hesitates to connect
automatically where it should do so.

Regards,

Martin




To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics