Bluetooth: Mesh: Fix solicitation PDU tx dep on proxy

If `CONFIG_BT_MESH_GATT_SERVER` is disabled or the advertising set
doesn't support proxy adv, the solicitation PDU will not be sent.
However, solicitation PDU transmission doesn't depend on the proxy
feature of the device it sends. Therefore, solicatation PDU should be
sent regradless of `CONFIG_BT_MESH_GATT_SERVER` option and advertiser
tag.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
This commit is contained in:
Pavel Vasilyev 2024-02-05 16:15:41 +01:00 committed by Henrik Brix Andersen
commit 548851ac7a

View file

@ -292,13 +292,13 @@ static void send_pending_adv(struct k_work *work)
}
}
if (!IS_ENABLED(CONFIG_BT_MESH_GATT_SERVER) ||
!(ext_adv->tags & BT_MESH_ADV_TAG_BIT_PROXY)) {
if (IS_ENABLED(CONFIG_BT_MESH_PROXY_SOLICITATION) &&
!bt_mesh_sol_send()) {
return;
}
if (IS_ENABLED(CONFIG_BT_MESH_PROXY_SOLICITATION) &&
!bt_mesh_sol_send()) {
if (!IS_ENABLED(CONFIG_BT_MESH_GATT_SERVER) ||
!(ext_adv->tags & BT_MESH_ADV_TAG_BIT_PROXY)) {
return;
}