mesh: Return negative value on join failed

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
Masashi Honma 2015-01-16 18:57:30 +09:00 committed by Jouni Malinen
parent 5a2a6de6a5
commit 7451a217be

View file

@ -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);