Lines Matching refs:nl_sock
33 static inline void nl_socket_free(struct nl_sock *h) in nl_socket_free()
38 static inline int nl_socket_set_buffer_size(struct nl_sock *sk, in nl_socket_set_buffer_size()
51 state->nl_sock = nl_socket_alloc(); in nl80211_init()
52 if (!state->nl_sock) { in nl80211_init()
57 nl_socket_set_buffer_size(state->nl_sock, 8192, 8192); in nl80211_init()
59 if (genl_connect(state->nl_sock)) { in nl80211_init()
65 state->nl80211_id = genl_ctrl_resolve(state->nl_sock, "nl80211"); in nl80211_init()
75 nl_socket_free(state->nl_sock); in nl80211_init()
81 nl_socket_free(state->nl_sock); in nl80211_cleanup()
465 nl_socket_set_cb(state->nl_sock, s_cb); in __handle_cmd()
467 err = nl_send_auto_complete(state->nl_sock, msg); in __handle_cmd()
478 nl_recvmsgs(state->nl_sock, cb); in __handle_cmd()