get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2229858,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229858/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/20260428200639.40243-52-andrei.otcheretianski@intel.com/",
    "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": "<20260428200639.40243-52-andrei.otcheretianski@intel.com>",
    "date": "2026-04-28T20:05:52",
    "name": "[51/97] NAN: Remove stale sec entry on NDP termination",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "34f2633522f6635a520fb0263c9596c8fda0a973",
    "submitter": {
        "id": 62065,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/62065/?format=api",
        "name": "Andrei Otcheretianski",
        "email": "andrei.otcheretianski@intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/hostap/patch/20260428200639.40243-52-andrei.otcheretianski@intel.com/mbox/",
    "series": [
        {
            "id": 501927,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501927/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/hostap/list/?series=501927",
            "date": "2026-04-28T20:05:05",
            "name": "NAN: Group keys support, schedule update and more",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501927/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2229858/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229858/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=NP4VkbMU;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256\n header.s=casper.20170209 header.b=pYPtSOel;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=PXZIGNfI;\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 4g4s6f089Zz1xrS\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 06:12:26 +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 1wHomb-00000002I1Z-1J1T;\n\tTue, 28 Apr 2026 20:11:49 +0000",
            "from casper.infradead.org ([2001:8b0:10b:1236::1])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wHok5-00000002Ea3-1Tjf\n\tfor hostap@bombadil.infradead.org;\n\tTue, 28 Apr 2026 20:09:13 +0000",
            "from mgamail.intel.com ([198.175.65.16])\n\tby casper.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wHok0-00000004NBq-2lo6\n\tfor hostap@lists.infradead.org;\n\tTue, 28 Apr 2026 20:09:11 +0000",
            "from fmviesa001.fm.intel.com ([10.60.135.141])\n  by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Apr 2026 13:08:33 -0700",
            "from iapp347.iil.intel.com (HELO 87c02287900a.iil.intel.com)\n ([10.167.28.6])\n  by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Apr 2026 13:08:32 -0700"
        ],
        "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=o3GDxQUBzjyH+JS52JjnEKNl9AOHoz3FzgcuD+0C2Qk=; b=NP4VkbMUiKZC0h\n\tD1znAQvxxiQLrbTicx5jNzmY4Osqx5tixJwLi/JOIHRmMhPsdSq4S8H4sEpkc7yLcakBkLniM9B63\n\t5j2UCNydLXsMTvjXuBTauWb3rwWiP6Hh/P2v0gj942/WXq/92ofgZ9vlNejKcpBBBfW3DgM+ABbYL\n\t1UFIrpUJeTK7FwIBH56j/WPqef8d7CLUUc8eUloP7ESZat9uDM9A7oW9gSJjLwD2KvkYrVZUFLYf0\n\t2gCkLJm/Q/j3ux4BckPydmRIoGBG0GlLhrM2J7u5qmRP1LLskccqTv8V3gZGRYe5cRMfG9ATY+t1L\n\tyqINmYMuCFs7/4EVvRgw==;",
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version:\n\tReferences:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:\n\tContent-Type:Content-ID:Content-Description;\n\tbh=nhPElu7LXVQwejAk4D7bhTKpj2n9g+b0eBGbM4Xaa68=; b=pYPtSOelm7L+qhubUKJBrj/pxJ\n\t2FCoRAl0U826W/HUF9JBC5VtNT5NxR0yuM4YSWNG0/7QI7uLPnssM607C5tpQTliIoqVvyFoBPKpw\n\tepmznbDj2BRboz4t2eGCx5cVlr0bm47+G3/AZSylilGfAd1DlPDJCiGn/I46Zr3xxYOueZqVG9ztF\n\t49VC6mA+twPWMzwRCF2jhoN4JGLv2QnB88MAzI/QFTc94kU+mCAcG4JfFnyNedPspZgTqJjqiAq+C\n\t8JNGAG6jm2Ri7CzOnvftIdS7yZ1W113TyMb6V81ugAcAzJDUjR7c4Q0uKl8SmP6dhKAQZ4uOzRm2C\n\tA9C1uMpw==;",
            "v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1777406948; x=1808942948;\n  h=from:to:cc:subject:date:message-id:in-reply-to:\n   references:mime-version:content-transfer-encoding;\n  bh=aWF7NH3YDYam94EjZlHZA3gMmfuWuRnD2rpPcfFSNog=;\n  b=PXZIGNfIrhfSsg9C4x9pglgDYtg5QyFpcHmBeJ+IKCFsSpPq+Z/w4lyo\n   NRfWnLlIZMrKitXOsyFExAfoJQ6913sm8+PQa+YmOZxg+8Yids6+c17SW\n   bqXf3S7eIX4z6vWovQ9GfFB3t9kjbErNkZI60JXUfbvnVozb7bxqnsuML\n   kfhLw0YCbusF422l2q7diWJu7hPDFw+2QXa3HJnpEIkvwKgkz7C80zSCi\n   RlJlMHq1kGj/J6DPLT+Gj/lTrnQ7Eau9QcdY5Bxd6DNFx4PUWRTXP2mXm\n   ErfC77cYmUoaNddfxmdccM2Upsckde2ufHUaTmBzsBO4sufwbD6aNCxP7\n   Q==;"
        ],
        "X-CSE-ConnectionGUID": [
            "wbC4O34sRnWwt1oFJot4sQ==",
            "j4v+aixxSkWjgpfVHWH2BQ=="
        ],
        "X-CSE-MsgGUID": [
            "trMCUGOBRv6zcaQn3InwvQ==",
            "tgGaenhkRdGquvxowC19Cg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6800,10657,11770\"; a=\"78519448\"",
            "E=Sophos;i=\"6.23,204,1770624000\";\n   d=\"scan'208\";a=\"78519448\"",
            "E=Sophos;i=\"6.23,204,1770624000\";\n   d=\"scan'208\";a=\"257610515\""
        ],
        "X-ExtLoop1": "1",
        "From": "Andrei Otcheretianski <andrei.otcheretianski@intel.com>",
        "To": "hostap@lists.infradead.org",
        "Cc": "vamsin@qti.qualcomm.com,\n\tmaheshkkv@google.com,\n\tAndrei Otcheretianski <andrei.otcheretianski@intel.com>",
        "Subject": "[PATCH 51/97] NAN: Remove stale sec entry on NDP termination",
        "Date": "Tue, 28 Apr 2026 23:05:52 +0300",
        "Message-ID": "<20260428200639.40243-52-andrei.otcheretianski@intel.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260428200639.40243-1-andrei.otcheretianski@intel.com>",
        "References": "<20260428200639.40243-1-andrei.otcheretianski@intel.com>",
        "MIME-Version": "1.0",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260428_210909_005742_92586BB4 ",
        "X-CRM114-Status": "GOOD (  10.90  )",
        "X-Spam-Score": "-4.4 (----)",
        "X-Spam-Report": "SpamAssassin version 4.0.1 on casper.infradead.org summary:\n Content analysis details:   (-4.4 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,\n                             medium trust\n                             [198.175.65.16 listed in list.dnswl.org]\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -0.0 SPF_PASS               SPF: sender matches SPF record\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 -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]\n -0.0 DKIMWL_WL_HIGH         DKIMwl.org - High trust sender",
        "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 an NDP terminates, remove the corresponding sec entry from the\npeer's sec list if no other NDP is using the same peer NDI. Without\nthis fix, stale sec entries cause subsequent NDP setup to use wrong\nNDI addresses for NAF transmission.\n\nSigned-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>\n---\n src/nan/nan.c | 28 ++++++++++++++++++++++++++++\n 1 file changed, 28 insertions(+)",
    "diff": "diff --git a/src/nan/nan.c b/src/nan/nan.c\nindex 0d9b443eb7..4f69f85c01 100644\n--- a/src/nan/nan.c\n+++ b/src/nan/nan.c\n@@ -123,6 +123,26 @@ static void nan_peer_flush_sec(struct nan_peer_info *info)\n }\n \n \n+static void nan_peer_del_sec_entry(struct nan_peer_info *info, const u8 *peer_ndi)\n+{\n+\tstruct nan_peer_sec_info_entry *cur, *next;\n+\n+\tdl_list_for_each_safe(cur, next, &info->sec,\n+\t\t\t      struct nan_peer_sec_info_entry, list) {\n+\t\tif (!ether_addr_equal(cur->peer_ndi, peer_ndi))\n+\t\t\tcontinue;\n+\n+\t\twpa_printf(MSG_DEBUG,\n+\t\t\t\t\"NAN: Removing sec entry for peer_ndi=\" MACSTR\n+\t\t\t\t\" local_ndi=\" MACSTR,\n+\t\t\t\tMAC2STR(peer_ndi), MAC2STR(cur->local_ndi));\n+\t\tdl_list_del(&cur->list);\n+\t\tos_memset(cur, 0, sizeof(*cur));\n+\t\tos_free(cur);\n+\t}\n+}\n+\n+\n static void nan_remove_group_keys(struct nan_data *nan, struct nan_peer *peer)\n {\n \tif (peer->igtk_id) {\n@@ -1714,6 +1734,10 @@ static void nan_ndp_disconnected(struct nan_data *nan, struct nan_peer *peer,\n \t */\n \tremove_sta = !nan_peer_ndi_in_use(peer, peer_ndi);\n \n+\t/* Remove sec entry if no other NDP is using this peer NDI */\n+\tif (remove_sta)\n+\t\tnan_peer_del_sec_entry(&peer->info, peer_ndi);\n+\n \t/*\n \t * NAN_NDP_STATE_NONE means the NDP was not in progress, thus\n \t * the failure flag should be false.\n@@ -2304,6 +2328,10 @@ void nan_ndp_terminated(struct nan_data *nan, struct nan_peer *peer,\n \t */\n \tbool remove_sta = !nan_peer_ndi_in_use(peer, peer_ndi);\n \n+\t/* Remove sec entry if no other NDP is using this peer NDI */\n+\tif (remove_sta)\n+\t\tnan_peer_del_sec_entry(&peer->info, peer_ndi);\n+\n \tif (nan->cfg->ndp_disconnected)\n \t\tnan->cfg->ndp_disconnected(nan->cfg->cb_ctx, ndp_id, local_ndi,\n \t\t\t\t\t   peer_ndi, reason, false,\n",
    "prefixes": [
        "51/97"
    ]
}