fix very incorrect insert_at_rx_head; the bugged version would make
the rest of the rx list dangling. this is used to insert the ack packet needed by the upper layers in the netstack.
This commit is contained in:
parent
a25fcc53e8
commit
b3bb3ff53d
|
@ -559,7 +559,8 @@ void insert_at_rx_head(volatile packet_t *p) {
|
||||||
} else {
|
} else {
|
||||||
rx_head->right = p;
|
rx_head->right = p;
|
||||||
p->left = rx_head;
|
p->left = rx_head;
|
||||||
rx_head = p; rx_head->left = 0;
|
p->right = 0;
|
||||||
|
rx_head = p;
|
||||||
}
|
}
|
||||||
|
|
||||||
// print_packets("insert at rx head");
|
// print_packets("insert at rx head");
|
||||||
|
|
Loading…
Reference in a new issue