How to handle multiple SSIDs with the same BSS

Marcel Holtmann marcel
Wed Dec 30 20:04:04 PST 2009


Hi Witold,

> >> OK. I started working on common dbus code that both the old and new
> >> interface share. This compiles, but I have not yet run any tests on it.
> >> Anyway, this looks quite straightforward, so I would hope to get this
> >> into working condition in the near future.
> > 
> > I can try to break your new code if you like :)
> > 
> I broke it:) Crashes on startup when another instance is already running:
> 
> Starting program:
> /home/wsowa/projekty/nm/hostap/wpa_supplicant/wpa_supplicant -udd
> dbus: Register D-Bus object '/fi/w1/wpa_supplicant1'
> 
> dbus_bus_request_name[dbus]: Resource temporarily unavailable
> 
> Could not request DBus service name: already registered.
> 
> dbus: Unregister D-Bus object '/fi/w1/wpa_supplicant1'
> 
> 
> Program received signal SIGABRT, Aborted.
> 0x00007ffff6690645 in raise () from /lib64/libc.so.6
> (gdb) bt
> #0  0x00007ffff6690645 in raise () from /lib64/libc.so.6
> #1  0x00007ffff6691c33 in abort () from /lib64/libc.so.6
> #2  0x00007ffff66cc8e8 in ?? () from /lib64/libc.so.6
> #3  0x00007ffff66d2108 in ?? () from /lib64/libc.so.6
> #4  0x00007ffff66d3c66 in free () from /lib64/libc.so.6
> #5  0x000000000045cb5e in free_dbus_object_desc (obj_dsc=0x6c6a90) at
> dbus/dbus_new_helpers.c:964
> #6  0x00007ffff719e23c in ?? () from /lib64/libdbus-1.so.3
> #7  0x00007ffff718db30 in dbus_connection_unregister_object_path () from
> /lib64/libdbus-1.so.3
> #8  0x00000000004641ae in wpas_dbus_deinit (priv=0x6c59f0) at
> dbus/dbus_common.c:403
> #9  0x00000000004643d2 in wpas_dbus_init (global=0x6c5950) at
> dbus/dbus_common.c:383
> #10 0x000000000040b78d in wpas_notify_supplicant_initialized
> (global=0x6c5950) at notify.c:31
> #11 0x000000000046cbc1 in wpa_supplicant_init (params=0x7fffffffdb60) at
> wpa_supplicant.c:2320
> #12 0x00000000004722ca in main (argc=<value optimized out>, argv=<value
> optimized out>) at main.c:251
> 
> wpas_dbus_ctrl_iface_init fails in wpas_dbus_init so wpas_dbus_deinit is
> called and tries to deinit dbus iface which wasn't initialized correctyl.

I have another one caused by just calling GetAll method:

Program terminated with signal 11, Segmentation fault.
#0  wpas_dbus_getter_bsss (message=0x130e3c0, wpa_s=0x12ec820) at dbus/dbus_new_handlers.c:2495
2495                    os_snprintf(path, WPAS_DBUS_OBJECT_PATH_MAX,
(gdb) bt
#0  wpas_dbus_getter_bsss (message=0x130e3c0, wpa_s=0x12ec820) at dbus/dbus_new_handlers.c:2495
#1  0x000000000042d5dd in get_all_properties (property_dsc=0x1307c30, 
    interface=0x130b774 "fi.w1.wpa_supplicant1.Interface", message=0x130e3c0)
    at dbus/dbus_new_helpers.c:654
#2  properties_get_all (property_dsc=0x1307c30, 
    interface=0x130b774 "fi.w1.wpa_supplicant1.Interface", message=0x130e3c0)
    at dbus/dbus_new_helpers.c:722
#3  properties_handler (property_dsc=0x1307c30, 
    interface=0x130b774 "fi.w1.wpa_supplicant1.Interface", message=0x130e3c0)
    at dbus/dbus_new_helpers.c:833
#4  0x000000000042d97d in message_handler (connection=<value optimized out>, 
    message=<value optimized out>, user_data=<value optimized out>)
    at dbus/dbus_new_helpers.c:926
#5  0x0000003924c1cbee in _dbus_object_tree_dispatch_and_unlock (tree=0x12e9090, 
    message=0x130e3c0) at dbus-object-tree.c:856
#6  0x0000003924c10a1c in dbus_connection_dispatch (connection=0x12e93d0)
    at dbus-connection.c:4485
#7  0x0000000000434458 in process_watch (priv=0x12e8840, watch=0x12e8e90, type=EVENT_TYPE_READ)
    at dbus/dbus_common.c:65
#8  0x000000000040c86b in eloop_sock_table_dispatch (table=0x667c28, fds=0x12ec4c0)
    at ../src/utils/eloop.c:216
#9  0x000000000040cea9 in eloop_run () at ../src/utils/eloop.c:548
#10 0x0000000000435fe8 in wpa_supplicant_run (global=0x12e87c0) at wpa_supplicant.c:2380
#11 0x000000000043d5f0 in main (argc=<value optimized out>, argv=<value optimized out>)
    at main.c:274

Regards

Marcel





More information about the Hostap mailing list