diff --git a/drivers/modem/quectel-bg9x.c b/drivers/modem/quectel-bg9x.c index acd50af34c4..fcae3c6b193 100644 --- a/drivers/modem/quectel-bg9x.c +++ b/drivers/modem/quectel-bg9x.c @@ -1085,6 +1085,19 @@ static struct net_if_api api_funcs = { static bool offload_is_supported(int family, int type, int proto) { + if (family != AF_INET && + family != AF_INET6) { + return false; + } + + if (type != SOCK_STREAM) { + return false; + } + + if (proto != IPPROTO_TCP) { + return false; + } + return true; }