Lines Matching refs:ifname

22 static struct wpa_ctrl * wpa_open_ctrl(const char *ifname)  in wpa_open_ctrl()  argument
27 os_snprintf(buf, sizeof(buf), "%s%s", wpas_ctrl_path, ifname); in wpa_open_ctrl()
35 int wpa_command(const char *ifname, const char *cmd) in wpa_command() argument
41 printf("wpa_command(ifname='%s', cmd='%s')\n", ifname, cmd); in wpa_command()
42 ctrl = wpa_open_ctrl(ifname); in wpa_command()
61 int wpa_command_resp(const char *ifname, const char *cmd, in wpa_command_resp() argument
67 printf("wpa_command(ifname='%s', cmd='%s')\n", ifname, cmd); in wpa_command_resp()
68 ctrl = wpa_open_ctrl(ifname); in wpa_command_resp()
83 struct wpa_ctrl * open_wpa_mon(const char *ifname) in open_wpa_mon() argument
87 ctrl = wpa_open_ctrl(ifname); in open_wpa_mon()
163 int get_wpa_status(const char *ifname, const char *field, char *obuf, in get_wpa_status() argument
171 ctrl = wpa_open_ctrl(ifname); in get_wpa_status()
212 int wait_ip_addr(const char *ifname, int timeout) in wait_ip_addr() argument
220 __func__, ifname, count); in wait_ip_addr()
222 if (get_wpa_status(ifname, "ip_address", ip, sizeof(ip)) == 0 in wait_ip_addr()
228 ctrl = wpa_open_ctrl(ifname); in wait_ip_addr()
235 ifname); in wait_ip_addr()
240 int add_network(const char *ifname) in add_network() argument
244 if (wpa_command_resp(ifname, "ADD_NETWORK", res, sizeof(res)) < 0) in add_network()
250 int set_network(const char *ifname, int id, const char *field, in set_network() argument
255 return wpa_command(ifname, buf); in set_network()
259 int set_network_quoted(const char *ifname, int id, const char *field, in set_network_quoted() argument
265 return wpa_command(ifname, buf); in set_network_quoted()
269 int add_cred(const char *ifname) in add_cred() argument
273 if (wpa_command_resp(ifname, "ADD_CRED", res, sizeof(res)) < 0) in add_cred()
279 int set_cred(const char *ifname, int id, const char *field, const char *value) in set_cred() argument
283 return wpa_command(ifname, buf); in set_cred()
287 int set_cred_quoted(const char *ifname, int id, const char *field, in set_cred_quoted() argument
293 return wpa_command(ifname, buf); in set_cred_quoted()