net: wifi_shell: Remove TX-Injection and Promiscuous mode from Wi-Fi mode

Remove TX-Injection and Promiscuous mode setting from Wi-Fi mode shell
command. These commands are being moved to ethernet l2 layer

Signed-off-by: Vivekananda Uppunda <vivekananda.uppunda@nordicsemi.no>
This commit is contained in:
Vivekananda Uppunda 2024-01-22 12:30:53 +05:30 committed by Anas Nashif
parent db4bf8d409
commit 7eb0aa0468
1 changed files with 0 additions and 10 deletions

View File

@ -1519,8 +1519,6 @@ void parse_mode_args_to_params(const struct shell *sh, int argc,
static struct option long_options[] = {{"if-index", optional_argument, 0, 'i'},
{"sta", no_argument, 0, 's'},
{"monitor", no_argument, 0, 'm'},
{"tx-injection", no_argument, 0, 't'},
{"promiscuous", no_argument, 0, 'p'},
{"ap", no_argument, 0, 'a'},
{"softap", no_argument, 0, 'k'},
{"get", no_argument, 0, 'g'},
@ -1535,12 +1533,6 @@ void parse_mode_args_to_params(const struct shell *sh, int argc,
case 'm':
mode->mode |= WIFI_MONITOR_MODE;
break;
case 't':
mode->mode |= WIFI_TX_INJECTION_MODE;
break;
case 'p':
mode->mode |= WIFI_PROMISCUOUS_MODE;
break;
case 'a':
mode->mode |= WIFI_AP_MODE;
break;
@ -1938,8 +1930,6 @@ SHELL_STATIC_SUBCMD_SET_CREATE(wifi_commands,
"[-i, --if-index <idx>] : Interface index\n"
"[-s, --sta] : Station mode\n"
"[-m, --monitor] : Monitor mode\n"
"[-p, --promiscuous] : Promiscuous mode\n"
"[-t, --tx-injection] : TX-Injection mode\n"
"[-a, --ap] : AP mode\n"
"[-k, --softap] : Softap mode\n"
"[-h, --help] : Help\n"