get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2194250,
    "url": "http://patchwork.ozlabs.org/api/patches/2194250/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/20260207181310.119827-1-vincent@systemli.org/",
    "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": "<20260207181310.119827-1-vincent@systemli.org>",
    "list_archive_url": null,
    "date": "2026-02-07T18:13:10",
    "name": "Fix build without CONFIG_IEEE80211BE",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "d31835774d9edc1b1afb7d02966b913d7d2452b9",
    "submitter": {
        "id": 74205,
        "url": "http://patchwork.ozlabs.org/api/people/74205/?format=api",
        "name": "nick",
        "email": "vincent@systemli.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/hostap/patch/20260207181310.119827-1-vincent@systemli.org/mbox/",
    "series": [
        {
            "id": 491392,
            "url": "http://patchwork.ozlabs.org/api/series/491392/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/hostap/list/?series=491392",
            "date": "2026-02-07T18:13:10",
            "name": "Fix build without CONFIG_IEEE80211BE",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/491392/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2194250/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2194250/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=4xWaTfqD;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n secure) header.d=systemli.org header.i=@systemli.org header.a=rsa-sha256\n header.s=default header.b=cuwLUeZq;\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 4f7fHC5nh3z1xvh\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 08 Feb 2026 05:14:11 +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 1vomoA-0000000Cfgo-05Jz;\n\tSat, 07 Feb 2026 18:13:26 +0000",
            "from mail1.systemli.org ([93.190.126.36] helo=mail.systemli.org)\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1vomo4-0000000Cfg4-3dxC\n\tfor hostap@lists.infradead.org;\n\tSat, 07 Feb 2026 18:13:22 +0000"
        ],
        "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=Y5WKa3njOsZJotrCJVq7S2qFbiLiYhTXusm2XrbAvT8=; b=4xWaTfqDdgU/5j\n\t0nvJtnlDccCLtNO2Ewxh4TbOx7ztkkx3z3eqpolVjiAzjFQ+JWoR7YpdhLJkzbu2YzTnW2MrxoI7J\n\tkFSEffcnIiNWH1LuZGp1PIbBX1IOa7bsOgY1prNLihWVkatnVX0ym8yfBGD/jVt8w/Ox0HLrL6VBh\n\tKYMdztpaGz4LHWq8e+26qdILy/UrgPLtvVilenoVaF0JdZNMZTUDwMvYBRuskyX3AKOmoBHGjenQx\n\t90xlLrQ+ijZ/UvJZkovs6pnm2lh9vPrxkH538mE3HsGieAI1og3srMGoldfLlU94UPadPkWyKZYV0\n\tfuyx0hfwskOicGX4t6aA==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=systemli.org;\n\ts=default; t=1770487994;\n\tbh=Zm6t0su6i4iYHjWUHSb9zJT+OHeiLP6zeFUJ6rPn0i8=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=cuwLUeZqyKn+xVLgvK9rZXHZD+Nb2J5pC0R/wVInfnXtp2q/nrymhHfQJMEnRnJfO\n\t 2nLpljmWEFlVUW2iX/qpBRHn4k4I205+KV0XGNXdZNnZwXbOVEQmhxGKZaHpbaf8F7\n\t xcT+IIVJWtkFrTmjwHDZPgMloLc7b38MbqFqVVtRMh7HGvlXcDWYti4Xg3q4OaJa7E\n\t hL9+NTENw03BoeJ7EoK7MzisdHJrpry3dcAm476GxasvEMLbT4oKuJU4c3mXVeI0Sk\n\t L9Iiz6LcY4GFf0xu/2mpWhviWG3zPySUcdIk6r3tX70OUc0guYOKD0Rtwh1kBn2dxQ\n\t qacjQ8prae2EA=="
        ],
        "From": "Nick Hainke <vincent@systemli.org>",
        "To": "hostap@lists.infradead.org",
        "Cc": "Nick Hainke <vincent@systemli.org>",
        "Subject": "[PATCH] Fix build without CONFIG_IEEE80211BE",
        "Date": "Sat,  7 Feb 2026 19:13:10 +0100",
        "Message-ID": "<20260207181310.119827-1-vincent@systemli.org>",
        "MIME-Version": "1.0",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260207_101321_373904_9E536665 ",
        "X-CRM114-Status": "UNSURE (   9.39  )",
        "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:  Building hostapd without IEEE 802.11be support fails due to\n    undefined references. One call to clear_wpa_sm_for_all_sta() was not\n guarded\n    by CONFIG_IEEE80211BE,\n and the first_sta_seen_mbssid callback pulled in functions\n    that are only built when CONFIG_IEEE80211BE is enabled.\n Content analysis details:   (-2.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n  0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The\n                             query to Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                          [93.190.126.36 listed in\n sa-trusted.bondedsender.org]\n  0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n                              Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                             [93.190.126.36 listed in sa-accredit.habeas.com]\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_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  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 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]\n  0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n                              Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                             [93.190.126.36 listed in\n bl.score.senderscore.com]",
        "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": "Building hostapd without IEEE 802.11be support fails due to undefined\nreferences.\n\nOne call to clear_wpa_sm_for_all_sta() was not guarded by\nCONFIG_IEEE80211BE, and the first_sta_seen_mbssid callback pulled in\nfunctions that are only built when CONFIG_IEEE80211BE is enabled.\n\nGuard both the call site and the callback helper/registration with\nCONFIG_IEEE80211BE to restore successful builds when it is disabled.\n\nSigned-off-by: Nick Hainke <vincent@systemli.org>\n---\n src/ap/ieee802_11.c    | 2 ++\n src/ap/wpa_auth_glue.c | 4 ++++\n 2 files changed, 6 insertions(+)",
    "diff": "diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c\nindex 51004064d..fe1d6a14f 100644\n--- a/src/ap/ieee802_11.c\n+++ b/src/ap/ieee802_11.c\n@@ -4932,7 +4932,9 @@ out:\n \tif (resp != WLAN_STATUS_SUCCESS || assoc_wpa_sm) {\n \t\tstruct wpa_state_machine *sm = sta->wpa_sm;\n \n+#ifdef CONFIG_IEEE80211BE\n \t\tclear_wpa_sm_for_all_sta(hapd, sm);\n+#endif /* CONFIG_IEEE80211BE */\n \t\twpa_auth_sta_deinit(sm);\n \n \t\t/* Only keep a reference to the main wpa_sm and drop the\ndiff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c\nindex 6bff35a88..76669d2b3 100644\n--- a/src/ap/wpa_auth_glue.c\n+++ b/src/ap/wpa_auth_glue.c\n@@ -1670,6 +1670,7 @@ static int hostapd_set_ltf_keyseed(void *ctx, const u8 *peer_addr,\n #endif /* CONFIG_PASN */\n \n \n+#ifdef CONFIG_IEEE80211BE\n static bool hostapd_first_sta_seen_mbssid(void *ctx, int vlan_id)\n {\n \tstruct hostapd_data *hapd = ctx;\n@@ -1688,6 +1689,7 @@ static bool hostapd_first_sta_seen_mbssid(void *ctx, int vlan_id)\n \n \treturn false;\n }\n+#endif /* CONFIG_IEEE80211BE */\n \n \n #ifdef CONFIG_IEEE80211BE\n@@ -1841,7 +1843,9 @@ int hostapd_setup_wpa(struct hostapd_data *hapd)\n #endif /* CONFIG_IEEE80211BE */\n \t\t.get_drv_flags = hostapd_wpa_auth_get_drv_flags,\n \t\t.remove_pmkid = hostapd_wpa_auth_remove_pmkid,\n+#ifdef CONFIG_IEEE80211BE\n \t\t.first_sta_seen_mbssid = hostapd_first_sta_seen_mbssid,\n+#endif /* CONFIG_IEEE80211BE */\n \t};\n \tconst u8 *wpa_ie;\n \tsize_t wpa_ie_len;\n",
    "prefixes": []
}