Diff between b2371f9f11340232c4ba0a256794323b147cdade and 42d43b28428f93f36febdb4969c0a8526281d9ab
Changed Files
| File | Additions | Deletions | Status |
| src/advertising.c | +1 | -2 | modified |
Full Patch
diff --git a/src/advertising.c b/src/advertising.c
index dce79bb..bd121e5 100644
--- a/src/advertising.c
+++ b/src/advertising.c
@@ -734,8 +734,7 @@ static bool set_flags(struct btd_adv_client *client, uint8_t flags)
/* Set BR/EDR Not Supported if adapter is not discoverable but the
* instance is.
*/
- if ((flags & (BT_AD_FLAG_GENERAL | BT_AD_FLAG_LIMITED)) &&
- !btd_adapter_get_discoverable(client->manager->adapter))
+ if (!btd_adapter_get_discoverable(client->manager->adapter))
flags |= BT_AD_FLAG_NO_BREDR;
if (!bt_ad_add_flags(client->data, &flags, 1))