Skip to content

Commit 8ab2a90

Browse files
author
Tomasz Bursztyka
committed
net: rpl: Fix a build issue
s/energy_est/estimation when using net_rpl_node_energy_object. Change-Id: I4b326a0dbbca11d48de0c595dfe843495fe10e04 Signed-off-by: Tomasz Bursztyka <[email protected]>
1 parent ff59548 commit 8ab2a90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/net/ip/rpl-mrhof.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ static uint16_t calculate_path_metric(struct net_rpl_parent *parent)
199199
return parent->mc.obj.etx + net_ipv6_nbr_data(nbr)->link_metric;
200200

201201
#elif defined(CONFIG_NET_RPL_MC_ENERGY)
202-
return parent->mc.obj.energy.energy_est +
202+
return parent->mc.obj.energy.estimation +
203203
net_ipv6_nbr_data(nbr)->link_metric;
204204
#else
205205
#error "Unsupported routing metric configured"
@@ -361,7 +361,7 @@ static int net_rpl_mrhof_update_mc(struct net_rpl_instance *instance)
361361
}
362362

363363
instance->mc.obj.energy.flags = type << NET_RPL_MC_ENERGY_TYPE;
364-
instance->mc.obj.energy.energy_est = path_metric;
364+
instance->mc.obj.energy.estimation = path_metric;
365365
#endif
366366

367367
return 0;

0 commit comments

Comments
 (0)