[PATCH] Interworking: Re-trigger scan if no connect attempt is done

Mikael Kanstrup mikael.kanstrup
Wed May 28 04:26:34 PDT 2014

For one specific case when running with interworking enabled
the re-initialisation of the background scan timer is missing.
This makes auto connect to a configured network fail.

The case is:
- Interworking credentials available
- Auto interworking is enabled
- Interwokring auto select is disabled
- No configured (enabled and non blacklisted) networks are present
  in scan results list.
- Interworking finds matching networks

This patch covers the case and re-initialises the background scan

Signed-off-by: Mikael Kanstrup <mikael.kanstrup at sonymobile.com>
 wpa_supplicant/interworking.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index a8ecb8c..6d1539c 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -2397,9 +2397,10 @@ static void interworking_select_network(struct
wpa_supplicant *wpa_s)
                if (interworking_find_network_match(wpa_s)) {
                        wpa_printf(MSG_DEBUG, "Interworking: Possible BSS "
                                   "match for enabled network configurations");
-                       if (wpa_s->auto_select)
+                       if (wpa_s->auto_select) {
-                       return;
+                               return;
+                       }

                if (wpa_s->auto_network_select) {

More information about the Hostap mailing list