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.
This commit is contained in:
Josef Söntgen 2019-05-17 16:18:09 +02:00 committed by Christian Helmuth
parent a71253fa58
commit d223539165
1 changed files with 1 additions and 1 deletions

View File

@ -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();