get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2194440,
    "url": "http://patchwork.ozlabs.org/api/patches/2194440/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/20260209002016.629090-1-dominique.martinet@atmark-techno.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": "<20260209002016.629090-1-dominique.martinet@atmark-techno.com>",
    "list_archive_url": null,
    "date": "2026-02-09T00:20:16",
    "name": "nl80211: re-add interface into bridge on interface re-creation",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "94eb534ddc441a2215d1590e89e3a5f135163c06",
    "submitter": {
        "id": 81282,
        "url": "http://patchwork.ozlabs.org/api/people/81282/?format=api",
        "name": "Dominique Martinet",
        "email": "dominique.martinet@atmark-techno.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/hostap/patch/20260209002016.629090-1-dominique.martinet@atmark-techno.com/mbox/",
    "series": [
        {
            "id": 491453,
            "url": "http://patchwork.ozlabs.org/api/series/491453/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/hostap/list/?series=491453",
            "date": "2026-02-09T00:20:16",
            "name": "nl80211: re-add interface into bridge on interface re-creation",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/491453/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2194440/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2194440/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=PqhBcFz8;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=atmark-techno.com header.i=@atmark-techno.com\n header.a=rsa-sha256 header.s=gw2_bookworm header.b=oDKbCjM9;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=atmark-techno.com header.i=@atmark-techno.com\n header.a=rsa-sha256 header.s=google header.b=E7dghA1d;\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)",
            "gw2.atmark-techno.com;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=atmark-techno.com header.i=@atmark-techno.com\n header.a=rsa-sha256 header.s=google header.b=E7dghA1d;\n\tdkim-atps=neutral"
        ],
        "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 4f8QN34Pl3z1xtr\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 09 Feb 2026 11:21:04 +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 1vpF0y-0000000EbEP-1qCK;\n\tMon, 09 Feb 2026 00:20:32 +0000",
            "from gw2.atmark-techno.com ([35.74.137.57])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1vpF0v-0000000EbDz-0Vd4\n\tfor hostap@lists.infradead.org;\n\tMon, 09 Feb 2026 00:20:30 +0000",
            "from gw2.atmark-techno.com (localhost [127.0.0.1])\n\tby gw2.atmark-techno.com (Postfix) with ESMTP id 0814D32C\n\tfor <hostap@lists.infradead.org>; Mon,  9 Feb 2026 09:20:25 +0900 (JST)",
            "from mail-pl1-f200.google.com (mail-pl1-f200.google.com\n [209.85.214.200])\n\tby gw2.atmark-techno.com (Postfix) with ESMTPS id E2A7732C\n\tfor <hostap@lists.infradead.org>; Mon,  9 Feb 2026 09:20:24 +0900 (JST)",
            "by mail-pl1-f200.google.com with SMTP id\n d9443c01a7336-2a77040ede0so8368245ad.2\n        for <hostap@lists.infradead.org>;\n Sun, 08 Feb 2026 16:20:24 -0800 (PST)",
            "from localhost (sodcd-04p2-40.ppp11.odn.ad.jp. [203.139.65.40])\n        by smtp.gmail.com with UTF8SMTPSA id\n d9443c01a7336-2a951a638f6sm92093405ad.21.2026.02.08.16.20.22\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Sun, 08 Feb 2026 16:20:22 -0800 (PST)"
        ],
        "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=uoTs6izKgei7YR8osMQk721ch1hTIDiKLVV4N5fcCs4=; b=PqhBcFz8YiSXWC\n\tevVN5erPbA1EvgwMmY2C+CjoxM6ut+mHLa3aT8UNsQ+GG9b7GXwS5qGcnvtsD+9ffdze+iJHKrHIe\n\tZE9lRC8jna/MkLmNJNjERBMkyMvBrlZ67fwvLVicTMbzXmTYubepUrJSRiV9lN6WzIoFvaCG3C8C2\n\trCUIO1VgXS/TNGIBcUWa6xt1Te/toXcGbg2xB6TswCsoRQjsN0veC6krRzxheboipfatYaTCJDUT/\n\tKXV75o7lMMDOyjTZc9kkw80bvetUa+gcvO8Bf4xcpfCSKWEwwe3Vm6LaBjLfHk0MviDQZReyfZ5mU\n\tISF48QFFkbQSZ4M1YlEQ==;",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=atmark-techno.com;\n\ts=gw2_bookworm; t=1770596425;\n\tbh=LV+HtJOOwzJP2STK9cGb/H4ICwajNHvnbeiYTMkJJcE=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=oDKbCjM9F3cTrHovzcR0wsXUtMGpvloWU7fIjnmFkqnIfSLVQX+E1z/fD8Rv0fexK\n\t GfT+eSr2OpsdAd+f3itj2jonmgxjv4fu4GbaW2bxDDJdgLKYADyEIdrsXiOkdqVyMo\n\t cZnxQLDN78P1CEF1wl4/pDBQqZCiC6c+aDZ4kprpTAicT8ZwiyLSuLsNrUt2LnOhJT\n\t KvP/lxd6RhWsgY0R0fvWxAu1cwTMf9tzMpcZGamuv84NUSMTh7fNOSzhq+0X3t8xab\n\t fywjjLBYMZnezfQpOQUIM8voXZeYuJeAkOMtAXVl9g9JMumM9cx43yDCh5P4V/kiOD\n\t hEY0NJf8A43TA==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=atmark-techno.com; s=google; t=1770596423; x=1771201223;\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=2qsfd45orCrumuVE1R0B/76zR990U21ObElxYQhO3r8=;\n        b=E7dghA1daZmJrKXd0t3/n05oCesJ7TtiaZzSej0VO1VSPE/Vr42hBCe64gMOhYjxhQ\n         UfoPIUcv+9Dv3pn+ts7u4Il8IddeKXr1jh71pdGvqympTFZ7bVfnkJdxkUls05Y1h8Ev\n         oK4hOLsFxuvXCqEKqnQd2XZ1K6FQ9MiZ4jwl1WU5gZqa7Rezcz7XYa2IFfwh7CU5jdzK\n         9Ghg/7hTVECkzPQ6IXvCO+fMogdlLRuu455OmsCD8rWC6TZCFlKy/iwvfd/gS2MCXITH\n         fY52f4djjSp4R1EZIhXAGwYnF0XeK4a4Rfnz7G3wlwZwUl+n+xY7a1DQdeVYGdzL1SRx\n         KD5g=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20230601; t=1770596423; x=1771201223;\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=2qsfd45orCrumuVE1R0B/76zR990U21ObElxYQhO3r8=;\n        b=VTJ10wKp3q9C4Kiwccff9ayCMQh56dJ5TjCc5gsp0iU13l9kifiWV9egJrHorcdJ9P\n         dIvlcxtrjSkNv1PKhEpwLuZGVINWludjn2fbOyNKrnVnlAd8TeBR2AISJPFIxxBVpKqj\n         MwLasT1ywIb9pj+u/B9xI9JFX7UYfnVxFOjOdrtGtXTjGQEdGvjcABaN0f7dO47t6aqm\n         tQUnXBlsoLrSdtGIqRkfOIUh5azm3Qxtbt3gz7RPLqLsE8I/GT8FRkHPWi4anpne1TuG\n         QBsUy6u8pA9vAlI2wshmDjiXk0Ata1tvjHSpeuqEcnQVVDcYK4sBbgs06NMHHXKiJGE6\n         0DXA==",
        "X-Gm-Message-State": "AOJu0YyhgXXNZrosQ9SBSihLREalqokZHvx+XbNVTSyAEKVIfbNyY2d9\n\tHxA2dGZL+QHpkrib3Gb2/YAskqA2quUk5uR5zf9OTtBB078OFjRlePV1dUWL5QK+H4YO+3sIlvv\n\tAwTqKEx0P/62rNwemgXvrpp3uzs65FAtKC1JNuNIcVRQ9zRSy8+1PuSOU2XoxYuoPLuce2rQ2",
        "X-Gm-Gg": "AZuq6aL50AYkadQtxTZtQCh4/xRQVJR1B+CJ+HUaOloTQ4ckg0yFQoOOuxGFMFClmRw\n\tMouW9LX7gbcAYHMKfIOEgHdMAD3HC46jlD14zuevYDhl2EN1H/vh12jY2zaicl8fEXFuhtmRnza\n\tBLaRJ1S/zuF7psEGl2nn3N2uCqUyFNiVcRZhq1kB84w974hB06mt/lKq91/VtKLknK9GJOBVXXB\n\teiCV+hoThWcVACDE0Kz1XfrWafTuzrLBsdEfl4YXLMCNYOFGCLc354WPMAp57WmL8xCdy/xsWXO\n\t8IOUx8IZeDu3OeTOtuSTGS5vOsw9KAkysHP/3A4Iy7ixaey+KdYp9u/A10UDCXO7a6j+Mc162Jr\n\tkaDCZETUpfsj0fzGy8m5qNxuihtM2AnQjri81TjUzB2ZYM7k76mOFIn7Ckg==",
        "X-Received": [
            "by 2002:a17:902:f546:b0:2a7:3db0:6efe with SMTP id\n d9443c01a7336-2a951607b95mr97380865ad.12.1770596423167;\n        Sun, 08 Feb 2026 16:20:23 -0800 (PST)",
            "by 2002:a17:902:f546:b0:2a7:3db0:6efe with SMTP id\n d9443c01a7336-2a951607b95mr97380715ad.12.1770596422737;\n        Sun, 08 Feb 2026 16:20:22 -0800 (PST)"
        ],
        "From": "Dominique Martinet <dominique.martinet@atmark-techno.com>",
        "To": "hostap@lists.infradead.org",
        "Cc": "Dominique Martinet <dominique.martinet@atmark-techno.com>",
        "Subject": "[PATCH] nl80211: re-add interface into bridge on interface\n re-creation",
        "Date": "Mon,  9 Feb 2026 09:20:16 +0900",
        "Message-ID": "<20260209002016.629090-1-dominique.martinet@atmark-techno.com>",
        "X-Mailer": "git-send-email 2.47.3",
        "MIME-Version": "1.0",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260208_162029_431231_EB69A89A ",
        "X-CRM114-Status": "GOOD (  16.72  )",
        "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:  When using the nl80211 driver with a bridge,\n the driver properly\n    detects when the interface is re-created (\"nl80211: Update ifindex for a\n   removed interface\") and wpa_driver_nl80211_finish_drv_init() r [...]\n Content analysis details:   (-2.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.0 SPF_HELO_PASS          SPF: HELO matches 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                             [35.74.137.57 listed in bl.score.senderscore.com]\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                           [35.74.137.57 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                             [35.74.137.57 listed in sa-accredit.habeas.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": "When using the nl80211 driver with a bridge, the driver properly detects\nwhen the interface is re-created (\"nl80211: Update ifindex for a removed\ninterface\") and wpa_driver_nl80211_finish_drv_init() reinits it, but if\nthe interface was part of a bridge nothing adds it back there.\n\nThis adds the interface to the bridge in this function if the initial\ninit setup a bridge in the first place:\n- the first time wpa_driver_nl80211_finish_drv_init() is called,\ni802_init() has not yet setup the bridge (i802_check_bridge()), so\nthis flag is false and nothing changes\n- when the interface is re-added the flag is only set if\ni802_check_bridge() went to the end, which also ensures the bss->bridge\nvariable is sensible.\n\nSigned-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com>\n---\n\nThis is a resend of [1] without the RFC tag.\n[1] https://lists.infradead.org/pipermail/hostap/2025-December/044121.html\n\nAs it didn't get any comment feel free to bring up any concern and I'll\nbe happy to oblige.\n\n src/drivers/driver_nl80211.c | 9 +++++++++\n 1 file changed, 9 insertions(+)",
    "diff": "diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c\nindex d2be2b77bdf0..863dad4ec529 100644\n--- a/src/drivers/driver_nl80211.c\n+++ b/src/drivers/driver_nl80211.c\n@@ -3459,6 +3459,15 @@ wpa_driver_nl80211_finish_drv_init(struct i802_bss *bss, const u8 *set_addr,\n \tif (drv->vendor_cmd_test_avail)\n \t\tqca_vendor_test(drv);\n \n+\tif (bss->added_if_into_bridge) {\n+\t\tif (linux_br_add_if(drv->global->ioctl_sock, bss->brname,\n+\t\t\t\t    bss->ifname) < 0) {\n+\t\t\twpa_printf(MSG_WARNING,\n+\t\t\t\t   \"nl80211: Failed to add interface %s into bridge %s: %s\",\n+\t\t\t\t   bss->ifname, bss->brname, strerror(errno));\n+\t\t}\n+\t}\n+\n \treturn 0;\n }\n \n",
    "prefixes": []
}