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();
|
||||
fprintf(stderr,
|
||||
"\n"
|
||||
"usage: hostapd [-hdBKtv] [-P <PID file>] [-e <entropy file>] "
|
||||
"usage: hostapd [-hdBKtvq] [-P <PID file>] [-e <entropy file>] "
|
||||
"\\\n"
|
||||
" [-g <global ctrl_iface>] [-G <group>]\\\n"
|
||||
" [-i <comma-separated list of interface names>]\\\n"
|
||||
|
@ -685,7 +685,7 @@ int main(int argc, char *argv[])
|
|||
#endif /* CONFIG_DPP */
|
||||
|
||||
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)
|
||||
break;
|
||||
switch (c) {
|
||||
|
@ -758,6 +758,9 @@ int main(int argc, char *argv[])
|
|||
&if_names_size, optarg))
|
||||
goto out;
|
||||
break;
|
||||
case 'q':
|
||||
wpa_debug_level++;
|
||||
break;
|
||||
default:
|
||||
usage();
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue