diff mbox

[11/12] mesh: Send peering open frame again if beacon from listen state peer is received

Message ID CAFk-A4kZa1US_p9FDE-Ec8dRRS6RbuKiDvZeW6-x2r9e5wXknA@mail.gmail.com
State Superseded
Headers show

Commit Message

Masashi Honma Nov. 6, 2014, 2:48 a.m. UTC
2014-11-05 22:09 GMT+09:00 Bob Copeland <me@bobcopeland.com>:
> I fixed a similar problem with authsae here:
> https://github.com/cozybit/authsae/commit/295164a83717ce59ca280468fc2f7edcea6b3cbf

Great!

I could fix this problem by adding one line based on your idea.
Thank you !
diff mbox

Patch

diff --git a/wpa_supplicant/mesh_rsn.c b/wpa_supplicant/mesh_rsn.c
index 94dbfd1..06e3e07 100644
--- a/wpa_supplicant/mesh_rsn.c
+++ b/wpa_supplicant/mesh_rsn.c
@@ -37,6 +37,9 @@  void mesh_auth_timer(void *eloop_ctx, void *user_data)
                " (attempt %d) ",
                MAC2STR(sta->addr), sta->sae_auth_retry);
         if (sta->sae_auth_retry < MESH_AUTH_RETRY) {
+            if (wpa_drv_sta_remove(wpa_s, sta->addr) < 0)
+                wpa_printf(MSG_ERROR, "AUTH: Failed to remove "
+                       "STA " MACSTR, MAC2STR(sta->addr));
             mesh_rsn_auth_sae_sta(wpa_s, sta);
         } else {
             /* block the STA if exceeded the number of attempts */