get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2222742,
    "url": "http://patchwork.ozlabs.org/api/patches/2222742/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/20260412133811.66758-1-gasmibal@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": "<20260412133811.66758-1-gasmibal@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-12T13:38:11",
    "name": "wpa_supplicant: Honor 4addr mode configuration in set_4addr_mode()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "6fbe51bea68e89dece7d90e2e5dc7215b0a3255e",
    "submitter": {
        "id": 83426,
        "url": "http://patchwork.ozlabs.org/api/people/83426/?format=api",
        "name": "Baligh Gasmi",
        "email": "gasmibal@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/hostap/patch/20260412133811.66758-1-gasmibal@gmail.com/mbox/",
    "series": [
        {
            "id": 499717,
            "url": "http://patchwork.ozlabs.org/api/series/499717/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/hostap/list/?series=499717",
            "date": "2026-04-12T13:38:11",
            "name": "wpa_supplicant: Honor 4addr mode configuration in set_4addr_mode()",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499717/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2222742/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2222742/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=CTEuGnFu;\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=Fj6nhfXH;\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 4fvVvk2PnTz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 01:00:31 +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 1wCIlY-0000000FuxH-40MD;\n\tMon, 13 Apr 2026 14:59:56 +0000",
            "from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wBv15-0000000ELIe-3fAC\n\tfor hostap@lists.infradead.org;\n\tSun, 12 Apr 2026 13:38:24 +0000",
            "by mail-wm1-x32f.google.com with SMTP id\n 5b1f17b1804b1-488a8ca4aadso41060515e9.3\n        for <hostap@lists.infradead.org>;\n Sun, 12 Apr 2026 06:38:22 -0700 (PDT)",
            "from sah1lpt685.softathome.com\n (2a01cb00065ce5c0d0850ef5c2eb0f94.ipv6.abo.wanadoo.fr.\n [2a01:cb00:65c:e5c0:d085:ef5:c2eb:f94])\n        by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488d5b56d1asm214990945e9.15.2026.04.12.06.38.20\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Sun, 12 Apr 2026 06:38:20 -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=OD5c42CIRXQlvNyO36plMrdVsSEeQzJRcLPQ4QsPkJU=; b=CTEuGnFueTnoAj\n\tVzCQmzEShBjHohUAjuqj4Fao9gg2gsTX+SvE0cYPF3qWw+uiqymHPFqBPS1k+DEkVu2ctQgAKrLkz\n\tM5EWSO/pLSIbxdYJmExrt+AjZV0R//qTCrJrxHltXYiU7PxiexYXh9NSZckeqz/iTsec0YIa1JM58\n\tPSFuCoBHRlVdYkDQENnCmy/CG80EiAjzs6eSVP17X1++7lkfyYtfTLdt6LRNONDZHtx3CDysTpNc3\n\tkbc6cQhhdVNagALYfUvl8cY4codTOjwSajlmgcuK9WXk1xC5qmZ+n+2UC1MvyBtsrXsa8U4ZQvTQU\n\t/1rJy1UW84zVNnlDxOjQ==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1776001101; x=1776605901;\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=7tSxatnQBBFE+ON65lSz4HPNfUAYHKJSLlaQLvn7rGI=;\n        b=Fj6nhfXHZ4q5ju2SADXNIIel9v0w4SeoGpfwEp7S2EIy76uNs8YRxfCVJA+mOJKrl5\n         xtLIdH4O4OSof9TzuizRZ7G9QPLp2a4HHLwDJ9Ix4MRyQChHCqKNM3ZeFd52/NSE/GLP\n         BT0cdC1B2tQokBZ4uIiWrJrmlo5EdaY7enhpHdSPN4bCI2idWomltcEcr/AIxJue2zGf\n         AHuo74RYAcpKWtwjKhYe95u48OneRewkDW2lCCuEkBorPHwOZlC15rdzLzaGN0L8t5y7\n         fexdxwnSD0DUlLQa6z1rzyzR4NH+BCI5L0h/ZrzafvMGfArwMEzt1HO17SepgJ+cTO0D\n         xwTQ=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776001101; x=1776605901;\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=7tSxatnQBBFE+ON65lSz4HPNfUAYHKJSLlaQLvn7rGI=;\n        b=VVhz5zWl+YYqevFX4GhNzxIq8Kc8qywW61iRgt0vYr/yH1bqzKvFbpokhNQaFLA3Ni\n         rJVJOjImYa7Gb1D+j+rqS/VtZaVbF/xiPbWPduQF9Cf19Stkw9dJxhrdARh/ZuH4PiTj\n         JzPKvsGYuto0zkeDkPNolPaDQVla3lFR/2rJ7feRnTmI1yC4o/vE9+xJBPl4/HuCWmPt\n         gPZjE0x55OhpgJxowT91AiJbL/OrrlC74Xa3CzW1cvHnObHb4kCebbc1xYEd3Px5ePfz\n         V0HnrCDDb1rSWDw6URPX/i+4+3eet4/tDo5AqTxoSLR7jHdnrgZvXKMIP5vS0VbZrVAc\n         crpw==",
        "X-Gm-Message-State": "AOJu0YyVW4UwmjzrXjAKo0V9PzYRdcR/6fh4IDA8IPZcE8TdH+Khcuoo\n\tpD8pC+aCVku6H8UYHPC1u+xaERo7sQKwMZhHVSEZhc2QDUidcXX0/IDsRcwnSw==",
        "X-Gm-Gg": "AeBDieukEcJ0S2iYEYrGbbeDa0mFSMaLLdRMnSn247jJdscfD9T6wvrasgJOYgOgH4S\n\tM2tGTSQF5NnxuioCXxkQCQWNt5Gj6aKmQ8DFOCqEWYCnrUxB2i4RhBgyHdlyg35KK6JfobbYfYi\n\tlvhjnaroayLONKwu2caeW/LSTXYY0oD4bxg1UmxGmM0TRN8SoL34JHRvXZZi/uASKJKZyNfq2ZN\n\tCc3jkJ0KC+6ECE47/fXfq/1lMREWUUJSnnHSezH1Qtl1lfJjJafFS3CU2xIl46eaA+3ck5Vv5mZ\n\trqV8eXXdwd7AIKCGphzLHTZT+4DrNVQz8M0NRQ15Ujr1gsyVCXIv9GINmn6GtDYxjXwcknHxdqR\n\tnAMXUZz1opbXfJnC4CAgR5sPUBfYDqiE7+euMakFPfeqZw1pNXOrQyDTVXcGZZ+hluwLAKkQ+oc\n\t3mfCVnohxhUkjvM71gti9kAm+trr+ex/NNWmRUUdyIV9Wsg73ViZ+8/mFppJQzjgIdj6yuCEbVM\n\tQDOAqgNqnCiz7j1W9fQAgv6Q2w/iud9emCYHyCiMBApg4siC+N04/21AZcXMdxVvZifvbOFLCGR\n\tKXgYWyCdbFxQHCe+3rz1srZ0HNpYRfMK40jmBEzOPA==",
        "X-Received": "by 2002:a05:600c:609a:b0:485:30f7:6e88 with SMTP id\n 5b1f17b1804b1-488d68a10d7mr144555535e9.31.1776001101052;\n        Sun, 12 Apr 2026 06:38:21 -0700 (PDT)",
        "From": "Baligh Gasmi <gasmibal@gmail.com>",
        "To": "hostap@lists.infradead.org",
        "Cc": "Baligh Gasmi <gasmibal@gmail.com>",
        "Subject": "[PATCH] wpa_supplicant: Honor 4addr mode configuration in\n set_4addr_mode()",
        "Date": "Sun, 12 Apr 2026 15:38:11 +0200",
        "Message-ID": "<20260412133811.66758-1-gasmibal@gmail.com>",
        "X-Mailer": "git-send-email 2.51.0",
        "MIME-Version": "1.0",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260412_063823_924302_42ACEA1D ",
        "X-CRM114-Status": "GOOD (  12.28  )",
        "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:  Move the 4addr mode enablement check into\n wpa_supplicant_set_4addr_mode()\n    to ensure the configuration is always respected. This encapsulates the\n configuration\n    logic within the function and prevents un [...]\n Content analysis details:   (-2.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\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:32f listed in]\n                             [list.dnswl.org]\n -0.0 SPF_PASS               SPF: sender matches 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_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\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 -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                             [gasmibal(at)gmail.com]",
        "X-Mailman-Approved-At": "Mon, 13 Apr 2026 07:59:54 -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": "Move the 4addr mode enablement check into wpa_supplicant_set_4addr_mode()\nto ensure the configuration is always respected. This encapsulates the\nconfiguration logic within the function and prevents unintended 4addr\nmode activation when the feature is disabled in the network configuration.\n\nSigned-off-by: Baligh Gasmi <gasmibal@gmail.com>\n---\n wpa_supplicant/events.c | 8 ++++++--\n 1 file changed, 6 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c\nindex 8530d4599..a93f70b79 100644\n--- a/wpa_supplicant/events.c\n+++ b/wpa_supplicant/events.c\n@@ -3118,6 +3118,11 @@ static void interworking_process_assoc_resp(struct wpa_supplicant *wpa_s,\n \n static void wpa_supplicant_set_4addr_mode(struct wpa_supplicant *wpa_s)\n {\n+\tif (wpa_s->current_ssid && !wpa_s->current_ssid->enable_4addr_mode) {\n+\t\twpa_printf(MSG_DEBUG, \"4addr mode not enabled in config\");\n+\t\treturn;\n+\t}\n+\n \tif (wpa_s->enabled_4addr_mode) {\n \t\twpa_printf(MSG_DEBUG, \"4addr mode already set\");\n \t\treturn;\n@@ -4979,8 +4984,7 @@ static void wpa_supplicant_event_assoc(struct wpa_supplicant *wpa_s,\n \twpa_s->dpp_pfs_fallback = 0;\n #endif /* CONFIG_DPP2 */\n \n-\tif (wpa_s->current_ssid && wpa_s->current_ssid->enable_4addr_mode)\n-\t\twpa_supplicant_set_4addr_mode(wpa_s);\n+\twpa_supplicant_set_4addr_mode(wpa_s);\n }\n \n \n",
    "prefixes": []
}