diff options
| author | Shahar Levi <shahar_levi@ti.com> | 2011-07-14 10:12:35 +0300 |
|---|---|---|
| committer | Keith Deacon <kdeacon@ti.com> | 2011-11-15 20:45:51 -0600 |
| commit | 03d4c1facdc9121a804d517806820b002c5f7b8e (patch) | |
| tree | b62ce317b49c1eda76d7887a84fba6b98da7bd2a | |
| parent | 67789cff77f1bc57930d55004e1ac15b95b2fb75 (diff) | |
| download | android_external_wpa_supplicant_8-03d4c1facdc9121a804d517806820b002c5f7b8e.tar.gz android_external_wpa_supplicant_8-03d4c1facdc9121a804d517806820b002c5f7b8e.tar.bz2 android_external_wpa_supplicant_8-03d4c1facdc9121a804d517806820b002c5f7b8e.zip | |
wpa_supplicant: prevent connection attempt while unfit security: STA open to secured peer
In case STA set to open with ssid fit to secured peer the WPA select
that peer for connection.
Validate that the peer not secured before returning matching ssid.
Change-Id: I5eeb7f552293f5fe0c34bf5490f580fae8ad77c4
Signed-off-by: Shahar Levi <shahar_levi@ti.com>
Signed-off-by: Vishal Mahaveer <a0271468@ti.com>
| -rw-r--r-- | wpa_supplicant/events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 2765aefc..1e940231 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -450,7 +450,7 @@ static int wpa_supplicant_ssid_bss_match(struct wpa_supplicant *wpa_s, return 0; } - if (!wpa_key_mgmt_wpa(ssid->key_mgmt)) { + if (!wpa_key_mgmt_wpa(ssid->key_mgmt) && (!wpa_ie && !rsn_ie)) { wpa_dbg(wpa_s, MSG_DEBUG, " allow in non-WPA/WPA2"); return 1; } |
