Bluetooth: Mesh: Fix passing CID to model publication messages
The vendor variants of the model publication client messages were not passing onward the CID, rather passing CID_NVAL which is clearly not right. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
9acfc7fb5c
commit
d6b905910b
1 changed files with 2 additions and 4 deletions
|
@ -1137,8 +1137,7 @@ int bt_mesh_cfg_mod_pub_get_vnd(u16_t net_idx, u16_t addr, u16_t elem_addr,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
return mod_pub_get(net_idx, addr, elem_addr, mod_id, CID_NVAL,
|
||||
pub, status);
|
||||
return mod_pub_get(net_idx, addr, elem_addr, mod_id, cid, pub, status);
|
||||
}
|
||||
|
||||
static int mod_pub_set(u16_t net_idx, u16_t addr, u16_t elem_addr,
|
||||
|
@ -1210,8 +1209,7 @@ int bt_mesh_cfg_mod_pub_set_vnd(u16_t net_idx, u16_t addr, u16_t elem_addr,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
return mod_pub_set(net_idx, addr, elem_addr, mod_id, CID_NVAL,
|
||||
pub, status);
|
||||
return mod_pub_set(net_idx, addr, elem_addr, mod_id, cid, pub, status);
|
||||
}
|
||||
|
||||
int bt_mesh_cfg_hb_sub_set(u16_t net_idx, u16_t addr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue