Skip to content

Commit 1cee1cc

Browse files
committed
applications: serial_lte_modem: Add workaround for upmerge
Next upmerge brings Kconfig changes that we might want to cherry-pick earlier so prepare a workaround for allowing build against pre-upmerge or cherry-pick tree. Signed-off-by: Seppo Takalo <[email protected]>
1 parent a7e36dc commit 1cee1cc

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

applications/serial_lte_modem/overlay-ppp-cmux-linux.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ CONFIG_SLM_PPP=y
1010
CONFIG_SLM_CR_TERMINATION=y
1111

1212
CONFIG_MODEM_CMUX_MTU=127
13-
CONFIG_MODEM_CMUX_WORK_BUFFER_SIZE=536
1413
CONFIG_SLM_CMUX_UART_BUFFER_SIZE=600
1514

1615
# Enable SLM UART backend

applications/serial_lte_modem/src/slm_cmux.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ LOG_MODULE_REGISTER(slm_cmux, CONFIG_SLM_LOG_LEVEL);
3131
#define DLCI_TO_INDEX(dlci) ((dlci) - 1)
3232
#define INDEX_TO_DLCI(index) ((index) + 1)
3333

34+
/* Workaround before upmerge */
35+
#ifndef MODEM_CMUX_WORK_BUFFER_SIZE
36+
#define MODEM_CMUX_WORK_BUFFER_SIZE CONFIG_MODEM_CMUX_WORK_BUFFER_SIZE
37+
#endif
38+
3439
static struct {
3540
/* UART backend */
3641
struct modem_pipe *uart_pipe;
@@ -42,8 +47,8 @@ static struct {
4247

4348
/* CMUX */
4449
struct modem_cmux instance;
45-
uint8_t cmux_receive_buf[CONFIG_MODEM_CMUX_WORK_BUFFER_SIZE];
46-
uint8_t cmux_transmit_buf[CONFIG_MODEM_CMUX_WORK_BUFFER_SIZE];
50+
uint8_t cmux_receive_buf[MODEM_CMUX_WORK_BUFFER_SIZE];
51+
uint8_t cmux_transmit_buf[MODEM_CMUX_WORK_BUFFER_SIZE];
4752

4853
/* CMUX channels (Data Link Connection Identifier); index = address - 1 */
4954
struct cmux_dlci {

0 commit comments

Comments
 (0)