Patchwork Use scan results for reconnection

login
register
mail settings
Submitter Masashi Honma
Date Feb. 25, 2013, 7:32 a.m.
Message ID <CAFk-A4=M6HXF27ydM_+2Fxfyo6OHUC2K9q08aWt926pEKxauXg@mail.gmail.com>
Download mbox | patch
Permalink /patch/222856/
State Accepted
Commit 5e24beae025d5481f264de49003a5465e5052f99
Headers show

Comments

Masashi Honma - Feb. 25, 2013, 7:32 a.m.
This patch uses existing scan results for fast connection on REASSOCIATE and
RECONNECT commands.

Signed-hostap: Masashi Honma <masashi.honma@gmail.com>

 }


Regards,
Masashi Honma.
Jouni Malinen - Feb. 28, 2013, 2:34 p.m.
On Mon, Feb 25, 2013 at 04:32:49PM +0900, Masashi Honma wrote:
> This patch uses existing scan results for fast connection on REASSOCIATE and
> RECONNECT commands.

Thanks, applied.

Patch

diff --git a/wpa_supplicant/wpa_supplicant.c
b/wpa_supplicant/wpa_supplicant.c
index ef7a6f0..fc3a84b 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -3757,5 +3757,7 @@  void wpas_request_connection(struct wpa_supplicant
*wpa_s)
     wpa_s->extra_blacklist_count = 0;
     wpa_s->disconnected = 0;
     wpa_s->reassociate = 1;
-    wpa_supplicant_req_scan(wpa_s, 0, 0);
+
+    if (wpa_supplicant_fast_associate(wpa_s) != 1)
+        wpa_supplicant_req_scan(wpa_s, 0, 0);