mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
main: Remove unneeded ssid command line argument
This commit is contained in:
parent
672be730c3
commit
ca5f5b2e2b
@ -52,13 +52,11 @@ static void usage(void)
|
|||||||
"Usage:\n");
|
"Usage:\n");
|
||||||
printf("\tiwd [options]\n");
|
printf("\tiwd [options]\n");
|
||||||
printf("Options:\n"
|
printf("Options:\n"
|
||||||
"\t-S, --ssid <ssid> SSID of network\n"
|
|
||||||
"\t-K, --kdbus Setup Kernel D-Bus\n"
|
"\t-K, --kdbus Setup Kernel D-Bus\n"
|
||||||
"\t-h, --help Show help options\n");
|
"\t-h, --help Show help options\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct option main_options[] = {
|
static const struct option main_options[] = {
|
||||||
{ "ssid", required_argument, NULL, 'S' },
|
|
||||||
{ "kdbus", no_argument, NULL, 'K' },
|
{ "kdbus", no_argument, NULL, 'K' },
|
||||||
{ "version", no_argument, NULL, 'v' },
|
{ "version", no_argument, NULL, 'v' },
|
||||||
{ "help", no_argument, NULL, 'h' },
|
{ "help", no_argument, NULL, 'h' },
|
||||||
@ -80,9 +78,6 @@ int main(int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'S':
|
|
||||||
wiphy_set_ssid(optarg);
|
|
||||||
break;
|
|
||||||
case 'K':
|
case 'K':
|
||||||
enable_kdbus = true;
|
enable_kdbus = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user