mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 08:14:28 +08:00
client: Fix advertise broadcast
When advertising with type broadcast it cannot be discoverable as that would require setting flags which is not allowed by the spec.
This commit is contained in:
parent
5dba69086d
commit
c3159848b9
@ -512,6 +512,9 @@ void ad_register(DBusConnection *conn, GDBusProxy *manager, const char *type)
|
||||
g_free(ad.type);
|
||||
ad.type = g_strdup(type);
|
||||
|
||||
if (!strcasecmp(ad.type, "Broadcast"))
|
||||
ad.discoverable = false;
|
||||
|
||||
if (g_dbus_register_interface(conn, AD_PATH, AD_IFACE, ad_methods,
|
||||
NULL, ad_props, NULL, NULL) == FALSE) {
|
||||
bt_shell_printf("Failed to register advertising object\n");
|
||||
|
Loading…
Reference in New Issue
Block a user