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.cpp67 struct nl_sock *sock);
98 void wifi_socket_set_local_port(struct nl_sock *sock, uint32_t port) in wifi_socket_set_local_port() argument
103 sock->s_flags &= ~NL_OWN_PORT; in wifi_socket_set_local_port()
105 sock->s_flags |= NL_OWN_PORT; in wifi_socket_set_local_port()
108 sock->s_local.nl_pid = pid + (port << 22); in wifi_socket_set_local_port()
114 struct nl_sock *sock = nl_socket_alloc(); in wifi_create_nl_socket() local
115 if (sock == NULL) { in wifi_create_nl_socket()
120 wifi_socket_set_local_port(sock, port); in wifi_create_nl_socket()
122 struct sockaddr_nl *addr_nl = &(sock->s_local); in wifi_create_nl_socket()
132 if (nl_connect(sock, protocol)) { in wifi_create_nl_socket()
[all …]
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
Dwifi_hal.cpp90 void wifi_socket_set_local_port(struct nl_sock *sock, uint32_t port) in wifi_socket_set_local_port() argument
93 nl_socket_set_local_port(sock, pid + (port << 22)); in wifi_socket_set_local_port()
99 struct nl_sock *sock = nl_socket_alloc(); in wifi_create_nl_socket() local
100 if (sock == NULL) { in wifi_create_nl_socket()
105 wifi_socket_set_local_port(sock, port); in wifi_create_nl_socket()
111 if (nl_connect(sock, NETLINK_GENERIC)) { in wifi_create_nl_socket()
113 nl_socket_free(sock); in wifi_create_nl_socket()
126 return sock; in wifi_create_nl_socket()