From d2235391651f95ef750fdd6b9d24aca8ed299a69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Fri, 17 May 2019 16:18:09 +0200 Subject: [PATCH] wifi_drv: ignore socket flags on socket creation The libc features support for SOCK_CLOEXEC now which gets set via the type argument in 'libnl'. Since we are only interested in the actual type, i.e. if it is SOCK_RAW, just ignore the flags. Issue #3289. --- repos/dde_linux/src/lib/wifi/socket_call.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/dde_linux/src/lib/wifi/socket_call.cc b/repos/dde_linux/src/lib/wifi/socket_call.cc index 24a3c0708c..a2486cdc2c 100644 --- a/repos/dde_linux/src/lib/wifi/socket_call.cc +++ b/repos/dde_linux/src/lib/wifi/socket_call.cc @@ -440,7 +440,7 @@ Wifi::Socket *Socket_call::socket(int domain, int type, int protocol) /* FIXME domain, type, protocol values */ _call.opcode = Call::SOCKET; _call.socket.domain = domain; - _call.socket.type = type; + _call.socket.type = type & 0xff; _call.socket.protocol = protocol; _socket->submit_and_block();