Home | History | Annotate | Download | only in dhdutil

Lines Matching defs:ifr

101 	struct ifreq *ifr = (struct ifreq *)dhd;
104 dhd_nli.ifidx = if_nametoindex(ifr->ifr_name);
106 fprintf(stderr, "invalid device %s\n", ifr->ifr_name);
120 struct ifreq *ifr = (struct ifreq *)dhd;
125 ifr->ifr_data = (caddr_t)ioc;
131 ret = ioctl(s, SIOCDEVPRIVATE, ifr);
195 struct ifreq ifr;
207 ifr.ifr_data = (caddr_t)&info;
208 strncpy(ifr.ifr_name, name, IFNAMSIZ);
209 if ((ret = ioctl(s, SIOCETHTOOL, &ifr)) < 0) {
307 dhd_find(struct ifreq *ifr, char *type)
315 ifr->ifr_name[0] = '\0';
328 strncpy(ifr->ifr_name, name, IFNAMSIZ);
332 if (!wl_check((void*)ifr))
335 ifr->ifr_name[0] = '\0';
428 struct ifreq *ifr = (struct ifreq *)dev_handle;
430 if (!ifr->ifr_name || wl_check((void *)ifr)) {
443 struct ifreq ifr;
455 memset(&ifr, 0, sizeof(ifr));
460 strncpy(ifr.ifr_name, ifname, IFNAMSIZ);
506 if (!ifr.ifr_name[0])
508 dhd_find(&ifr, "wl");
511 if (!ifr.ifr_name[0] || wl_check((void*)&ifr)) {
535 err = process_args(&ifr, argv);
541 err = process_args(&ifr, argv);
544 err = process_args((struct ifreq*)&ifr, argv);
559 process_args(struct ifreq* ifr, char **argv)
573 err = rwl_shell_cmd_proc((void*)ifr, argv, SHELL_CMD);
586 strncpy(ifr->ifr_name, ifname, IFNAMSIZ);
597 if (!ifr->ifr_name[0])
598 dhd_find(ifr, "dhd");
600 if (!ifr->ifr_name[0]) {
606 if ((ret = dhd_check((void *)ifr)) != 0) {
621 err = (*cmd->func)((void *) ifr, cmd, argv);
639 dhd_printlasterror((void *) ifr);