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