cpu/nrf5x_common/radio/nrfmin: drop duplicated code
`gnrc_netif_hdr_build()` calls internally `gnrc_netif_hdr_init()`, which does initialize `gnrc_netif_hdr_t::rssi` and `gnrc_netif_hdr_t::lqi`. So no need to do this twice.
This commit is contained in:
parent
fee3a8540f
commit
e2c5467d09
@ -163,8 +163,6 @@ static gnrc_pktsnip_t *gnrc_nrfmin_recv(gnrc_netif_t *dev)
|
||||
if (nrfmin->dst_addr == NRFMIN_ADDR_BCAST) {
|
||||
netif->flags |= GNRC_NETIF_HDR_FLAGS_BROADCAST;
|
||||
}
|
||||
netif->lqi = 0;
|
||||
netif->rssi = 0;
|
||||
gnrc_netif_hdr_set_netif(netif, dev);
|
||||
pkt_snip->type = nrfmin->proto;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user