From 3af320e60dfcd5bf2ec35c2b3bc0fb9a66788bae Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 5 Oct 2013 08:19:04 -0700 Subject: [PATCH] emulator: Add command line option for AMP controllers --- emulator/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/emulator/main.c b/emulator/main.c index fdc43ab6b..f47faa299 100644 --- a/emulator/main.c +++ b/emulator/main.c @@ -54,6 +54,7 @@ static void usage(void) "\t-l [num] Number of local controllers\n" "\t-L Create LE only controller\n" "\t-B Create BR/EDR only controller\n" + "\t-A Create AMP controller\n" "\t-h, --help Show help options\n"); } @@ -82,7 +83,7 @@ int main(int argc, char *argv[]) for (;;) { int opt; - opt = getopt_long(argc, argv, "l::LBvh", main_options, NULL); + opt = getopt_long(argc, argv, "l::LBAvh", main_options, NULL); if (opt < 0) break; @@ -99,6 +100,9 @@ int main(int argc, char *argv[]) case 'B': vhci_type = VHCI_TYPE_BREDR; break; + case 'A': + vhci_type = VHCI_TYPE_AMP; + break; case 'v': printf("%s\n", VERSION); return EXIT_SUCCESS; -- 2.47.3