From patchwork Sat Mar 9 19:42:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz Dziedzic X-Patchwork-Id: 1910134 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=L5K/9akz; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=mgT501kt; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TsYPD0W1Mz1yX6 for ; Sun, 10 Mar 2024 06:43:26 +1100 (AEDT) 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:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OthnncpfPfqBI6cwpcWAVlvXSNfH0/E1Q30NXC72L7w=; b=L5K/9akzgEyrVW lT+wNwtlYBUoA9f1nWLTp84Y/gwvNyMjcijJ6nxlwlGwxRWdFiwsYhx5jr+4OvVFEGAd+7AedFJkJ L+OOErldhf7Ywxwy6k0ruvggYniYxEkWXqFhenvNDm2i+5B366zn7NZV7m27cI2qgZNkhHqOuUnlV VWfnMODx0yJH41xMI9EOjp4ZcazWPKwutaYtNif882156F+frtIA8wldZW4IyDgI7fI6I96GI9d4W MStIlezcuDGDRm6tscnqqoom9pTT+JlFK3/M3M4jzsubzALfBpNlhTyvyol7vQaTiAtRUq1EB72Rj 31Lczebcpi9cMQMlLQOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rj2aw-0000000E6u5-3wNA; Sat, 09 Mar 2024 19:42:58 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rj2ao-0000000E6qc-0vU8 for hostap@lists.infradead.org; Sat, 09 Mar 2024 19:42:52 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-568241f40e9so2390917a12.0 for ; Sat, 09 Mar 2024 11:42:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710013368; x=1710618168; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=89y8uR3PIKXih+y0BO4uKJZluLGezM5c1oasCiItlb8=; b=mgT501ktHAxM3d/sIuw9m3UcZ+2CufnD3KAGvM35uAF1I8p2ccl5JemD0f5F0BNja1 OaiaqrshDTr8YzNBp/dlFGP1tZtLicBB5OyZvnqnYl1KeaR8HpJbGgn9RlQTG1rhaP4a 2gkdVMHc17GSAOybJwenbCH31FwmsTMbUzTmrTXkqpyx+JegMDdWFGwg3kDvE4UUs8kG JVA86F73qo/OiYOCq7AOw0Ht9QkkUKzPWOZa/OJ5Z0o8SNkcocjVgIXKt08STR6tn/RE IAnaA2BkSteZyUjfylpLnxwmKtuhr6CzTMhsBdk6snMp16IbsCHxoCxdwzK5L+YDipoz 9ElA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710013368; x=1710618168; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=89y8uR3PIKXih+y0BO4uKJZluLGezM5c1oasCiItlb8=; b=g0hxYdXCQFVuW1g6ELPbdUGIVgu6iqCp8U9ELwlhuymeno/iHb6UmojoOjqdplBUjG 5XE1nZG9hBpiqZKNDyW//dPqyqaKPhRSjxe6ua+jdA+cHVQJndiTbKsSB+xwM5ZIb857 yNJGhuesCPbq6/05pJH2JDGSqxMyihJ5CxbvUt0OtEaVIsfoB5bSRiiPQc/MV3qdAsbN 4hy5XSqWeY5911tjpM8c/e3Yjv0+7bQJmwSfnMXuNTggeujGhj9BRSnzVrY1JOwxUlCV W58tcaWMPZBsdkNusur0uRU7ojTRjl0TQzt1A1kDA3MZee+XqeC04RBcdWI2y+ZKNHPt 1lXw== X-Gm-Message-State: AOJu0YwUjZ8ainf/+OONuRQyomziqTvi8fcYGO+J3TS68evB4hZhXEw6 iG3CCL4UchsCMtnR0B3zYehG2xjDUNANbLTOMuNNbxb44EktXu2nFTi0dhfo X-Google-Smtp-Source: AGHT+IHNCQa2eYCpJ0n0ftEd7Vh0v7s81Hs7gTOXNta6YaSYhcipM8skllVrf4LrUuDBOOi0wxRBYg== X-Received: by 2002:a50:cdd5:0:b0:567:6ae0:7bbe with SMTP id h21-20020a50cdd5000000b005676ae07bbemr1751710edj.24.1710013368300; Sat, 09 Mar 2024 11:42:48 -0800 (PST) Received: from e850.lan ([62.141.192.106]) by smtp.gmail.com with ESMTPSA id y2-20020aa7c242000000b0056740ba5eb0sm1206107edo.37.2024.03.09.11.42.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 11:42:48 -0800 (PST) From: Janusz Dziedzic To: hostap@lists.infradead.org Cc: j@w1.fi, Janusz Dziedzic Subject: [PATCH 7/7] wpa_cli: don't select iface when global Date: Sat, 9 Mar 2024 20:42:28 +0100 Message-Id: <20240309194228.4186699-7-janusz.dziedzic@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240309194228.4186699-1-janusz.dziedzic@gmail.com> References: <20240309194228.4186699-1-janusz.dziedzic@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240309_114250_334437_DD0B86B7 X-CRM114-Status: GOOD ( 10.71 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.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: In case we run command like: wpa_cli -g command don't print "Selected interface " message. Signed-off-by: Janusz Dziedzic --- wpa_supplicant/wpa_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:533 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [janusz.dziedzic(at)gmail.com] -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org In case we run command like: wpa_cli -g command don't print "Selected interface " message. Signed-off-by: Janusz Dziedzic --- wpa_supplicant/wpa_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index b1334e2e6..54d6505b4 100644 --- a/wpa_supplicant/wpa_cli.c +++ b/wpa_supplicant/wpa_cli.c @@ -5129,7 +5129,7 @@ int main(int argc, char *argv[]) eloop_register_signal_terminate(wpa_cli_terminate, NULL); - if (ctrl_ifname == NULL) + if (ctrl_ifname == NULL && !global) ctrl_ifname = wpa_cli_get_default_ifname(); if (reconnect && action_file && ctrl_ifname) {