Searched refs:dhd_nli (Results 1 – 3 of 3) sorted by relevance
64 int dhd_nl_sock_connect(struct dhd_netlink_info *dhd_nli) in dhd_nl_sock_connect() argument66 dhd_nli->nl = nl_socket_alloc(); in dhd_nl_sock_connect()67 if (dhd_nli->nl == NULL) in dhd_nl_sock_connect()70 if (genl_connect(dhd_nli->nl) < 0) { in dhd_nl_sock_connect()75 dhd_nli->nl_id = genl_ctrl_resolve(dhd_nli->nl, "nl80211"); in dhd_nl_sock_connect()76 if (dhd_nli->nl_id < 0) { in dhd_nl_sock_connect()81 dhd_nli->cb = nl_cb_alloc(NL_CB_DEBUG); in dhd_nl_sock_connect()82 if (dhd_nli->cb == NULL) in dhd_nl_sock_connect()85 nl_socket_set_cb(dhd_nli->nl, dhd_nli->cb); in dhd_nl_sock_connect()89 nl_cb_put(dhd_nli->cb); in dhd_nl_sock_connect()[all …]
44 int dhd_nl_sock_connect(struct dhd_netlink_info *dhd_nli);45 void dhd_nl_sock_disconnect(struct dhd_netlink_info *dhd_nli);46 int dhd_nl_do_testmode(struct dhd_netlink_info *dhd_nli, dhd_ioctl_t *ioc);
100 struct dhd_netlink_info dhd_nli; in __dhd_driver_io() local104 dhd_nli.ifidx = if_nametoindex(ifr->ifr_name); in __dhd_driver_io()105 if (!dhd_nli.ifidx) { in __dhd_driver_io()110 if (dhd_nl_sock_connect(&dhd_nli) < 0) in __dhd_driver_io()113 ret = dhd_nl_do_testmode(&dhd_nli, ioc); in __dhd_driver_io()114 dhd_nl_sock_disconnect(&dhd_nli); in __dhd_driver_io()