Interworking: Re-trigger scan if no connect attempt is done
authorMikael Kanstrup <mikael.kanstrup@sonymobile.com>
Sat, 31 May 2014 10:23:00 +0000 (13:23 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 31 May 2014 10:23:00 +0000 (13:23 +0300)
commitb77aeae7323a77618e84ed370b1968022b7cca78
tree352aa7e08f95de887e2c36310f5f87c5d549ab13
parent0aee8330bd1bec0123b4bf604a20f2d406eb4f97
Interworking: Re-trigger scan if no connect attempt is done

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

The case is:
- Interworking credentials available, but do not match
- Auto interworking is enabled (auto_interworking=1)
- Interworking auto select is disabled (i.e., this is from
  auto_interworking=1, not from INTERWORKING_SELECT auto)
- No configured (enabled and non blacklisted) networks are present
  in scan results list with full match
- Interworking finds matching networks (it does not do full security
  policy match)

This patch covers the case and re-initialises the scan timer to allow
search for a suitable network to continue.

Signed-off-by: Mikael Kanstrup <mikael.kanstrup@sonymobile.com>
wpa_supplicant/interworking.c