get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2219758/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2219758,
    "url": "http://patchwork.ozlabs.org/api/patches/2219758/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/20260403105710.195671-1-voroninan95ton@gmail.com/",
    "project": {
        "id": 22,
        "url": "http://patchwork.ozlabs.org/api/projects/22/?format=api",
        "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": "<20260403105710.195671-1-voroninan95ton@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-03T10:57:10",
    "name": "dbus: Add FlushPMKSA method to D-Bus interface",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "729d9cd03d0a655bc659452e1373ab5ea8282cdb",
    "submitter": {
        "id": 93053,
        "url": "http://patchwork.ozlabs.org/api/people/93053/?format=api",
        "name": "Sbenazar",
        "email": "voroninan95ton@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/hostap/patch/20260403105710.195671-1-voroninan95ton@gmail.com/mbox/",
    "series": [
        {
            "id": 498704,
            "url": "http://patchwork.ozlabs.org/api/series/498704/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/hostap/list/?series=498704",
            "date": "2026-04-03T10:57:10",
            "name": "dbus: Add FlushPMKSA method to D-Bus interface",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498704/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2219758/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219758/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=UGO61Yfi;\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=e+27me6k;\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 4fnpGg3ZKBz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 04 Apr 2026 19:12:07 +1100 (AEDT)",
            "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w8w6C-00000003GsK-3MM1;\n\tSat, 04 Apr 2026 08:11:20 +0000",
            "from mail-lj1-x229.google.com ([2a00:1450:4864:20::229])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w8cDD-00000001v5a-2ayN\n\tfor hostap@lists.infradead.org;\n\tFri, 03 Apr 2026 10:57:17 +0000",
            "by mail-lj1-x229.google.com with SMTP id\n 38308e7fff4ca-38a2f196cbaso14838711fa.1\n        for <hostap@lists.infradead.org>;\n Fri, 03 Apr 2026 03:57:14 -0700 (PDT)",
            "from fedora.localdomain ([2a11:3805:0:93::1])\n        by smtp.gmail.com with ESMTPSA id\n 2adb3069b0e04-5a2c6c9517bsm1336660e87.15.2026.04.03.03.57.11\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Fri, 03 Apr 2026 03:57:11 -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=+PRJ1WrxoeeSQIXQkC3FmWIHXUS4jjeIch/DJNjdoSE=; b=UGO61Yfi4NQeHL\n\tQS9qe+T9qgZTVlpsLvKAsVtxvff7sNazayGODpT0C8nnRk0grOEQTBFIGJYbK+rOaey/nAMu5NylR\n\tMFy8jPNBOAHze5roAPSJHzGxm5vEqrrdvg7RNNgKUsLwWdvVlstWLkUjXQ9EsT+QyNRe0odekELed\n\t7+zMZAYqV3jvHRyZsQ/XpQGczsO5Hu+RaQUAHVYLBGZTpNYfcXqHcpKiMNLMewyFe3pgBZMj+SmH+\n\tMuNijf/ylsU9lF7tnWmkNqQ+LckdDLq6MniZtctBrbt2YlcvcNRM8r0G/VPesrMrtABmExctHcy6q\n\tpOhd6yQq6s9LLCvwbC4Q==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1775213833; x=1775818633;\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=ZqB8nuuH7SDOwMvwQAqA9mLzbXtUbn+eMinxixx+NJ0=;\n        b=e+27me6kvRABeeiqirTJCBWI/R5+NWpvvkf8b5nbRFq18rmWqSyOTIu3mBkyHZ23q6\n         0A0chvDqr7klAmj07Bc1AIwMtEdPiY49lWIdPTgIwgqO4C1/rBC8VS+IdjZ+iI0UOgoQ\n         cuGbp/3udwuoVqOl9OHcw3vhc6p9+rPZ0j4nY/pshls3WTUzX4eRaDs586di25WgZCOF\n         jxzmlp8ZuuBcsLcccLd5KQMRAILUSbCli2IIRmsW5k/ofOi6Lz0B/t9iAx31s97Q1pcp\n         +BxQbVEiHcMKnTKY51OHq18S9MyjJGp6Kmpg5N8mgQQJkecu0FDTi3vQrsgLDz2UiMof\n         fhFA=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775213833; x=1775818633;\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=ZqB8nuuH7SDOwMvwQAqA9mLzbXtUbn+eMinxixx+NJ0=;\n        b=Nlz/Wu6Sh8Nafp+X/7GY2ubcRN1VcIbLX7e5jmzMepfy/G/ZyXxVjIsDzWlyoiiBZT\n         IR+I1SecX76mj5Jst04h+aQJV8WQSpWfdyZ/wKd3SMTk/4foOjMgc6WZ/RJlDi9Rr67w\n         I4nY23bFQK7imv0o6Joe3boHTDor2YidTxTKbPIRswmFx0I75DpGqnNnyyOG4mUAdC2Q\n         3RwjD9r4k5QdyhIVS4gflohB3a7yqPxwyiESXAX+SwNMJK/ddLnQ+Af89icHP7JHNoV7\n         cTjXCUl3yVGumegATHhBNF4Z58SF5EYSdZjEDHcn4e7rsoeojZ5lhNhM1zw/crz4poYe\n         iziQ==",
        "X-Gm-Message-State": "AOJu0YzA0h5eZO+dBUdlcF02c4awVVoUXs/fNbNPvZA3YVKIGF76Es9q\n\tcIMfVLCj1iAKuRbTl12oQtvjrNaLAAZ5vP3+YV2kXCmZIBcGwY9+sMjqIjG4jH4=",
        "X-Gm-Gg": "AeBDietd835/k3+57aC2wARqs0un20Z8BCKYR96gWF1jfmoqbDXkMGbf7Va0sqfozjv\n\tq6soQSm4TPEgMBQmhCSTTe1wS2UTCpiic8+X3n6L/w3un3/Am7RqtCmjd/25TbygMrZSp3C5k1s\n\t6Ghyhtn2CdIQe6uajgQFs2TP8/7FlnLahcCG2SRh8IZ3TA2tvw6NVBda7fhijXzv2TZs/4rptFJ\n\tgtZV1I0FRG33T3JRUZQuz6EpWboKRr1+KuW0pNlu6ddCk+mrjwk7w4kExMXi5eo7g88qgwOQknw\n\tYI5Jri73MMGsKRYHUgnK9pskvg40wJtCisXGLmxJQmCK3/m1xEuOdCldgueUSHwyQO5EgXpsnSE\n\tpwRFs9vSzdcetTHyrrufXEOMNy+DIkuHmohiQ1ROaq+ADUXrTTnpu3vQW4Fu5cgINuammf/CrFd\n\trJkpqFje2zr+Ido5kWsSVktO0rJMo=",
        "X-Received": "by 2002:a05:6512:1113:b0:5a2:c8d7:e75e with SMTP id\n 2adb3069b0e04-5a337584641mr1044601e87.20.1775213832293;\n        Fri, 03 Apr 2026 03:57:12 -0700 (PDT)",
        "From": "Sbenazar <voroninan95ton@gmail.com>",
        "To": "hostap@lists.infradead.org",
        "Cc": "Sbenazar <voroninan95ton@gmail.com>",
        "Subject": "[PATCH] dbus: Add FlushPMKSA method to D-Bus interface",
        "Date": "Fri,  3 Apr 2026 13:57:10 +0300",
        "Message-ID": "<20260403105710.195671-1-voroninan95ton@gmail.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "MIME-Version": "1.0",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260403_035715_692505_03725469 ",
        "X-CRM114-Status": "GOOD (  15.34  )",
        "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:  Expose PMKSA_FLUSH over D-Bus. The new FlushPMKSA method on\n    fi.w1.wpa_supplicant1.Interface does the same thing as the existing\n control\n    interface command: flushes PTKSA, PMKSA, and (with CONFIG_AP) AP [...]\n Content analysis details:   (-2.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -0.0 SPF_PASS               SPF: sender matches SPF record\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\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                             [voroninan95ton(at)gmail.com]\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:229 listed in]\n                             [list.dnswl.org]",
        "X-Mailman-Approved-At": "Sat, 04 Apr 2026 01:11:18 -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": "Expose PMKSA_FLUSH over D-Bus. The new FlushPMKSA method on\nfi.w1.wpa_supplicant1.Interface does the same thing as the existing\ncontrol interface command: flushes PTKSA, PMKSA, and (with CONFIG_AP)\nAP-side PMKSA caches. doc/dbus.doxygen updated too.\n\nI hit this because NetworkManager only talks D-Bus and had no way to\nflush the PMKSA cache before suspend. After resume the supplicant\ntries to reconnect with a stale PMKID, and the AP rejects it:\n\n  10:26:22  PMKSA-CACHE-ADDED (stale, from before suspend)\n  10:26:23  ASSOC-REJECT status_code=53\n  10:26:23  PMKSA-CACHE-REMOVED, re-auth, PMKSA-CACHE-ADDED\n  10:26:46  Disconnected (reason=2, PREV_AUTH_NOT_VALID)\n  10:27:01  SSID temp-disabled after repeated failures\n\nHappens on every SAE network I tested (two APs, 2.4/5 GHz, ath11k\nWCN6855). Full journal available on request.\n\nRelated NM issues:\nhttps://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1871\nhttps://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1472\n\nNM side (calls FlushPMKSA on disconnect):\nhttps://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2393\n\nSigned-off-by: Sbenazar <voroninan95ton@gmail.com>\n---\n doc/dbus.doxygen                        |  5 +++++\n wpa_supplicant/dbus/dbus_new.c          |  6 ++++++\n wpa_supplicant/dbus/dbus_new_handlers.c | 22 ++++++++++++++++++++++\n wpa_supplicant/dbus/dbus_new_handlers.h |  3 +++\n 4 files changed, 36 insertions(+)",
    "diff": "diff --git a/doc/dbus.doxygen b/doc/dbus.doxygen\nindex fa73e8a..0a288d1 100644\n--- a/doc/dbus.doxygen\n+++ b/doc/dbus.doxygen\n@@ -709,6 +709,11 @@ fi.w1.wpa_supplicant1.CreateInterface.\n \t</dl>\n       </li>\n \n+      <li>\n+\t<h3>FlushPMKSA ( ) --> nothing</h3>\n+\t<p>Flush PMKSA and PTKSA cache entries.</p>\n+      </li>\n+\n       <li>\n \t<h3>SubscribeProbeReq ( ) --> nothing</h3>\n \t<p>Subscribe to receive Probe Request events. This is needed in addition to registering a signal handler for the ProbeRequest signal to avoid flooding D-Bus with all Probe Request indications when no application is interested in them.</p>\ndiff --git a/wpa_supplicant/dbus/dbus_new.c b/wpa_supplicant/dbus/dbus_new.c\nindex 2989002..7506f97 100644\n--- a/wpa_supplicant/dbus/dbus_new.c\n+++ b/wpa_supplicant/dbus/dbus_new.c\n@@ -3715,6 +3715,12 @@ static const struct wpa_dbus_method_desc wpas_dbus_interface_methods[] = {\n \t\t  END_ARGS\n \t  }\n \t},\n+\t{ \"FlushPMKSA\", WPAS_DBUS_NEW_IFACE_INTERFACE,\n+\t  (WPADBusMethodHandler) wpas_dbus_handler_flush_pmksa,\n+\t  {\n+\t\t  END_ARGS\n+\t  }\n+\t},\n #ifdef CONFIG_AP\n \t{ \"SubscribeProbeReq\", WPAS_DBUS_NEW_IFACE_INTERFACE,\n \t  (WPADBusMethodHandler) wpas_dbus_handler_subscribe_preq,\ndiff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c\nindex cb4a8a6..95a7df1 100644\n--- a/wpa_supplicant/dbus/dbus_new_handlers.c\n+++ b/wpa_supplicant/dbus/dbus_new_handlers.c\n@@ -13,6 +13,7 @@\n #include \"common.h\"\n #include \"common/ieee802_11_defs.h\"\n #include \"common/nan_de.h\"\n+#include \"common/ptksa_cache.h\"\n #include \"eap_peer/eap_methods.h\"\n #include \"eapol_supp/eapol_supp_sm.h\"\n #include \"rsn_supp/wpa.h\"\n@@ -2737,6 +2738,27 @@ DBusMessage * wpas_dbus_handler_flush_bss(DBusMessage *message,\n }\n \n \n+/*\n+ * wpas_dbus_handler_flush_pmksa - Flush the PMKSA cache\n+ * @message: Pointer to incoming dbus message\n+ * @wpa_s: wpa_supplicant structure for a network interface\n+ * Returns: NULL\n+ *\n+ * Handler function for \"FlushPMKSA\" method call of network interface.\n+ */\n+DBusMessage * wpas_dbus_handler_flush_pmksa(DBusMessage *message,\n+\t\t\t\t\t    struct wpa_supplicant *wpa_s)\n+{\n+\tptksa_cache_flush(wpa_s->ptksa, NULL, WPA_CIPHER_NONE);\n+\twpa_sm_pmksa_cache_flush(wpa_s->wpa, NULL);\n+#ifdef CONFIG_AP\n+\twpas_ap_pmksa_cache_flush(wpa_s);\n+#endif /* CONFIG_AP */\n+\n+\treturn NULL;\n+}\n+\n+\n #ifdef CONFIG_AUTOSCAN\n /**\n  * wpas_dbus_handler_autoscan - Set autoscan parameters for the interface\ndiff --git a/wpa_supplicant/dbus/dbus_new_handlers.h b/wpa_supplicant/dbus/dbus_new_handlers.h\nindex 24ee678..e969757 100644\n--- a/wpa_supplicant/dbus/dbus_new_handlers.h\n+++ b/wpa_supplicant/dbus/dbus_new_handlers.h\n@@ -135,6 +135,9 @@ DBusMessage * wpas_dbus_handler_set_pkcs11_engine_and_module_path(\n DBusMessage * wpas_dbus_handler_flush_bss(DBusMessage *message,\n \t\t\t\t\t  struct wpa_supplicant *wpa_s);\n \n+DBusMessage * wpas_dbus_handler_flush_pmksa(DBusMessage *message,\n+\t\t\t\t\t    struct wpa_supplicant *wpa_s);\n+\n DBusMessage * wpas_dbus_handler_autoscan(DBusMessage *message,\n \t\t\t\t\t struct wpa_supplicant *wpa_s);\n \n",
    "prefixes": []
}