diff --git a/modules/hostap/src/supp_api.c b/modules/hostap/src/supp_api.c index 5fcf852634d..24561086f38 100644 --- a/modules/hostap/src/supp_api.c +++ b/modules/hostap/src/supp_api.c @@ -1055,6 +1055,10 @@ out: wifi_mgmt_raise_disconnect_complete_event(iface, ret); } + if (!wpa_cli_cmd_v("remove_network all")) { + wpa_printf(MSG_ERROR, "Failed to remove all networks"); + } + return ret; }