get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2175622,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2175622/?format=api",
    "project": {
        "id": 22,
        "url": "http://patchwork.ozlabs.org/api/1.0/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": "<20251218161934.284933-2-benjamin@sipsolutions.net>",
    "date": "2025-12-18T16:19:33",
    "name": "[1/2] SME: Do not send RSNXE for WPA 1 connections",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "c95b7e7457bed38c9befc72cf186b138e2039d11",
    "submitter": {
        "id": 67525,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/67525/?format=api",
        "name": "Benjamin Berg",
        "email": "benjamin@sipsolutions.net"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/hostap/patch/20251218161934.284933-2-benjamin@sipsolutions.net/mbox/",
    "series": [
        {
            "id": 485877,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/485877/?format=api",
            "date": "2025-12-18T16:19:33",
            "name": "Avoid/Accept RSNXE in association request for WPA 1",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/485877/mbox/"
        }
    ],
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2175622/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=M1Nbq52t;\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=qy8U/06e;\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 4dXGCt71sCz1xty\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 19 Dec 2025 03:22:33 +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 1vWGlC-00000008o7i-3emh;\n\tThu, 18 Dec 2025 16:21:50 +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 1vWGlA-00000008o6D-0UyL\n\tfor hostap@lists.infradead.org;\n\tThu, 18 Dec 2025 16:21: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 <benjamin@sipsolutions.net>)\n\tid 1vWGl6-0000000Ec6Y-0R6s;\n\tThu, 18 Dec 2025 17:21:44 +0100"
        ],
        "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=ixMOwVGjOn1AizHqptPr/hJZZDyKfVrmREaBOOYeRDA=; b=M1Nbq52t/i1Zvm\n\tXNIxlA+Q3v9+3pCJTy0EzJD6n+2RN/IK8IqaGXXnXI+2XHlaafMwfJv24Lsyqu39kqucNfXSyR5wn\n\tHRSqIIfTaBGVV8FTwRrU7z/Ukk6vXVDnXntAeb8LuA3N9X2yp3GYGmldbd7dFPFtHXs8Mf7BuiRPG\n\tgLGip+RhtmEagnmsMYCwxuNnnnNVw24KSKI/xRD3iw67aytVFS96z+vgBV8WtgVWkt7YgDdUW9uYe\n\tMzZffhCLM1WinTYrFo8zJiiOe+8gwCi7zh6pQCMT5uApSlOFFMnFMYMydqySRNym87EMIyV7ZDG/i\n\tb+6YBG5d+5e8ZcN96wPw==;",
            "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=+Gcd0vAPRAV8sbvXilaXZqyLJKPC5+ZNyKcAXUGa33g=;\n\tt=1766074907; x=1767284507; b=qy8U/06evrfURGxLY0y896P9p0JAyku9CnHHFSbTgSPM19e\n\tX3Ee+FqoyGVSLVo46BDEH8BLpZbUH6U5eweGOM/DiNTCQblSjpS/egCwsmUh+gMdHAdg43JZH2vMu\n\tXdfXPAvDmNnxNmMIqxXvLncPAphQhQx5EzOlYt12/nI82vuPUFF2FZnxxOnJpzLLtya65AyPy0HcP\n\t5Z2QfIn55LDTnGTo6T4Y/OkCgI6sUOIKUA6vpMmqJBXfjOccxfy9HQNSm7XGAPEA4e1ll4Nhw611y\n\t2S5PqFd7ZmLxPlArXEjAPgQFdU0gMcJ5xlKLExsgSjkKAN1iBd1Fy2QGP6/PO6Mw==;"
        ],
        "From": "Benjamin Berg <benjamin@sipsolutions.net>",
        "To": "hostap@lists.infradead.org",
        "Cc": "Benjamin Berg <benjamin.berg@intel.com>",
        "Subject": "[PATCH 1/2] SME: Do not send RSNXE for WPA 1 connections",
        "Date": "Thu, 18 Dec 2025 17:19:33 +0100",
        "Message-ID": "<20251218161934.284933-2-benjamin@sipsolutions.net>",
        "X-Mailer": "git-send-email 2.51.1",
        "In-Reply-To": "<20251218161934.284933-1-benjamin@sipsolutions.net>",
        "References": "<20251218161934.284933-1-benjamin@sipsolutions.net>",
        "MIME-Version": "1.0",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20251218_082148_399608_0C907010 ",
        "X-CRM114-Status": "GOOD (  11.70  )",
        "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: Benjamin Berg <benjamin.berg@intel.com> The element\n   is not applicable to WPA 1 and it will not be included in the KDE later on.\n    However, hostapd checks that the KDE and the association request match and\n    deauthenticates the station if it sen [...]\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_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\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 -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: Benjamin Berg <benjamin.berg@intel.com>\n\nThe element is not applicable to WPA 1 and it will not be included in\nthe KDE later on. However, hostapd checks that the KDE and the\nassociation request match and deauthenticates the station if it sent the\nRSNXE in the association request.\n\nSo omit sending it if the protocol is WPA_PROTO_WPA.\n\nSigned-off-by: Benjamin Berg <benjamin.berg@intel.com>\n---\n wpa_supplicant/sme.c | 5 +++--\n 1 file changed, 3 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c\nindex 860b75f923..b12344881d 100644\n--- a/wpa_supplicant/sme.c\n+++ b/wpa_supplicant/sme.c\n@@ -810,6 +810,7 @@ static void sme_send_authentication(struct wpa_supplicant *wpa_s,\n \tif (wpa_s->wpa_proto == WPA_PROTO_WPA) {\n \t\twpa_ie = os_memdup(wpa_s->sme.assoc_req_ie,\n \t\t\t\t   wpa_s->sme.assoc_req_ie_len);\n+\t\tomit_rsnxe = 1;\n \t\tif (wpa_ie) {\n \t\t\twpa_dbg(wpa_s, MSG_DEBUG, \"WPA: Storing WPA IE\");\n \n@@ -858,8 +859,8 @@ static void sme_send_authentication(struct wpa_supplicant *wpa_s,\n \t\t    wpa_sm_has_ft_keys(wpa_s->wpa, md)) {\n \t\t\twpa_dbg(wpa_s, MSG_DEBUG, \"SME: Trying to use FT \"\n \t\t\t\t\"over-the-air\");\n-\t\t\tomit_rsnxe = !wpa_bss_get_rsnxe(wpa_s, bss, ssid,\n-\t\t\t\t\t\t\tfalse);\n+\t\t\tomit_rsnxe |= !wpa_bss_get_rsnxe(wpa_s, bss, ssid,\n+\t\t\t\t\t\t\t false);\n \t\t\tparams.auth_alg = WPA_AUTH_ALG_FT;\n \t\t\tparams.ie = wpa_s->sme.ft_ies;\n \t\t\tparams.ie_len = wpa_s->sme.ft_ies_len;\n",
    "prefixes": [
        "1/2"
    ]
}