Home
last modified time | relevance | path

Searched refs:sock (Results 1 – 2 of 2) sorted by relevance

/hardware/qcom/wlan/qcwcn/wifi_hal/
Dwifi_hal.cpp68 void wifi_socket_set_local_port(struct nl_sock *sock, uint32_t port) in wifi_socket_set_local_port() argument
73 sock->s_flags &= ~NL_OWN_PORT; in wifi_socket_set_local_port()
75 sock->s_flags |= NL_OWN_PORT; in wifi_socket_set_local_port()
78 sock->s_local.nl_pid = pid + (port << 22); in wifi_socket_set_local_port()
84 struct nl_sock *sock = nl_socket_alloc(); in wifi_create_nl_socket() local
85 if (sock == NULL) { in wifi_create_nl_socket()
90 wifi_socket_set_local_port(sock, port); in wifi_create_nl_socket()
92 struct sockaddr_nl *addr_nl = &(sock->s_local); in wifi_create_nl_socket()
100 if (nl_connect(sock, NETLINK_GENERIC)) { in wifi_create_nl_socket()
102 nl_socket_free(sock); in wifi_create_nl_socket()
[all …]
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
Dwifi_hal.cpp64 void wifi_socket_set_local_port(struct nl_sock *sock, uint32_t port) in wifi_socket_set_local_port() argument
67 nl_socket_set_local_port(sock, pid + (port << 22)); in wifi_socket_set_local_port()
73 struct nl_sock *sock = nl_socket_alloc(); in wifi_create_nl_socket() local
74 if (sock == NULL) { in wifi_create_nl_socket()
79 wifi_socket_set_local_port(sock, port); in wifi_create_nl_socket()
85 if (nl_connect(sock, NETLINK_GENERIC)) { in wifi_create_nl_socket()
87 nl_socket_free(sock); in wifi_create_nl_socket()
100 return sock; in wifi_create_nl_socket()