Diff between e59a915db9d8e274bc2aa8214a920c8abe72203f and 385f0f357d98ddc5a021c0951740571139169994

Changed Files

File Additions Deletions Status
src/advertising.c +6 -1 modified

Full Patch

diff --git a/src/advertising.c b/src/advertising.c
index bd121e5..2fc6f91 100644
--- a/src/advertising.c
+++ b/src/advertising.c
@@ -759,10 +759,15 @@ static bool parse_discoverable(DBusMessageIter *iter,
 
 	dbus_message_iter_get_basic(iter, &discoverable);
 
+	/* For broadcast mode, need not add any flags
+	 * just return true without adding flags.
+	 */
 	if (discoverable)
 		flags = BT_AD_FLAG_GENERAL;
-	else
+	else if (client->type != AD_TYPE_BROADCAST)
 		flags = 0x00;
+	else
+		return true;
 
 	if (!set_flags(client , flags))
 		goto fail;