aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-05-29 22:49:22 (GMT)
committerJouni Malinen <j@w1.fi>2016-05-29 22:49:22 (GMT)
commit62fc8e6a40778f7ddec3155682b0621780000177 (patch)
tree7191af3246d90aedd2d985c0608f50fbff3af5bc /wpa_supplicant/mesh.c
parentb15acadcfd1de91112774310d5d1b8ad169f6cc2 (diff)
downloadhostap-62fc8e6a40778f7ddec3155682b0621780000177.zip
hostap-62fc8e6a40778f7ddec3155682b0621780000177.tar.gz
hostap-62fc8e6a40778f7ddec3155682b0621780000177.tar.bz2
mesh: Fix MESH_INTERFACE_ADD error path cleanup
If wpa_supplicant_add_iface() fails, we need to remove the added netdev, not the existing wpa_s instance. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/mesh.c')
-rw-r--r--wpa_supplicant/mesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c
index 89b033b..b13d5a1 100644
--- a/wpa_supplicant/mesh.c
+++ b/wpa_supplicant/mesh.c
@@ -591,7 +591,7 @@ int wpas_mesh_add_interface(struct wpa_supplicant *wpa_s, char *ifname,
if (!mesh_wpa_s) {
wpa_printf(MSG_ERROR,
"mesh: Failed to create new wpa_supplicant interface");
- wpa_supplicant_remove_iface(wpa_s->global, wpa_s, 0);
+ wpa_drv_if_remove(wpa_s, WPA_IF_MESH, ifname);
return -1;
}
mesh_wpa_s->mesh_if_created = 1;