Skip to content

Commit 2f3e902

Browse files
jukkarnashif
authored andcommitted
net: Start RX before the TX
Honor the comment in the code and make sure RX is started before TX so that we can receive responses to any data we are sending. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
1 parent 3ac0e76 commit 2f3e902

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/net/ip/net_core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,13 +647,13 @@ int net_recv_data(struct net_if *iface, struct net_pkt *pkt)
647647

648648
static void init_rx_queues(void)
649649
{
650+
net_tc_rx_init();
651+
650652
/* Starting TX side. The ordering is important here and the TX
651653
* can only be started when RX side is ready to receive packets.
652654
*/
653655
net_if_init();
654656

655-
net_tc_rx_init();
656-
657657
/* This will take the interface up and start everything. */
658658
net_if_post_init();
659659

0 commit comments

Comments
 (0)