From patchwork Fri Apr 3 00:30:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Abele X-Patchwork-Id: 457829 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B9D391400DE for ; Fri, 3 Apr 2015 11:36:33 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=WQOroP5w; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 86E839D2ED; Thu, 2 Apr 2015 20:36:29 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jqNMZ4AJYE0v; Thu, 2 Apr 2015 20:36:29 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id C63D79D2E6; Thu, 2 Apr 2015 20:36:23 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 68B689D2E2 for ; Thu, 2 Apr 2015 20:31:20 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NjzP2RA8fWLJ for ; Thu, 2 Apr 2015 20:31:14 -0400 (EDT) Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (not verified)) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id DFCE79D2D9 for ; Thu, 2 Apr 2015 20:31:07 -0400 (EDT) Received: by pdbni2 with SMTP id ni2so105148923pdb.1 for ; Thu, 02 Apr 2015 17:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=wUrGTeNzkqYonnRX3LrX/+jguIiL/pFA8hN/Zte4C5s=; b=WQOroP5wFBVhtYWn88tEZBFfclSzdWfv4XQ+bRv9McphgTDi7gfFhb1J5abgs3bzcz L0tj7UrvYpY5N8HRs8DVxD/hv4mMbYazdQcccV8GmBTNatG5dpiDgoiPXqb3wkPBkvVv qzIMfuj30hFPYp5TEz6mM1mp4Ic4inw+oT958ywA6TaFkfEfbwgfeex1DVR035JEIQHM Mt0iqP0DbyOPF+DhVus1dBRghfFHUKrQQuUZH2fVn/3OYswP9U9AvlN6yA55b6dBawF5 hl3fTgP2aV3nbhhQDH9LF1AoYoXPDkN7sJ/NPNmkGXoyi+JwVFJoiz1g+CQT/sdcihTf c5bw== X-Received: by 10.68.240.40 with SMTP id vx8mr58076534pbc.27.1428021066526; Thu, 02 Apr 2015 17:31:06 -0700 (PDT) Received: from localhost.localdomain ([216.84.58.210]) by mx.google.com with ESMTPSA id fz15sm6363231pdb.54.2015.04.02.17.31.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Apr 2015 17:31:06 -0700 (PDT) From: Jason Abele To: hostap@lists.shmoo.com Subject: [PATCH] wpa_supplicant: clear blacklist on connect Date: Thu, 2 Apr 2015 17:30:48 -0700 Message-Id: <1428021048-29553-1-git-send-email-jason.abele@gmail.com> X-Mailer: git-send-email 1.9.1 X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.11 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com From: Jason Abele It has been noticed that the band steering/load balancing of some multi-AP networks will lead to an ever-growing list of blacklisted BSSIDs. This eventually leads to a connection drop when the connection is pushed to a distant AP. Fix this issue by clearing the blacklist upon successful connect. Signed-off-by: Jason Abele --- wpa_supplicant/wpa_supplicant.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index f690b91..2ba9c38 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -731,6 +731,7 @@ void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s, ssid && ssid->id_str ? ssid->id_str : ""); #endif /* CONFIG_CTRL_IFACE || !CONFIG_NO_STDOUT_DEBUG */ wpas_clear_temp_disabled(wpa_s, ssid, 1); + wpa_blacklist_clear(wpa_s); wpa_s->extra_blacklist_count = 0; wpa_s->new_connection = 0; wpa_drv_set_operstate(wpa_s, 1);