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

Attachment: signature.asc
Description: PGP signature

Reply via email to