Message ID | 20230717195137.145136-1-Chaitanya.Tata@nordicsemi.no |
---|---|
State | Accepted |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=vsC5dp14; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=CnJl8ggP; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=GCrMJjEL; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R5RCV2nbcz20FV for <incoming@patchwork.ozlabs.org>; Wed, 19 Jul 2023 16:45:26 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=T9mPrPTTf+RLPOjqc8gFZEs1Hg5P19S2gsua2PpRUFs=; b=vsC5dp14gv1Uly /SjWKpNjq/L7TFaqOldYRynB3Ot5liO9inbbCf3DoUBPS3UWuL49iFyMuJ4SGMoB7Dc7L7hmcZoeB kTzVKBWTdD7jAlUy2OLdhniI23uRWNqGEN7E2dkrCHHqPAQSSTrryp5zKzSreADIix/BotM24QT5D 4Rr7JnprMcTuCu0BhYQu22BXfmUmDcF4rTiEtFrVu8uvn5DujYKeoN6r+SLsY1jC75QV6BUwMCFHY 4Ls1mxBk0/m61GZiz6Pq3SiQRfqWjkkyphrA+UTZsFOW2wnqJGpw/RxDkK65btj/4V49Iz5O0HObI A16dqzWmZi3XygIOgl6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qM0vO-005s4D-0a; Wed, 19 Jul 2023 06:44:38 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qM0vJ-005rzg-2k for hostap@bombadil.infradead.org; Wed, 19 Jul 2023 06:44:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=4pST1LIvi3WdKYPXY3lcsq21tIoOhmLVqRgZp7cQyos=; b=CnJl8ggP53OoWwvQi4iq6qLZsw lRujmr0LihpMFhwHoq+L1J0iaidgn2MxLyI8ce0DbT73m+oLzfjh2TeQEQrZ2WFv9ezkzlxD8j+sQ gxGeoyMksMuWXLVBBOF/sxp2Yt6VnMtW3OZ5A2+lvKq9PXtmJoUvWk5QSJta1Kl/iff48pT7hP6xd 2pFUk/OJpOvw0GmMFgDQtSXlF3lQQhd/z3VEU5gwq9y3LsapCb7isS1MPy3ARTcCySdypnleDTD7Q cXIpKzFF7Uu0u7NR4qqeRnpQSj7TWG51S2Y3PWu7Frw5eghAHYyGj9d6Ny5oYngaoqqIKZlsXaxEd d5og9pTQ==; Received: from mail-il1-x130.google.com ([2607:f8b0:4864:20::130]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLUHy-009Gmi-0N for hostap@lists.infradead.org; Mon, 17 Jul 2023 19:53:49 +0000 Received: by mail-il1-x130.google.com with SMTP id e9e14a558f8ab-345ff33d286so26120125ab.3 for <hostap@lists.infradead.org>; Mon, 17 Jul 2023 12:53:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689623502; x=1692215502; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=4pST1LIvi3WdKYPXY3lcsq21tIoOhmLVqRgZp7cQyos=; b=GCrMJjELUK+Ie0uCE07SC1zLSOWSIMEvJkRcPV3rHH6SXv82XGX/acICXTVN3MdI0O mJeGjA6GYTRI14JLx1+kqcwkxWB/FW3cZnNbPYVpLVn74w55XEOdRDZ+Me62b+fEnjMF XkU/adQc231l/NG5L2t6glfk645jVrhm/8VDfAfshTCdGaDeOwiNi6BiAc92kRiL0gWL vkQWKqolelJ5CPIBAZ4+FVFZFNhnAaYSooflVsSWdXDd5SwG/HSXR08jC4sTCa0nWrVO LZ7DdPmmja45Ya43yTWb8aGFVzJNmwJzvi+FZHrGevONiThcxflXnEn3gOOAmh7i7hSs p/eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689623502; x=1692215502; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4pST1LIvi3WdKYPXY3lcsq21tIoOhmLVqRgZp7cQyos=; b=gzPNQ8MZxqCh2a6zBNcWcmq/R2G6e0OSCeXydQOU+ducfuwjkwNQLiDmP9RYqiLKUu 18ETTn1sc2YZbdg0De+DWeYpnbCmeNVTFEZnDdpUVJ4jYsxi/3RPWR6hn0l4d2SRWRZV 0qRFHJi8QtqAad0m76EWsWTQRn88YkfWM/6KoqBYlCVZYJjZhUdMGGr0iEaKfGhyITLa nrgQ0hYGXfLJg+2cHCtDiqUgHm95ADdtTK+9gKN7/ibnSZdUN4qKTySXNeohXVvKX4sO lNEDYiVnubAUfUd0DBAyv6LBAIcgLfSTayAxw4rbVHlVenXb+dgsR2BFG3hLrrfCsDeb DiAA== X-Gm-Message-State: ABy/qLY6G/oTOQBSCN56owe8dkS2v1zzkjbUa9VVIJbL72cXC7MIN0A9 7bG4cVmwcO0k0KhLd8l+irDwQUlsNrc= X-Google-Smtp-Source: APBJJlENDtx6kwsZWXGN6cBZTZgK5tnSkd2To45eY9EZ0IjskKsWD7NmAQJfZntW2m4kx92NXbwP9Q== X-Received: by 2002:a92:c267:0:b0:348:8154:8c1e with SMTP id h7-20020a92c267000000b0034881548c1emr762743ild.11.1689623502464; Mon, 17 Jul 2023 12:51:42 -0700 (PDT) Received: from smtp.gmail.com ([49.205.249.77]) by smtp.gmail.com with ESMTPSA id 4-20020a17090a19c400b00263e4dc33aasm5715546pjj.11.2023.07.17.12.51.41 for <hostap@lists.infradead.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jul 2023 12:51:42 -0700 (PDT) From: Chaitanya Tata <chaitanya.mgit@gmail.com> X-Google-Original-From: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no> To: hostap@lists.infradead.org Subject: [PATCH] Abort ongoing scan Date: Tue, 18 Jul 2023 01:21:37 +0530 Message-Id: <20230717195137.145136-1-Chaitanya.Tata@nordicsemi.no> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230717_205347_779588_245B2526 X-CRM114-Status: UNSURE ( 8.13 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "desiato.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Along with canceling queued scan, abort ongoing scan if any, this ensures Wi-Fi interface is in usable state after disconnect is issued, else subsequent scan after disconnect might fail with EBUSY. Signed-off-by: Chaitanya Tata --- wpa_supplicant/wpa_supplicant.c | 1 + 1 file changed, 1 insertion(+) Content analysis details: (-0.2 points, 5.0 required) 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:130 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [chaitanya.mgit[at]gmail.com] -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -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 Message has at least one valid DKIM or DK signature X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 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> 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 |
Abort ongoing scan
|
expand
|
On Tue, Jul 18, 2023 at 01:21:37AM +0530, Chaitanya Tata wrote: > Along with canceling queued scan, abort ongoing scan if any, this > ensures Wi-Fi interface is in usable state after disconnect is issued, > else subsequent scan after disconnect might fail with EBUSY. Thanks, applied.
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index e0f3240e8..4dd89f829 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -8682,6 +8682,7 @@ void wpas_request_disconnection(struct wpa_supplicant *wpa_s) wpa_s->disconnected = 1; wpa_supplicant_cancel_sched_scan(wpa_s); wpa_supplicant_cancel_scan(wpa_s); + wpas_abort_ongoing_scan(wpa_s); wpa_supplicant_deauthenticate(wpa_s, WLAN_REASON_DEAUTH_LEAVING); eloop_cancel_timeout(wpas_network_reenabled, wpa_s, NULL); radio_remove_works(wpa_s, "connect", 0);
Along with canceling queued scan, abort ongoing scan if any, this ensures Wi-Fi interface is in usable state after disconnect is issued, else subsequent scan after disconnect might fail with EBUSY. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no> --- wpa_supplicant/wpa_supplicant.c | 1 + 1 file changed, 1 insertion(+)