Skip to content

Commit

Permalink
drivers/net/wiznet:Fix bug in TCP/UDP communication
Browse files Browse the repository at this point in the history
Fix to prevent transfer fragmentation.
  • Loading branch information
SPRESENSE committed Nov 27, 2024
1 parent 63b1da6 commit 9e2b7a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wiznet/wiz_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ static FAR struct wiznet_dev_s *g_wizdev;
/****************************************************************************
* Name: wiznet_cris_enter
****************************************************************************/
static irqstate_t flags;

static void wiznet_cris_enter(void)
{
flags = enter_critical_section();
}

/****************************************************************************
Expand All @@ -112,6 +114,7 @@ static void wiznet_cris_enter(void)

static void wiznet_cris_exit(void)
{
leave_critical_section(flags);
}

/****************************************************************************
Expand Down

0 comments on commit 9e2b7a9

Please sign in to comment.