get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2227728,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2227728/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/20260424091257.a59fcc4b72db.I29bb7488b95ae487a6985706dc6cb4fa47bbc795@changeid/",
    "project": {
        "id": 22,
        "url": "http://patchwork.ozlabs.org/api/1.1/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": ""
    },
    "msgid": "<20260424091257.a59fcc4b72db.I29bb7488b95ae487a6985706dc6cb4fa47bbc795@changeid>",
    "date": "2026-04-24T07:11:55",
    "name": "[v3,3/8] AP: add UHR operation as a separate attribute",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "8462502ac1a64d02d5201a9a3f5550500f12c14a",
    "submitter": {
        "id": 265,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/265/?format=api",
        "name": "Johannes Berg",
        "email": "johannes@sipsolutions.net"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/hostap/patch/20260424091257.a59fcc4b72db.I29bb7488b95ae487a6985706dc6cb4fa47bbc795@changeid/mbox/",
    "series": [
        {
            "id": 501311,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501311/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/hostap/list/?series=501311",
            "date": "2026-04-24T07:11:54",
            "name": null,
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/501311/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227728/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227728/checks/",
    "tags": {},
    "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=xTMUX+rG;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n secure) header.d=sipsolutions.net header.i=@sipsolutions.net\n header.a=rsa-sha256 header.s=mail header.b=AquOlaiB;\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 4g242905Zjz1yJn\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 17:13:52 +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 1wGAix-0000000CmQn-18g7;\n\tFri, 24 Apr 2026 07:13:15 +0000",
            "from s3.sipsolutions.net ([2a01:4f8:242:246e::2]\n helo=sipsolutions.net)\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wGAiq-0000000CmN6-0jzq\n\tfor hostap@lists.infradead.org;\n\tFri, 24 Apr 2026 07:13:14 +0000",
            "by sipsolutions.net with esmtpsa\n (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)\n\t(Exim 4.98.2)\n\t(envelope-from <johannes@sipsolutions.net>)\n\tid 1wGAik-00000008vqe-1SKm;\n\tFri, 24 Apr 2026 09:13:02 +0200"
        ],
        "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:References:In-Reply-To:\n\tMessage-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=Rhe9PRfeEdVxYoIJYj1dT+QCOzIzLJ/u0jcURgGYQZ8=; b=xTMUX+rGkMTqzm\n\tgZawO6QLXroS51mSG0mgDqhCHBirug1WhWeJYEniTF79Jv7U4woF28k/M5meLG0eLeVuzsD6Y5KsA\n\tXu36KWtz3rW0q73XzP5DXV4oeoERYzCnmU8g8NMBr4QMNmHc+32e5Pu/BwsMdDW11jHiHlH5DSm/l\n\tftuc5/EpXCHdYDje3EHkHheW/sJhfaHhs7N5BrDEeqn1QU6YdpVPdr9D6whzApe54vkRi6wRRM2A5\n\toRVOaBkkIBemNjJBZFG7+dKojP0PibwgzrJWIe4NXnGfZpff9s2vQDN4aeKzMUl3S4IzEBs2f2LRa\n\t5mwbHo2IMo7hALKXT6/g==;",
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version:\n\tReferences:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender\n\t:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To:\n\tResent-Cc:Resent-Message-ID; bh=7a3LCi9hLi5ifGQr+4QdafOnxDUyCxPVltL+40bP6mI=;\n\tt=1777014788; x=1778224388; b=AquOlaiBMzxldsuJzqa9nedCeWuzAyqmzJuTezABx3S2Hp9\n\tntlfLThCnKV40qxkoqEo7TwfNCLl90+bjV95Eg6F/8xTeGEicjdLKVnzZhj49YfOSopM1rOelWOx9\n\tSWqxyMG5S9vuXCrnvuAypitlwezSL44duxYI363qO9u3WYClN4pYSnNzo8W/u1tYilfDB4RsuK6ji\n\t3WuwC5MW5xaeeFoO3wRvCEAkKZ4U1g3BlIHWnn3nWb26Uialx51iu4HHL/rJBKN0C7YoxJ+sm2wbq\n\t8TZBc9VXnnl2TbjWSPDi7fGeojBeDvn8EQf/00fMuMEM25w0D2xxsazwtVe19tPA==;"
        ],
        "From": "Johannes Berg <johannes@sipsolutions.net>",
        "To": "hostap@lists.infradead.org",
        "Cc": "Johannes Berg <johannes.berg@intel.com>",
        "Subject": "[PATCH v3 3/8] AP: add UHR operation as a separate attribute",
        "Date": "Fri, 24 Apr 2026 09:11:55 +0200",
        "Message-ID": "\n <20260424091257.a59fcc4b72db.I29bb7488b95ae487a6985706dc6cb4fa47bbc795@changeid>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260424071256.71834-10-johannes@sipsolutions.net>",
        "References": "<20260424071256.71834-10-johannes@sipsolutions.net>",
        "MIME-Version": "1.0",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260424_001308_221770_B211322C ",
        "X-CRM114-Status": "GOOD (  14.54  )",
        "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:  From: Johannes Berg <johannes.berg@intel.com> Since the\n beacon\n    data doesn't contain the full UHR operation element, the driver will need\n    to have the information about it separately. Add it to the driver\n interface.    \n Content analysis details:   (-2.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.0 SPF_PASS               SPF: sender matches SPF record\n -0.0 SPF_HELO_PASS          SPF: HELO 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_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 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]",
        "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": "From: Johannes Berg <johannes.berg@intel.com>\n\nSince the beacon data doesn't contain the full UHR operation\nelement, the driver will need to have the information about\nit separately. Add it to the driver interface.\n\nSigned-off-by: Johannes Berg <johannes.berg@intel.com>\n---\n src/ap/beacon.c      | 20 +++++++++++++++++++-\n src/drivers/driver.h |  6 ++++++\n 2 files changed, 25 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/src/ap/beacon.c b/src/ap/beacon.c\nindex 31f6178d0b05..cedb4bd9d537 100644\n--- a/src/ap/beacon.c\n+++ b/src/ap/beacon.c\n@@ -2497,8 +2497,22 @@ int ieee802_11_build_ap_params(struct hostapd_data *hapd,\n #endif /* CONFIG_IEEE80211BE */\n \n #ifdef CONFIG_IEEE80211BN\n-\tif (hostapd_is_uhr_enabled(hapd))\n+\tif (hostapd_is_uhr_enabled(hapd)) {\n+\t\tu8 *uhr_oper;\n+\n \t\ttailpos = hostapd_eid_uhr_operation(hapd, tailpos, true);\n+\t\tparams->uhr_oper = os_zalloc(3 + IEEE80211_UHR_OPER_MAX_SIZE);\n+\t\tif (!params->uhr_oper)\n+\t\t\tgoto error;\n+\n+\t\tuhr_oper = hostapd_eid_uhr_operation(hapd, params->uhr_oper,\n+\t\t\t\t\t\t     false);\n+\t\t/* check that it was filled */\n+\t\tif (uhr_oper == params->uhr_oper) {\n+\t\t\tos_free(params->uhr_oper);\n+\t\t\tparams->uhr_oper = NULL;\n+\t\t}\n+\t}\n #endif /* CONFIG_IEEE80211BN */\n \n #ifdef CONFIG_IEEE80211AC\n@@ -2708,6 +2722,8 @@ error:\n \tos_free(head);\n \tos_free(tail);\n \tos_free(resp);\n+\tos_free(params->uhr_oper);\n+\tparams->uhr_oper = NULL;\n \treturn -1;\n #endif /* CONFIG_SAE || NEED_AP_MLME */\n }\n@@ -2739,6 +2755,8 @@ void ieee802_11_free_ap_params(struct wpa_driver_ap_params *params)\n #endif /* CONFIG_IEEE80211AX */\n \tos_free(params->allowed_freqs);\n \tparams->allowed_freqs = NULL;\n+\tos_free(params->uhr_oper);\n+\tparams->uhr_oper = NULL;\n }\n \n \ndiff --git a/src/drivers/driver.h b/src/drivers/driver.h\nindex 2f50265657a7..485015ef4918 100644\n--- a/src/drivers/driver.h\n+++ b/src/drivers/driver.h\n@@ -1950,6 +1950,12 @@ struct wpa_driver_ap_params {\n \t * sae_password - SAE password for SAE offload\n \t */\n \tconst char *sae_password;\n+\n+\t/**\n+\t * uhr_oper - Full UHR operation (beacon only has abridged data),\n+\t * includes the extended element header\n+\t */\n+\tu8 *uhr_oper;\n };\n \n struct wpa_driver_mesh_bss_params {\n",
    "prefixes": [
        "v3",
        "3/8"
    ]
}