Lines Matching refs:ctrl

25 	struct wpa_ctrl *ctrl;  in wpa_open_ctrl()  local
28 ctrl = wpa_ctrl_open(buf); in wpa_open_ctrl()
29 if (ctrl == NULL) in wpa_open_ctrl()
31 return ctrl; in wpa_open_ctrl()
37 struct wpa_ctrl *ctrl; in wpa_command() local
42 ctrl = wpa_open_ctrl(ifname); in wpa_command()
43 if (ctrl == NULL) in wpa_command()
46 if (wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len, NULL) < 0) { in wpa_command()
48 wpa_ctrl_close(ctrl); in wpa_command()
51 wpa_ctrl_close(ctrl); in wpa_command()
64 struct wpa_ctrl *ctrl; in wpa_command_resp() local
68 ctrl = wpa_open_ctrl(ifname); in wpa_command_resp()
69 if (ctrl == NULL) in wpa_command_resp()
72 if (wpa_ctrl_request(ctrl, cmd, strlen(cmd), resp, &len, NULL) < 0) { in wpa_command_resp()
74 wpa_ctrl_close(ctrl); in wpa_command_resp()
77 wpa_ctrl_close(ctrl); in wpa_command_resp()
85 struct wpa_ctrl *ctrl; in open_wpa_mon() local
87 ctrl = wpa_open_ctrl(ifname); in open_wpa_mon()
88 if (ctrl == NULL) in open_wpa_mon()
90 if (wpa_ctrl_attach(ctrl) < 0) { in open_wpa_mon()
91 wpa_ctrl_close(ctrl); in open_wpa_mon()
95 return ctrl; in open_wpa_mon()
166 struct wpa_ctrl *ctrl; in get_wpa_status() local
171 ctrl = wpa_open_ctrl(ifname); in get_wpa_status()
172 if (ctrl == NULL) in get_wpa_status()
175 if (wpa_ctrl_request(ctrl, "STATUS-NO_EVENTS", 16, buf, &len, in get_wpa_status()
177 wpa_ctrl_close(ctrl); in get_wpa_status()
180 wpa_ctrl_close(ctrl); in get_wpa_status()
216 struct wpa_ctrl *ctrl; in wait_ip_addr() local
228 ctrl = wpa_open_ctrl(ifname); in wait_ip_addr()
229 if (ctrl == NULL) in wait_ip_addr()
231 wpa_ctrl_close(ctrl); in wait_ip_addr()