Skip to content

Commit

Permalink
net: wifi_shell: Remove TX-Injection and Promiscuous mode from Wi-Fi …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
VivekUppunda authored and nashif committed Jan 24, 2024
1 parent db4bf8d commit 7eb0aa0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions subsys/net/l2/wifi/wifi_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand All @@ -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;
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 7eb0aa0

Please sign in to comment.