Skip to content

Commit

Permalink
[nrf fromtree] net: wifi_shell: Remove TX-Injection and Promisc mode
Browse files Browse the repository at this point in the history
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>
(cherry picked from commit 7eb0aa0)
  • Loading branch information
VivekUppunda committed Jan 23, 2024
1 parent 0acf7d9 commit 47b2f7e
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 @@ -1539,8 +1539,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 @@ -1555,12 +1553,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 @@ -1962,8 +1954,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 47b2f7e

Please sign in to comment.