From aae48b5c325200fd2f8b16f70d337a5a12b70da2 Mon Sep 17 00:00:00 2001 From: Marcin Niestroj Date: Fri, 8 Apr 2022 12:01:24 +0200 Subject: [PATCH] modem: sim7080: use NET_SOCKETS_OFFLOAD_PRIORITY Use configurable NET_SOCKETS_OFFLOAD_PRIORITY instead of hardcoded value in the driver itself. This allows to select relative priority of offloaded TLS versus native TLS when used together with NET_SOCKETS_TLS_PRIORITY. Signed-off-by: Marcin Niestroj --- drivers/modem/simcom-sim7080.c | 4 ++-- drivers/modem/simcom-sim7080.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/modem/simcom-sim7080.c b/drivers/modem/simcom-sim7080.c index 91abebb3756..2a843ab77e2 100644 --- a/drivers/modem/simcom-sim7080.c +++ b/drivers/modem/simcom-sim7080.c @@ -2380,5 +2380,5 @@ NET_DEVICE_DT_INST_OFFLOAD_DEFINE(0, modem_init, NULL, &mdata, NULL, CONFIG_MODEM_SIMCOM_SIM7080_INIT_PRIORITY, &api_funcs, MDM_MAX_DATA_LENGTH); -NET_SOCKET_REGISTER(simcom_sim7080, MDM_SOCKET_PRIO, AF_UNSPEC, offload_is_supported, - offload_socket); +NET_SOCKET_REGISTER(simcom_sim7080, CONFIG_NET_SOCKETS_OFFLOAD_PRIORITY, AF_UNSPEC, + offload_is_supported, offload_socket); diff --git a/drivers/modem/simcom-sim7080.h b/drivers/modem/simcom-sim7080.h index 9627e6e34f0..c756801f536 100644 --- a/drivers/modem/simcom-sim7080.h +++ b/drivers/modem/simcom-sim7080.h @@ -50,7 +50,6 @@ #define MDM_APN CONFIG_MODEM_SIMCOM_SIM7080_APN #define MDM_LTE_BANDS CONFIG_MODEM_SIMCOM_SIM7080_LTE_BANDS #define RSSI_TIMEOUT_SECS 30 -#define MDM_SOCKET_PRIO 40 /* * Default length of modem data.