Home
last modified time | relevance | path

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

/hardware/qcom/wlan/cld80211-lib/
Dcld80211_lib.c56 struct nl_sock *sock; in create_nl_socket() local
58 sock = nl_socket_alloc(); in create_nl_socket()
59 if (sock == NULL) { in create_nl_socket()
65 if (nl_connect(sock, protocol)) { in create_nl_socket()
68 nl_socket_free(sock); in create_nl_socket()
72 return sock; in create_nl_socket()
165 int cld80211_recv_msg(struct nl_sock *sock, struct nl_cb *cb) in cld80211_recv_msg() argument
167 if (!sock || !cb) { in cld80211_recv_msg()
168 ALOGE("%s: %s is NULL", getprogname(), sock?"cb":"sock"); in cld80211_recv_msg()
172 int res = nl_recvmsgs(sock, cb); in cld80211_recv_msg()
[all …]
Dcld80211_lib.h44 struct nl_sock *sock; member
122 int cld80211_recv_msg(struct nl_sock *sock, struct nl_cb *cb);
/hardware/qcom/wlan/qcwcn/wifi_hal/
Dwifi_hal.cpp86 static int internal_pollin_handler(wifi_handle handle, struct nl_sock *sock);
89 struct ctrl_sock *sock);
92 struct nl_sock *sock);
125 void wifi_socket_set_local_port(struct nl_sock *sock, uint32_t port) in wifi_socket_set_local_port() argument
130 nl_socket_set_local_port(sock, ((uint32_t)getpid() & 0x3FFFFFU) | (port << 22)); in wifi_socket_set_local_port()
136 struct nl_sock *sock = nl_socket_alloc(); in wifi_create_nl_socket() local
137 if (sock == NULL) { in wifi_create_nl_socket()
142 wifi_socket_set_local_port(sock, port); in wifi_create_nl_socket()
144 if (nl_connect(sock, protocol)) { in wifi_create_nl_socket()
146 nl_socket_free(sock); in wifi_create_nl_socket()
[all …]
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
Dwifi_hal.cpp118 void wifi_socket_set_local_port(struct nl_sock *sock, uint32_t port) in wifi_socket_set_local_port() argument
121 nl_socket_set_local_port(sock, pid + (port << 22)); in wifi_socket_set_local_port()
127 struct nl_sock *sock = nl_socket_alloc(); in wifi_create_nl_socket() local
128 if (sock == NULL) { in wifi_create_nl_socket()
133 wifi_socket_set_local_port(sock, port); in wifi_create_nl_socket()
139 if (nl_connect(sock, NETLINK_GENERIC)) { in wifi_create_nl_socket()
141 nl_socket_free(sock); in wifi_create_nl_socket()
154 return sock; in wifi_create_nl_socket()
/hardware/interfaces/tetheroffload/control/1.0/vts/functional/
DVtsHalTetheroffloadControlV1_0TargetTest.cpp246 int sock = socket(AF_INET6, SOCK_DGRAM, 0); in interfaceIsUp() local
247 if (sock == -1) return false; in interfaceIsUp()
248 int ret = ioctl(sock, SIOCGIFFLAGS, &ifr, sizeof(ifr)); in interfaceIsUp()
249 close(sock); in interfaceIsUp()
/hardware/ril/reference-ril/
Dreference-ril.c373 int sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP); in setInterfaceState() local
374 if (sock == -1) { in setInterfaceState()
383 status = ioctl(sock, SIOCGIFFLAGS, &request); in setInterfaceState()
387 close(sock); in setInterfaceState()
394 close(sock); in setInterfaceState()
401 status = ioctl(sock, SIOCSIFFLAGS, &request); in setInterfaceState()
405 close(sock); in setInterfaceState()
409 close(sock); in setInterfaceState()