5 extern int hostapd_main(int argc
, char **argv
);
6 extern int wpa_supplicant_main(int argc
, char **argv
);
8 int main(int argc
, char **argv
)
11 const char *prog
= argv
[0];
14 if (strstr(argv
[0], "hostapd"))
15 return hostapd_main(argc
, argv
);
16 else if (strstr(argv
[0], "wpa_supplicant"))
17 return wpa_supplicant_main(argc
, argv
);
19 if (!restart
&& argc
> 1) {
26 fprintf(stderr
, "Invalid command.\nUsage: %s wpa_supplicant|hostapd [<arguments>]\n", prog
);
This page took 0.041636 seconds and 5 git commands to generate.