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()
211 int wait_ip_addr(const char *ifname, int timeout) in wait_ip_addr() argument
219 __func__, ifname, count); in wait_ip_addr()
221 if (get_wpa_status(ifname, "ip_address", ip, sizeof(ip)) == 0 in wait_ip_addr()
226 ctrl = wpa_open_ctrl(ifname); in wait_ip_addr()
233 ifname); in wait_ip_addr()
238 int add_network(const char *ifname) in add_network() argument
242 if (wpa_command_resp(ifname, "ADD_NETWORK", res, sizeof(res)) < 0) in add_network()
248 int set_network(const char *ifname, int id, const char *field, in set_network() argument
253 return wpa_command(ifname, buf); in set_network()
257 int set_network_quoted(const char *ifname, int id, const char *field, in set_network_quoted() argument
263 return wpa_command(ifname, buf); in set_network_quoted()
267 int add_cred(const char *ifname) in add_cred() argument
271 if (wpa_command_resp(ifname, "ADD_CRED", res, sizeof(res)) < 0) in add_cred()
277 int set_cred(const char *ifname, int id, const char *field, const char *value) in set_cred() argument
281 return wpa_command(ifname, buf); in set_cred()
285 int set_cred_quoted(const char *ifname, int id, const char *field, in set_cred_quoted() argument
291 return wpa_command(ifname, buf); in set_cred_quoted()