Message ID | 20190608104859.4213-1-amit7861234@gmail.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GFWCP1CG"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ZZbOSvKS"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45LbkT52gtz9s3l for <incoming@patchwork.ozlabs.org>; Sat, 8 Jun 2019 20:49:37 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=NZXbYGkOdVWwxZI289uY50lXDJKKvvlp3PwirEey5FY=; b=GFWCP1CGRa66ak nhivcqrCCxYkphCJ/+VBS+0g3x1HFiCx3ogmhlnsZbQQi7OsQXgxezPx9FDqKzA/D+S8qzcABJZ48 8uvO/Zxvd05BzBZfcgBcgdgr3omnaP5RK/vimnOmTj6mxDciyns6Ba4LYiEizULDCapxpb92LYYti Km1/YYo+H6Dhre2tWgoKSK+rAnTwYvTskJ3+eYto4njpEgeWSqArVjFJQMfnzod740ebNoOVwiJkz uxA0vCttLNOcjNcBTJq6iY6VCeFlajOEuKbMM7uWG91uB6avuU6WtqNkF9RzJI7jmYg64MgDwbjIw VECm8ffVFkUFSldYECcg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hZYuj-00067O-K5; Sat, 08 Jun 2019 10:49:33 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hZYuf-000673-J9 for hostap@lists.infradead.org; Sat, 08 Jun 2019 10:49:30 +0000 Received: by mail-pl1-x641.google.com with SMTP id p1so1796379plo.2 for <hostap@lists.infradead.org>; Sat, 08 Jun 2019 03:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=sOLFtuCGvPYbR6+n+I33lesmEv+YhWTnmCRO02h55CU=; b=ZZbOSvKSY40RpAURa9FuXNkYA4ZOfjgJGHOqYeEGuCXVMn2jDd2H/lwkAGaSnSYBFu eNAn6lGfaXFjI4SmLdSabTKoNNgl/Cj9QG0UpABy08WeQI5jb8r1opzfW8PYGYBNAc9G VAESlWCbVTZ0v4j+46hCtkx5LJXxjtodWURHTR3Uk05ZEPOkobeIOTx+cxJsLqibipQV LVDyTPHDYU6dZEKZxGO8QTpq6+CQSQ8a73vSLcQJKlzHR4oZme3YUtXmoGAGpVpc9ZDe 2srDqDfPm6JPMN3MGrkkhCHPmKrGX3dMnHUCyfsi1BAQUCrVQipTkAYIssb1JUEF8yrP 5qdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=sOLFtuCGvPYbR6+n+I33lesmEv+YhWTnmCRO02h55CU=; b=b/i/D91HE+xM6ASyQXCq8wrkE2JmUwzkJ7A3oQPTDrIosRlov99UYhh9BBiSPjrG/A Sn2MEDEg/uwmuydaQ7o9lReFeUgYwxLvbqDlyo3QvbR7mh6mGSNkH/Z4/QJm50gEHxLT 81N73k6FpXfhz0//pl5Z68fjqsGIVIiPj3WG7aQwK0M2dv7zmosZhDJZ7NGixNL3a33O EMVNdUJ1IaD0uYvJ+wbOxfz7qFZ26wG7vro6mfziKZ5oUTdcOA2vEb9upIOP0bFHemat cZip6p6LYW8nOVkI0obrpetARs5PRpchVJsUu5n5txvFBlbKRsnO2U7YA6H+g51pUtSh 1ztw== X-Gm-Message-State: APjAAAWR+EIPXm4AqkOSq67iM0CsTqYnsnxrX+BsU5TmRFMgZXNg7dIB 7jFPFlRlDKSmZ9C1MEoF1MdTpsezHAA= X-Google-Smtp-Source: APXvYqz/yli4TC3YETZAhgOG0QJL4eDXRMvRGcJ0HYbqmPiismRDExklAYnfkOdqohL1YS4ujcO3fQ== X-Received: by 2002:a17:902:d88e:: with SMTP id b14mr9536960plz.153.1559990967473; Sat, 08 Jun 2019 03:49:27 -0700 (PDT) Received: from localhost.localdomain ([223.179.149.108]) by smtp.gmail.com with ESMTPSA id j72sm4395895pje.12.2019.06.08.03.49.25 for <hostap@lists.infradead.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Jun 2019 03:49:26 -0700 (PDT) From: Amit Khatri <amit7861234@gmail.com> To: hostap@lists.infradead.org Subject: [PATCH] clear wdev->connect_keys from cfg layer Date: Sat, 8 Jun 2019 16:18:59 +0530 Message-Id: <20190608104859.4213-1-amit7861234@gmail.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190608_034929_633933_C9F49911 X-CRM114-Status: GOOD ( 11.84 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:641 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (amit7861234[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (amit7861234[at]gmail.com) -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
clear wdev->connect_keys from cfg layer
|
expand
|
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 96fd0aadd..8951f3ea7 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -5808,7 +5808,7 @@ static int wpa_driver_nl80211_connect( os_memset(drv->auth_attempt_bssid, 0, ETH_ALEN); ret = wpa_driver_nl80211_try_connect(drv, params, nl_connect); - if (ret == -EALREADY) { + if (ret == -EALREADY || -EINPROGRESS) { /* * cfg80211 does not currently accept new connections if * we are already connected. As a workaround, force
in case of somehow driver stuck, not clearing wdev->conect_keys, below error comes at wpa_supplicant. nl80211: MLME connect failed: ret=-115 (Operation now in progress) This happens because cfg layer return 115 after chceking wdev->connect_keys. now connct command will never reach to driver. there is one way to clear wdev->connect_keys call wpa_driver_nl80211_disconnect() explicitly and try to make connection. Signed-off-by: Amit Khatri <amit7861234@gmail.com> --- src/drivers/driver_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)