Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: wifi: Fix the ap config command using the sta interface #80184

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions subsys/net/l2/wifi/wifi_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -1694,7 +1694,11 @@ static int wifi_ap_config_args_to_params(const struct shell *sh, size_t argc, ch
static int cmd_wifi_ap_config_params(const struct shell *sh, size_t argc,
char *argv[])
{
#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
struct net_if *iface = net_if_get_wifi_sap();
#else
struct net_if *iface = net_if_get_first_wifi();
#endif
struct wifi_ap_config_params ap_config_params = { 0 };
int ret = -1;

Expand Down
Loading