{"id":2222743,"url":"http://patchwork.ozlabs.org/api/1.2/patches/2222743/?format=json","web_url":"http://patchwork.ozlabs.org/project/hostap/patch/20260412133912.68917-1-gasmibal@gmail.com/","project":{"id":22,"url":"http://patchwork.ozlabs.org/api/1.2/projects/22/?format=json","name":"HostAP Development","link_name":"hostap","list_id":"hostap.lists.infradead.org","list_email":"hostap@lists.infradead.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260412133912.68917-1-gasmibal@gmail.com>","list_archive_url":null,"date":"2026-04-12T13:39:11","name":"WPS: Force scan_ssid when SSID is specified","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"32222fbb4092ec4d5e64ff0e80dfc7ec6f39585c","submitter":{"id":83426,"url":"http://patchwork.ozlabs.org/api/1.2/people/83426/?format=json","name":"Baligh Gasmi","email":"gasmibal@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/hostap/patch/20260412133912.68917-1-gasmibal@gmail.com/mbox/","series":[{"id":499718,"url":"http://patchwork.ozlabs.org/api/1.2/series/499718/?format=json","web_url":"http://patchwork.ozlabs.org/project/hostap/list/?series=499718","date":"2026-04-12T13:39:11","name":"WPS: Force scan_ssid when SSID is specified","version":1,"mbox":"http://patchwork.ozlabs.org/series/499718/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2222743/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2222743/checks/","tags":{},"related":[],"headers":{"Return-Path":"\n <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;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Cv7efCNV;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=f/jpjD/d;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvVvw17B5z1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 01:00:44 +1000 (AEST)","from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wCIlz-0000000FvDk-1bT2;\n\tMon, 13 Apr 2026 15:00:23 +0000","from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wBv1w-0000000ELLP-2eTy\n\tfor hostap@lists.infradead.org;\n\tSun, 12 Apr 2026 13:39:17 +0000","by mail-wr1-x42e.google.com with SMTP id\n ffacd0b85a97d-43cfd1f9fd1so2260109f8f.3\n        for <hostap@lists.infradead.org>;\n Sun, 12 Apr 2026 06:39:16 -0700 (PDT)","from sah1lpt685.softathome.com\n (2a01cb00065ce5c0d0850ef5c2eb0f94.ipv6.abo.wanadoo.fr.\n [2a01:cb00:65c:e5c0:d085:ef5:c2eb:f94])\n        by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-43d63e469ddsm24604271f8f.17.2026.04.12.06.39.13\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Sun, 12 Apr 2026 06:39:14 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc\n\t:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=dp0qmuhwmkQsqL9acs+6PLTCMkS0+jNbk3XfxJWj6a0=; b=Cv7efCNVf3O2h7\n\t0o2ZSl6K7KawtEO5WZZzRVNNG0GNRYlJmZjEO6aeZFOBE07K5vuDINZLE/rcYixZA4U8LSsRFg+qE\n\tRtOpbjUP2HHrRv/FdA9g9w6ZEB6Tc310tVhk3sAXsD1p6mXJ19isR0+c3NP75PiAfGI4WfSTU+vek\n\tAVudY0SRMWPxB2J4oGtUr9qTs3Xib9CN3T7pdo/xnFPtEEiqmqz/neHdU/SYH4kAQBTZlBtNqHqtt\n\tCe4mh/RElS0d2EA8xz68NN/JEiJaKSzYfpb6JtcQ+6A3vLZRqAIqKftRhetbkVjia9vBLa4s0fA6O\n\tYVaQ+G+AdD4mjNNyQEnQ==;","v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1776001154; x=1776605954;\n darn=lists.infradead.org;\n        h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n         :to:from:from:to:cc:subject:date:message-id:reply-to;\n        bh=5e/ROAFHWper6Dzohns38R59QN8nENIt5CGB02H4rUI=;\n        b=f/jpjD/dhfzLxU33013qUL5vt44qdamwoOEZ76SAEG8m39dJ3ph9RXI5VfRsAigcxL\n         r6AEbTcFIHMsN+tr+XKfylljtQOuwO59Fy25U7N0uIQDldRocMUctN0+dHnQWEfs4J6f\n         lSeX0Qo32nf6zrl98bm5AryS0OhIx6OG+SYKzXLHOyN8uvRaJ7SWAK6IIIP3IHMwURfT\n         W4xgMwIaNt1JeN4hJJ3h3tolzo3HdYAI+fWsbobFpBvU7e3/Gswc0gCXx8FORjVR7gPe\n         tiWSEU0vsBPQVOdNERp984rowBRwO2qy/u7fDkup2q+H6hXdfSgmRBwGS046xfqF4Y+8\n         VQ1A=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776001154; x=1776605954;\n        h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n         :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=5e/ROAFHWper6Dzohns38R59QN8nENIt5CGB02H4rUI=;\n        b=myDp8s3RWy6yBU1KaHfNiELazgXl+2LgPz4qWtXxD/iD/V/iTxgHHCXx6Wg2lpmWlw\n         BrktgAP1JcJkDkc7Q2P/dVu9QfV8h3Q+Z35itmRPyh7Q5mSq1XM4Mmt+pKGX+I3Q1+1p\n         nQvdq3KGLwsIs99FUspZEX14/WcdQcsaaVi+M/v0AncjUEE0gV9ykpeav/DHanLqyvDZ\n         3EyylXk1dsNDrxieSqpdstkt41qQ+c4u6aeSKNeIZBszZLyq+VZntK9GO7YMHpK/b0Ry\n         /OglMDp5a4Od+sgByP0v3Hnsu6TFTdPdkMTUvRgh2zOzSonK8yomupBXCqxb2+HnQvA9\n         Q6+w==","X-Gm-Message-State":"AOJu0YyxtRdR6ZUBhL1wWzpTLwKhdgHGYoO2rSwONNJHQp2mSRmwPiIT\n\tAe95xJAiRAnxuDx5emonRdSS4oN8bOS2R1hhPiMm4Kc2ycArKXpxUocbxYww0A==","X-Gm-Gg":"AeBDieu2Rq+L0kYFLLWffuQs3MlilmKFGOVALN9NAZHHx1XeN/W6nfgYVTnbjyd4mxF\n\t9yw0VfYKjn9Spykm+E8hydZPJE9NDZjG9beaNGhDyogEeq+J7sfX5sNyjQTrmZNO7qOfvYySz7k\n\t2/mxRj7p784sdhgJupw//0UAys+pIjIe/GVagE3+sn2l/o76CDP5W2ypc5OMmgutfla5A+H397j\n\tm+Rv3xHUnVb7imAf0Q5IQFsRduvJPgRCVmJPJMfk6/vnjMD/LOyPJpjuj64HG6jOJJsj+OGjexY\n\tT0pk2c273P8aLIE7Ivyg02BzS36RMEmp/fW9Iz+WMVwnHsdlznLBUfadkfWHQSTpqPL5qpHi+lF\n\te2ksNtbT/Wa1R7nh51hC3dwnl5gZBIvnAixPgiDbxiE2+MDSXagSZ6VkH9rr5HXx6HREJEovFzK\n\tOjdn1cY4NR4Jo66SuwHOOq8k+J3WFCYg95ujPKtnGXYTio7nT+30Gc4w64YPaXbaOkabKvA1jK/\n\tev6Rg3scOd1x9k58TKMwKaB+KR3uswThaUcsSohbRAbAjJ7ByfuOU3975P2lnsCvghQJaQcOBCR\n\t2gJE5SkCCGBeioS5TXyfrsuxQsoHWfIMd4TCF9IVag==","X-Received":"by 2002:a05:6000:220b:b0:43d:70b3:7ee2 with SMTP id\n ffacd0b85a97d-43d70b3811emr3746137f8f.1.1776001154457;\n        Sun, 12 Apr 2026 06:39:14 -0700 (PDT)","From":"Baligh Gasmi <gasmibal@gmail.com>","To":"hostap@lists.infradead.org","Cc":"Baligh Gasmi <gasmibal@gmail.com>","Subject":"[PATCH] WPS: Force scan_ssid when SSID is specified","Date":"Sun, 12 Apr 2026 15:39:11 +0200","Message-ID":"<20260412133912.68917-1-gasmibal@gmail.com>","X-Mailer":"git-send-email 2.51.0","MIME-Version":"1.0","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20260412_063916_700211_B0E0823D ","X-CRM114-Status":"UNSURE (   9.24  )","X-CRM114-Notice":"Please train this message.","X-Spam-Score":"-2.1 (--)","X-Spam-Report":"Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  When WPS credentials include an SSID, ensure the scan_ssid\n    flag is set to force active scanning for that network. This guarantees\n proper\n    discovery of the network even when the SSID is not being broadc [...]\n Content analysis details:   (-2.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/, no\n                             trust\n                             [2a00:1450:4864:20:0:0:0:42e listed in]\n                             [list.dnswl.org]\n -0.0 SPF_PASS               SPF: sender matches SPF record\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]\n  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail\n provider\n                             [gasmibal(at)gmail.com]","X-Mailman-Approved-At":"Mon, 13 Apr 2026 08:00:20 -0700","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>,\n <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>,\n <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"},"content":"When WPS credentials include an SSID, ensure the scan_ssid flag is set\nto force active scanning for that network. This guarantees proper\ndiscovery of the network even when the SSID is not being broadcast.\n\nSigned-off-by: Baligh Gasmi <gasmibal@gmail.com>\n---\n wpa_supplicant/wps_supplicant.c | 1 +\n 1 file changed, 1 insertion(+)","diff":"diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c\nindex 25a5598ce..7ead9f63f 100644\n--- a/wpa_supplicant/wps_supplicant.c\n+++ b/wpa_supplicant/wps_supplicant.c\n@@ -491,6 +491,7 @@ static int wpa_supplicant_wps_cred(void *ctx,\n \tif (ssid->ssid) {\n \t\tos_memcpy(ssid->ssid, cred->ssid, cred->ssid_len);\n \t\tssid->ssid_len = cred->ssid_len;\n+\t\tssid->scan_ssid = !!cred->ssid_len;\n \t}\n \n \tswitch (cred->encr_type) {\n","prefixes":[]}