diff options
author | Inga Stotland <inga.stotland@intel.com> | 2020-02-26 22:56:07 -0800 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2020-03-05 08:01:28 -0800 |
commit | ff41bce83de019fc1630bdc46ae0d8f2375350b1 (patch) | |
tree | d75a8a79f91aaa2b89d0dae30251b8f0da4c537a /mesh/net.c | |
parent | 6e93cf440908a87a1e30aec76bd54d52e0ad136c (diff) | |
download | bluez-ff41bce83de019fc1630bdc46ae0d8f2375350b1.tar.gz |
mesh: Remove unused parameters from internal rx functions
This removes unused ttl parameter from mesh_model_rx(). The TTL value
is not processed at the access layer, so there is no need to pass it
to a model.
Also, remove "uint32_t dst" parameter from the typedef of
mesh_model_recv_cb: providing a just destination address is sufficient
for internally implemented models (currently, it's only Config Server)
Diffstat (limited to 'mesh/net.c')
-rw-r--r-- | mesh/net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesh/net.c b/mesh/net.c index 5cf358fbd..d3325e073 100644 --- a/mesh/net.c +++ b/mesh/net.c @@ -1778,8 +1778,8 @@ static bool msg_rxed(struct mesh_net *net, bool frnd, uint32_t iv_index, } not_for_friend: - return mesh_model_rx(net->node, szmic, seqAuth, seq, iv_index, ttl, - net_idx, src, dst, key_aid, data, size); + return mesh_model_rx(net->node, szmic, seqAuth, seq, iv_index, net_idx, + src, dst, key_aid, data, size); } static uint16_t key_id_to_net_idx(struct mesh_net *net, uint32_t key_id) |