drivers: modem: hl7800: UDP socket not closed

Ensure UDP socket is always closed when offload_put is called.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
This commit is contained in:
Ryan Erickson 2020-10-13 11:41:11 -05:00 committed by Jukka Rissanen
commit 72d54055a3

View file

@ -4577,9 +4577,7 @@ static int offload_put(struct net_context *context)
wakeup_hl7800(); wakeup_hl7800();
if (sock->state != SOCK_SERVER_CLOSED) { send_at_cmd(sock, cmd1, MDM_CMD_SEND_TIMEOUT, 0, false);
send_at_cmd(sock, cmd1, MDM_CMD_SEND_TIMEOUT, 0, false);
}
if (sock->type == SOCK_STREAM) { if (sock->type == SOCK_STREAM) {
/* delete session */ /* delete session */