dbus: Enable -u option when only the new DBus API is included

This commit is contained in:
Witold Sowa 2009-12-03 21:12:42 +02:00 committed by Jouni Malinen
parent 3dee308178
commit a5717c957c

View file

@ -73,9 +73,9 @@ static void usage(void)
" -p = driver parameters\n" " -p = driver parameters\n"
" -P = PID file\n" " -P = PID file\n"
" -q = decrease debugging verbosity (-qq even less)\n"); " -q = decrease debugging verbosity (-qq even less)\n");
#ifdef CONFIG_CTRL_IFACE_DBUS #if defined(CONFIG_CTRL_IFACE_DBUS) || defined(CONFIG_CTRL_IFACE_DBUS_NEW)
printf(" -u = enable DBus control interface\n"); printf(" -u = enable DBus control interface\n");
#endif /* CONFIG_CTRL_IFACE_DBUS */ #endif /* CONFIG_CTRL_IFACE_DBUS || CONFIG_CTRL_IFACE_DBUS_NEW */
printf(" -v = show version\n" printf(" -v = show version\n"
" -W = wait for a control interface monitor before starting\n" " -W = wait for a control interface monitor before starting\n"
" -N = start describing new interface\n"); " -N = start describing new interface\n");
@ -218,11 +218,11 @@ int main(int argc, char *argv[])
case 't': case 't':
params.wpa_debug_timestamp++; params.wpa_debug_timestamp++;
break; break;
#ifdef CONFIG_CTRL_IFACE_DBUS #if defined(CONFIG_CTRL_IFACE_DBUS) || defined(CONFIG_CTRL_IFACE_DBUS_NEW)
case 'u': case 'u':
params.dbus_ctrl_interface = 1; params.dbus_ctrl_interface = 1;
break; break;
#endif /* CONFIG_CTRL_IFACE_DBUS */ #endif /* CONFIG_CTRL_IFACE_DBUS || CONFIG_CTRL_IFACE_DBUS_NEW */
case 'v': case 'v':
printf("%s\n", wpa_supplicant_version); printf("%s\n", wpa_supplicant_version);
exitcode = 0; exitcode = 0;