net: icmpv6: fix if need calc tx checksum

Fix regression from 0a3bf289b6.

Signed-off-by: Manuel Arguelles <manuel.arguelles@nxp.com>
This commit is contained in:
Manuel Arguelles 2022-11-26 13:33:07 +07:00 committed by Carles Cufí
parent 7ac69dc4ca
commit d17caaacc5

View file

@ -80,7 +80,7 @@ int net_icmpv6_finalize(struct net_pkt *pkt)
}
icmp_hdr->chksum = 0U;
if (net_if_need_calc_rx_checksum(net_pkt_iface(pkt))) {
if (net_if_need_calc_tx_checksum(net_pkt_iface(pkt))) {
icmp_hdr->chksum = net_calc_chksum_icmpv6(pkt);
}