Lines Matching refs:tpstr
91 char *tpstr; in get_if_type() local
99 tpstr = (*argv)[!!need_type]; in get_if_type()
103 if (strcmp(tpstr, "adhoc") == 0 || in get_if_type()
104 strcmp(tpstr, "ibss") == 0) { in get_if_type()
107 } else if (strcmp(tpstr, "ocb") == 0) { in get_if_type()
110 } else if (strcmp(tpstr, "monitor") == 0) { in get_if_type()
113 } else if (strcmp(tpstr, "master") == 0 || in get_if_type()
114 strcmp(tpstr, "ap") == 0) { in get_if_type()
120 } else if (strcmp(tpstr, "__ap") == 0) { in get_if_type()
123 } else if (strcmp(tpstr, "__ap_vlan") == 0) { in get_if_type()
126 } else if (strcmp(tpstr, "wds") == 0) { in get_if_type()
129 } else if (strcmp(tpstr, "managed") == 0 || in get_if_type()
130 strcmp(tpstr, "mgd") == 0 || in get_if_type()
131 strcmp(tpstr, "station") == 0) { in get_if_type()
134 } else if (strcmp(tpstr, "mp") == 0 || in get_if_type()
135 strcmp(tpstr, "mesh") == 0) { in get_if_type()
138 } else if (strcmp(tpstr, "__p2pcl") == 0) { in get_if_type()
141 } else if (strcmp(tpstr, "__p2pdev") == 0) { in get_if_type()
144 } else if (strcmp(tpstr, "__p2pgo") == 0) { in get_if_type()
149 fprintf(stderr, "invalid interface type %s\n", tpstr); in get_if_type()