From patchwork Tue May 3 14:54:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Orr Mazor X-Patchwork-Id: 1625817 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=xLf1e7Px; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=q25SeFym; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) 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=) 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 (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KtBcQ1YRrz9sG2 for ; Wed, 4 May 2022 06:38:14 +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:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Vtzk+mUhBbnAFi8n/2n5ys4g179n4RLKxIsRG635kEM=; b=xLf1e7PxsghtD7 LkX+VOmeacGuMB8elHylApuZsrsj3lKS5Fw1rB3qLtO4M2MvFwBSHVYmpCwMWpC92HnTGDbdcCBiD e68BENhimHTnSmI2gKdwpVC/gWKP1Tuq/UrCy9WYXkxS1X+hICv7KF1d2SLR3QbNSLeYhfZpdZbuy Lp62vOEylgt8x9b4i/ZaKpjroiWm25SiB4NYt/fUPNBhhlcVO5E25kMZ49W+noJp5wx1Vjh69BtPE TfJ1jUVB1q4/oHmmXPCOqiU4bVwdGn3GObAPov/p1N/1PlkAXITy/PM1o/oH/x7Z0yfrqgJ4lTTp7 5di95fZPu4M9tJAmFrPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlzGi-007aQW-F9; Tue, 03 May 2022 20:37:12 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nltz4-006Npr-1r for hostap@lists.infradead.org; Tue, 03 May 2022 14:58:39 +0000 Received: by mail-lj1-x22d.google.com with SMTP id l19so22328688ljb.7 for ; Tue, 03 May 2022 07:58:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9zLE15DNRTa/dAM/PBhcJQc6v4U1kw33T04sWcjTmQ4=; b=q25SeFym7I487RUDMdxXNxhmU5K5SotBZ70ZL/Kr6tM9yABIVcSLqCsaZvYfcIcufr 9c1ye7huE5ryq5dRGU+IX1UvgB6SzR9UPwxHgkrGp5GZsrbRtuFCcZyRU3cPG4qR2tcM ho9gGhSD9+w0AkbbBwkfpMqtJloJu4gy/djbY5KtCo7uk4iQ/l7VnKLGpT8fr7YL30BN z0K0iqLZwBf1YJVskBgvh5RvFJ+XBQSfFyCBNsJjrLjaiU8F6WlbjgwjVOetuvfW8wVS X5DEdXEsyojpDdaXenUrhcyrnPNkwjn2eF0wcg1CrdDda//og4HST1cHC3LBmU2i3+K9 BAbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9zLE15DNRTa/dAM/PBhcJQc6v4U1kw33T04sWcjTmQ4=; b=hfObO6H8t7Iib/p/afX9o/wVs3uilQS0Qm7vG1o23a//IuiD4o0FBE+Ls0tB8iP5Mg yJweBqHorj5sYFAnGTRGJGeLTChGcNydIRalE65TrSvIOqmFkRWsBkbuCpWKWc473Agy QsKjcBd7sLgVL0YK9O4E5+D8YMzbS/oZHATK+PgWzmGZAiMNQvzPjR+VuZainpE5bgxI OIHxQJT3iTVg1fn9pgNeN1mBRQl4n5jpiAhGPRNbH7DjZ0dqiieprH6AZw2fWazJYQ7v C6HV3cy+esukcciZV7m3XPpX9oilYKrlvzJDzOsixCuwQtRqf1N4NUDkeex2rO/FZhXu S0nQ== X-Gm-Message-State: AOAM531+MTfltJHA0V4uLcmumBGIEHuXAOVjDfS7cd+MbQM7gbXkxx5k rYqFpLnjBBdw/M3s2TBEiLsUufSK2iM= X-Google-Smtp-Source: ABdhPJzrGyTYmaLGWWSSSJuERQUI9MZjD05kiDqudrR2fcnWWK+baUekB1fFJ3xGTR7TIqZcJDTrgw== X-Received: by 2002:a05:651c:179c:b0:247:e1b4:92aa with SMTP id bn28-20020a05651c179c00b00247e1b492aamr10589793ljb.55.1651589914029; Tue, 03 May 2022 07:58:34 -0700 (PDT) Received: from omazor-ThinkPad.inteno.se (h-217-27-188-82.NA.cust.bahnhof.se. [217.27.188.82]) by smtp.gmail.com with ESMTPSA id q2-20020ac25282000000b0047255d210fdsm965869lfm.44.2022.05.03.07.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 07:58:33 -0700 (PDT) From: Orr Mazor X-Google-Original-From: Orr Mazor To: hostap@lists.infradead.org Cc: o.mazor@genexis.eu, orr.mazor@gmail.com Subject: [PATCH] Add -q flag to hostapd in order to control log level Date: Tue, 3 May 2022 16:54:28 +0200 Message-Id: <20220503145428.3627056-1-o.mazor@genexis.eu> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220503_075838_129216_D02B56FB X-CRM114-Status: GOOD ( 12.00 ) 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: Useful to set log level from startup. The opposite to the existing -d flag to provide full control over log level from startup. Same as the existing flag in wpa_supplicant Signed-off-by: Orr Mazor --- hostapd/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 [2a00:1450:4864:20:0:0:0:22d listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [orrmazor[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 X-Mailman-Approved-At: Tue, 03 May 2022 13:37:09 -0700 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 Useful to set log level from startup. The opposite to the existing -d flag to provide full control over log level from startup. Same as the existing flag in wpa_supplicant Signed-off-by: Orr Mazor --- hostapd/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hostapd/main.c b/hostapd/main.c index 4503d24ae..0a40459ef 100644 --- a/hostapd/main.c +++ b/hostapd/main.c @@ -685,7 +685,7 @@ int main(int argc, char *argv[]) #endif /* CONFIG_DPP */ for (;;) { - c = getopt(argc, argv, "b:Bde:f:hi:KP:sSTtu:vg:G:"); + c = getopt(argc, argv, "b:Bde:f:hi:KP:sSTtu:vg:G:q"); if (c < 0) break; switch (c) { @@ -758,6 +758,9 @@ int main(int argc, char *argv[]) &if_names_size, optarg)) goto out; break; + case 'q': + wpa_debug_level++; + break; default: usage(); break;