Skip to content
Commit 94caa8f2 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Maureen Helm
Browse files

drivers: modem: gsm: allocate in modem_cmd_handler with K_NO_WAIT



All net_bufs allocated to modem_cmd_handler's data->rx_buf are consumed
synchronously in gsm_ppp.c in the same thread. This means that
allocating them with timeout makes no sense, because timeout
will *always* be hit when there are no more buffers in net_buf_pool.

Get rid of the unnecessary timeout, as it doesn't help and just slows
down processing of incoming data, increasing possibility of data
overrun.

Signed-off-by: default avatarMarcin Niestroj <m.niestroj@grinn-global.com>
parent b3272f3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment