From 7451a217be3660f3b3fccbc23a8260d913e254b4 Mon Sep 17 00:00:00 2001 From: Masashi Honma Date: Fri, 16 Jan 2015 18:57:30 +0900 Subject: [PATCH] mesh: Return negative value on join failed Signed-off-by: Masashi Honma --- src/drivers/driver_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index b6e5ff4e4..b9a133a6b 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -7820,7 +7820,7 @@ wpa_driver_nl80211_join_mesh(void *priv, struct wpa_driver_nl80211_data *drv = bss->drv; struct nl_msg *msg; struct nlattr *container; - int ret = 0; + int ret = -1; u32 timeout; wpa_printf(MSG_DEBUG, "nl80211: mesh join (ifindex=%d)", drv->ifindex);