Skip to content

Commit 514d7e2

Browse files
fengming-yedkalowsk
authored andcommitted
modules: hostap: fix hostapd_cli cannot find default hostapd iface
Default find soft ap wifi iface in hostapd_cli shell command. Signed-off-by: Fengming Ye <[email protected]>
1 parent 35620e2 commit 514d7e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hostap/src/wpa_cli.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static int cmd_hostapd_cli(const struct shell *sh, size_t argc, const char *argv
121121
}
122122
iface_found = true;
123123
} else {
124-
iface = net_if_get_first_wifi();
124+
iface = net_if_get_wifi_sap();
125125
if (!iface) {
126126
shell_error(sh, "No Wi-Fi interface found");
127127
return -ENOENT;

0 commit comments

Comments
 (0)