diff --git a/subsys/bluetooth/host/adv.c b/subsys/bluetooth/host/adv.c index 2075d58249f..7901baf78af 100644 --- a/subsys/bluetooth/host/adv.c +++ b/subsys/bluetooth/host/adv.c @@ -1810,7 +1810,7 @@ int bt_le_per_adv_set_data(const struct bt_le_ext_adv *adv, return -EINVAL; } - if (!ad_len || !ad) { + if (ad_len != 0 && ad == NULL) { return -EINVAL; }