Add -q flag to hostapd in order to control log level
This allows the debugging level to be reduced from hostapd command line similarly to the already existing flag in wpa_supplicant. Signed-off-by: Orr Mazor <o.mazor@genexis.eu>
This commit is contained in:
parent
29dcebea70
commit
16e755754f
1 changed files with 5 additions and 2 deletions
|
@ -466,7 +466,7 @@ static void usage(void)
|
||||||
show_version();
|
show_version();
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\n"
|
"\n"
|
||||||
"usage: hostapd [-hdBKtv] [-P <PID file>] [-e <entropy file>] "
|
"usage: hostapd [-hdBKtvq] [-P <PID file>] [-e <entropy file>] "
|
||||||
"\\\n"
|
"\\\n"
|
||||||
" [-g <global ctrl_iface>] [-G <group>]\\\n"
|
" [-g <global ctrl_iface>] [-G <group>]\\\n"
|
||||||
" [-i <comma-separated list of interface names>]\\\n"
|
" [-i <comma-separated list of interface names>]\\\n"
|
||||||
|
@ -685,7 +685,7 @@ int main(int argc, char *argv[])
|
||||||
#endif /* CONFIG_DPP */
|
#endif /* CONFIG_DPP */
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
c = getopt(argc, argv, "b:Bde:f:hi:KP:sSTtu:vg:G:");
|
c = getopt(argc, argv, "b:Bde:f:hi:KP:sSTtu:vg:G:q");
|
||||||
if (c < 0)
|
if (c < 0)
|
||||||
break;
|
break;
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
@ -758,6 +758,9 @@ int main(int argc, char *argv[])
|
||||||
&if_names_size, optarg))
|
&if_names_size, optarg))
|
||||||
goto out;
|
goto out;
|
||||||
break;
|
break;
|
||||||
|
case 'q':
|
||||||
|
wpa_debug_level++;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
usage();
|
usage();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue