drivers: fix socket close() implementations for socket offloading
PR #27485 introduced new implementations for close() that do not build correctly. This commit fixes the problem by re-implementing them. Fixes #27587 Signed-off-by: Vincent Wan <vwan@ti.com>
This commit is contained in:
parent
1ccc65a9c9
commit
eb9a184324
3 changed files with 6 additions and 18 deletions
|
@ -1205,8 +1205,9 @@ static int offload_socket(int family, int type, int proto)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int offload_close(struct modem_socket *sock)
|
||||
static int offload_close(void *obj)
|
||||
{
|
||||
struct modem_socket *sock = (struct modem_socket *)obj;
|
||||
char buf[sizeof("AT+USOCL=#\r")];
|
||||
int ret;
|
||||
|
||||
|
@ -1453,11 +1454,6 @@ static ssize_t offload_sendto(void *obj, const void *buf, size_t len,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int offload_close(void *obj)
|
||||
{
|
||||
return offload_close((struct modem_socket *)obj);
|
||||
}
|
||||
|
||||
static int offload_ioctl(void *obj, unsigned int request, va_list args)
|
||||
{
|
||||
switch (request) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue