Using wpa_supplicant via dbus in python - error

James Rayner iphitus at iphitus.org
Thu Aug 14 19:44:25 EDT 2008


On Fri, Aug 15, 2008 at 4:26 AM, Dan Williams <dcbw at redhat.com> wrote:
>
> You do need to pass a d-bus byte array, since SSIDs can contain embedded
> NULLs and are not necessarily UTF-8.  I think you can just cast the SSID
> value to a dbus.ByteArray() when setting the dictionary member.
>
> Dan
>

Still no luck

rnet.set(dbus.Dictionary({'ssid':dbus.ByteArray('rayner')}))

Traceback (most recent call last):
  File "connect.py", line 35, in <module>
    rnet.set(dbus.Dictionary({'ssid':dbus.ByteArray('rayner')}))
  File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 68, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/python2.5/site-packages/dbus/connection.py", line
607, in call_blocking
    message, timeout)
dbus.exceptions.DBusException:
fi.epitest.hostap.WPASupplicant.InvalidOptions: Did not receive
correct message arguments.

Thanks for your help,

James


More information about the HostAP mailing list