struct net_buf_simple *buf)
{
struct bt_mesh_cfg_srv *cfg = model->user_data;
- struct bt_mesh_subnet *sub;
BT_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x len %u: %s",
ctx->net_idx, ctx->app_idx, ctx->addr, buf->len,
bt_mesh_adv_update();
#endif
- sub = bt_mesh_subnet_get(cfg->hb_pub.net_idx);
- if ((cfg->hb_pub.feat & BLE_MESH_FEAT_PROXY) && sub) {
+ if (cfg->hb_pub.feat & BLE_MESH_FEAT_PROXY) {
bt_mesh_heartbeat_send();
}
if (!cfg) {
BT_WARN("No Configuration Server context available");
} else if (buf->data[0] == 0x00 || buf->data[0] == 0x01) {
- struct bt_mesh_subnet *sub;
bool change;
if (cfg->relay == BLE_MESH_RELAY_NOT_SUPPORTED) {
BLE_MESH_TRANSMIT_COUNT(cfg->relay_retransmit),
BLE_MESH_TRANSMIT_INT(cfg->relay_retransmit));
- sub = bt_mesh_subnet_get(cfg->hb_pub.net_idx);
- if ((cfg->hb_pub.feat & BLE_MESH_FEAT_RELAY) && sub && change) {
+ if ((cfg->hb_pub.feat & BLE_MESH_FEAT_RELAY) && change) {
bt_mesh_heartbeat_send();
}
} else {
struct net_buf_simple *buf)
{
struct bt_mesh_cfg_srv *cfg = model->user_data;
- struct bt_mesh_subnet *sub;
BT_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x len %u: %s",
ctx->net_idx, ctx->app_idx, ctx->addr, buf->len,
}
}
- sub = bt_mesh_subnet_get(cfg->hb_pub.net_idx);
- if ((cfg->hb_pub.feat & BLE_MESH_FEAT_FRIEND) && sub) {
+ if (cfg->hb_pub.feat & BLE_MESH_FEAT_FRIEND) {
bt_mesh_heartbeat_send();
}