4 #include "config_file.h"
5 #include "eap_register.h"
6 #include "ctrl_iface.h"
8 +#include "build_features.h"
12 @@ -786,7 +786,7 @@ int main(int argc, char *argv[])
13 wpa_supplicant_event = hostapd_wpa_event;
14 wpa_supplicant_event_global = hostapd_wpa_event_global;
16 - c = getopt(argc, argv, "b:Bde:f:hi:KP:sSTtu:vg:G:q");
17 + c = getopt(argc, argv, "b:Bde:f:hi:KP:sSTtu:g:G:qv::");
21 @@ -823,6 +823,8 @@ int main(int argc, char *argv[])
23 #endif /* CONFIG_DEBUG_LINUX_TRACING */
26 + exit(!has_feature(optarg));
30 --- a/wpa_supplicant/main.c
31 +++ b/wpa_supplicant/main.c
33 #endif /* __linux__ */
36 +#include "build_features.h"
37 #include "crypto/crypto.h"
39 #include "wpa_supplicant_i.h"
40 @@ -203,7 +204,7 @@ int main(int argc, char *argv[])
43 c = getopt(argc, argv,
44 - "b:Bc:C:D:de:f:g:G:hH:i:I:KLMm:No:O:p:P:qsTtuvW");
45 + "b:Bc:C:D:de:f:g:G:hH:i:I:KLMm:No:O:p:P:qsTtuv::W");
49 @@ -306,8 +307,12 @@ int main(int argc, char *argv[])
51 #endif /* CONFIG_CTRL_IFACE_DBUS_NEW */
53 - printf("%s\n", wpa_supplicant_version);
56 + exitcode = !has_feature(optarg);
58 + printf("%s\n", wpa_supplicant_version);
63 params.wait_for_monitor++;