From 54cb0f6fef5a8ffe2dc7ed98b274fe81ca84c431 Mon Sep 17 00:00:00 2001 From: Dmitry Shmidt Date: Mon, 29 Oct 2012 13:12:24 -0700 Subject: wpa_supplicant: Try to reject proper BSSID even if not set by the driver Bug: 7423119 Change-Id: Id0266274c9c60f8eea872ca3cfa5ad40d9180789 Signed-off-by: Dmitry Shmidt --- wpa_supplicant/events.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 34300e4..4b1d992 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -2553,7 +2553,10 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, wpa_s->reassociate = 1; if (wpa_s->p2p_group_interface == NOT_P2P_GROUP_INTERFACE) { - wpa_blacklist_add(wpa_s, data->assoc_reject.bssid); + const u8 *bl_bssid = data->assoc_reject.bssid; + if (!bl_bssid || is_zero_ether_addr(bl_bssid)) + bl_bssid = wpa_s->pending_bssid; + wpa_blacklist_add(wpa_s, bl_bssid); wpa_supplicant_req_scan(wpa_s, 0, 0); } else { wpa_supplicant_req_scan(wpa_s, 1, 0); -- cgit v1.1