Message ID | 1521235915-27623-1-git-send-email-greearb@candelatech.com |
---|---|
State | Accepted |
Headers | show |
Series | [v2] nl80211: Add MLME auth work-around for -EEXIST errno | expand |
On Fri, Mar 16, 2018 at 02:31:55PM -0700, greearb@candelatech.com wrote: > The 4.9 kernel, at least, can return EEXIST when trying to auth > a station that already exists. Thanks, applied.
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 329be02..fd53e4f 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -3345,10 +3345,10 @@ retry: msg = NULL; if (ret) { wpa_dbg(drv->ctx, MSG_DEBUG, - "nl80211: MLME command failed (auth): ret=%d (%s)", - ret, strerror(-ret)); + "nl80211: MLME command failed (auth): count=%d ret=%d (%s)", + count, ret, strerror(-ret)); count++; - if (ret == -EALREADY && count == 1 && params->bssid && + if (((ret == -EALREADY) || (ret == -EEXIST)) && count == 1 && params->bssid && !params->local_state_change) { /* * mac80211 does not currently accept new