Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2234496/?format=api
{ "id": 2234496, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2234496/?format=api", "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/20260507192335.75d838abecf6.I29bb7488b95ae487a6985706dc6cb4fa47bbc795@changeid/", "project": { "id": 22, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260507192335.75d838abecf6.I29bb7488b95ae487a6985706dc6cb4fa47bbc795@changeid>", "list_archive_url": null, "date": "2026-05-07T17:21:31", "name": "[v3,04/12] 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.2/people/265/?format=api", "name": "Johannes Berg", "email": "johannes@sipsolutions.net" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/hostap/patch/20260507192335.75d838abecf6.I29bb7488b95ae487a6985706dc6cb4fa47bbc795@changeid/mbox/", "series": [ { "id": 503235, "url": "http://patchwork.ozlabs.org/api/1.2/series/503235/?format=api", "web_url": "http://patchwork.ozlabs.org/project/hostap/list/?series=503235", "date": "2026-05-07T17:21:28", "name": "some UHR support", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/503235/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2234496/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2234496/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=XFWNMS44;\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=qD2Rv/sV;\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 4gBJzl2c0mz1yKd\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 08 May 2026 03:25:23 +1000 (AEST)", "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux))\n\tid 1wL2Ry-00000004STB-0VZz;\n\tThu, 07 May 2026 17:23:50 +0000", "from s3.sipsolutions.net ([2a01:4f8:242:246e::2]\n helo=sipsolutions.net)\n\tby bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux))\n\tid 1wL2Rw-00000004SQG-0n2J\n\tfor hostap@lists.infradead.org;\n\tThu, 07 May 2026 17:23:49 +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 1wL2Rs-000000045pG-4Biz;\n\tThu, 07 May 2026 19:23:45 +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=tvs9TeWXoGC9hj1mJILww597hsLEz9o0D42RLKdMPiY=; b=XFWNMS44RhVPBX\n\tH00XX8poXsw+IOu5oplPdISXXNgqow94YSgXW+KcLIzbe7THsfPP+JXdfz4kcW1qCwuLuk1c+Rz4z\n\thNk63O6FDAvkcatAZMn2nBOhABCR0oBvObf6muKQFlBjMV1Lxm1x1DH7n+uroDG9aQQsz1WQCHTNN\n\t8afcyQ8InkOP4U0m/xIDf9InG/19ZNuCEU1MdK+a+WCL45GTWssYM+7qT/cYOvIJ+2XiAyRKtYQ7W\n\tqo4hWuHVt4VV7AjH1b6/vPVthgpqt9ebhINFiigxIzwGwkYoopzgbKGp0U+mt+5dHSoS/eEIedZTE\n\t3HGwNZW3H1FfcWY7Mjbw==;", "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=3EZYGeoEqAb/7CfaxhYtwXUbVaKT7InPhCnrhfCkzmg=;\n\tt=1778174628; x=1779384228; b=qD2Rv/sV5tdRqT4N/MxUARipM8kfbvcQ7mVfdwHAg1aC+v6\n\t8LZpBHwDBjqGMZ5Cdx1bq/VuaY01zyjzHMwhbw9H4NMMQUNdn39HzYw0SHXLjbjtGgIUj2Z2JGDYT\n\t2NFBYcwm8Pb6tyvYjib+S6kmoYdaQh4vwZ8yzy7jBhkRDmdRGQyoXuwwbfoWHfa5ow4FrNYF6tezF\n\tBaFXyO5YGKDb0G7DhQZqj5W5Qx9lGy/f0Z9cCvv/oz62wgtKV2+S200wLx2CphQPXJq6WGI0kCxka\n\tm+SCsPnFvRPppWRgTOF40N5JvQm4dTMPQAy9hVqhccT10DVca1V0YyLQRURjByYA==;" ], "From": "Johannes Berg <johannes@sipsolutions.net>", "To": "hostap@lists.infradead.org", "Cc": "Johannes Berg <johannes.berg@intel.com>", "Subject": "[PATCH v3 04/12] AP: add UHR operation as a separate attribute", "Date": "Thu, 7 May 2026 19:21:31 +0200", "Message-ID": "\n <20260507192335.75d838abecf6.I29bb7488b95ae487a6985706dc6cb4fa47bbc795@changeid>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260507172335.546456-14-johannes@sipsolutions.net>", "References": "<20260507172335.546456-14-johannes@sipsolutions.net>", "MIME-Version": "1.0", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20260507_102348_224657_CD989E9F ", "X-CRM114-Status": "GOOD ( 14.96 )", "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_NONE SPF: sender does not publish an 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_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 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]\n -0.0 DMARC_PASS DMARC pass policy", "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 ecf19c7910e3..65cad1ec0274 100644\n--- a/src/ap/beacon.c\n+++ b/src/ap/beacon.c\n@@ -2501,8 +2501,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@@ -2712,6 +2726,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@@ -2743,6 +2759,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", "04/12" ] }