Lines Matching refs:sock
67 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 nl_socket_set_local_port(sock, ((uint32_t)getpid() & 0x3FFFFFU) | (port << 22)); in wifi_socket_set_local_port()
109 struct nl_sock *sock = nl_socket_alloc(); in wifi_create_nl_socket() local
110 if (sock == NULL) { in wifi_create_nl_socket()
115 wifi_socket_set_local_port(sock, port); in wifi_create_nl_socket()
117 if (nl_connect(sock, protocol)) { in wifi_create_nl_socket()
119 nl_socket_free(sock); in wifi_create_nl_socket()
123 return sock; in wifi_create_nl_socket()
300 struct nl_cb *cb = nl_socket_get_cb(info->cldctx->sock); in wifi_init_cld80211_sock_cb()
537 info->user_sock = info->cldctx->sock; in wifi_initialize()
785 static int internal_pollin_handler(wifi_handle handle, struct nl_sock *sock) in internal_pollin_handler() argument
787 struct nl_cb *cb = nl_socket_get_cb(sock); in internal_pollin_handler()
789 int res = nl_recvmsgs(sock, cb); in internal_pollin_handler()
797 struct nl_sock *sock) in internal_event_handler() argument
801 internal_pollin_handler(handle, sock); in internal_event_handler()
806 internal_pollin_handler(handle, sock); in internal_event_handler()