get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2229867,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229867/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/20260428200639.40243-59-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-59-andrei.otcheretianski@intel.com>",
    "date": "2026-04-28T20:05:59",
    "name": "[58/97] NAN: Support getting peer max idle period",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "91b7fb48014065bf34b42fa186a486747ce17795",
    "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-59-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/2229867/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229867/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=syKRe9oJ;\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=gsidrJSs;\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=GFrLvK1v;\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 4g4s7S2PTqz1xrS\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 06:13:08 +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 1wHonH-00000002J06-0DCw;\n\tTue, 28 Apr 2026 20:12:31 +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 1wHokL-00000002Exw-04nM\n\tfor hostap@bombadil.infradead.org;\n\tTue, 28 Apr 2026 20:09:29 +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 1wHokF-00000004NBq-38e7\n\tfor hostap@lists.infradead.org;\n\tTue, 28 Apr 2026 20:09:27 +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:44 -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:43 -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=7teZ+L7hTOmjTSwWNR9QUt5pG6pqn22BdXsmNCHupVQ=; b=syKRe9oJ790AJY\n\tE66T/WUja9fHSgAFKjMF1cT1Y8n13SOXOC0HsTiZOCKosordIEzyQYIUEnY49AxoLqqopp5tTSk6q\n\tm9nE7gQUEWqtoxiUzIvq5ZR4bsqhW4sjI54gbS5b9/RsIGxlCDMxE0xcmG5QZd4LisES6m0wmBRl4\n\tFRJ3vKliyHBTHAF6tQ5LmziGDyNg8jhEJmuqWx2IYcb0iDW738ki/xv7cDJdIEMu086RZG3r7fSS0\n\toWRNEmpQ9NNR2bvi7zPHvBjct2S5XQ0/u+yQ654clnChMl/JHvTNY4LwCDGan+ISzjiK/iLYPpmo4\n\tTBrlJwB54aCvN0Q6Ughg==;",
            "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=NHtK8YuAEdiAfIapmzncqPdLZSZCIxVNgPprlNUfNOM=; b=gsidrJSsxWLE0s+SKyTmAwPIyJ\n\t50kGwrdxyUp/HdCt47frWaBrLPfFJKEhuzW2XKkuMLB4yNi9BQFvO9fqlOG+ooXQW9rar8IrIrSDz\n\tQeaLO45vSki7vY7I/3jSKF48tyeyjaCdhogzi+8B7rX/3t3tB8jCVFOYeCpjN+TPaDBp0OcBGross\n\tkypQ4CUW9D2KvMa128lhXsaLWZHyoMQpbIKBWzmmE7XzgUIunjfxr0mEVDPNPGIRsuFmlxFLWitas\n\tbgFHym8MC4cFdPN5qvHAnSAzm7u4rFTrsWkdKDlqeAZfwQK5WThflrkEU77rtFQYUwIRDZlCYEj/f\n\t0K9U0JOQ==;",
            "v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1777406963; x=1808942963;\n  h=from:to:cc:subject:date:message-id:in-reply-to:\n   references:mime-version:content-transfer-encoding;\n  bh=FbXjAePGQ5X/gmk+gSF/uTcuNZDFyh3IzF4xL7vx1EQ=;\n  b=GFrLvK1vsXPEb0E0OOuTiDwzgQBrepUMiYiG8zGtzCoOSrb13nNeWsAm\n   nFrKDUHIQvpEhbIDQZgawjpYhPy6jkJxp0Vygy/SDAiBB38+oVE68aEkf\n   zzSb07sdrPbH6zBshnWQyqV0xADr/I+AYKXzhlFsJrMV2LocPnglP7+CE\n   J9WUvrMLev5MU05U4NpBewccE6GJQbE6mwAa8xGjphdx1opaT3Kseh/2u\n   lC+kXsbrsl990c+Z5KvGCG+pLnBhRMwaTsrku481xIPInFsf26FwncnmD\n   ojEr/j8E5/LokLmueDyVF02WUnVq3MnJk9UfXil9Pha5zRfX/VcSIoXZx\n   Q==;"
        ],
        "X-CSE-ConnectionGUID": [
            "o+UC18tHTJqamkze5IfIkA==",
            "u6a/eJnESJ2HJfvCKBifCA=="
        ],
        "X-CSE-MsgGUID": [
            "Q5E2Dy6IQF29fGXk6fch6A==",
            "mLuTbO4yR5Owyz49CWc+8w=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6800,10657,11770\"; a=\"78519473\"",
            "E=Sophos;i=\"6.23,204,1770624000\";\n   d=\"scan'208\";a=\"78519473\"",
            "E=Sophos;i=\"6.23,204,1770624000\";\n   d=\"scan'208\";a=\"257610593\""
        ],
        "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\tIlan Peer <ilan.peer@intel.com>",
        "Subject": "[PATCH 58/97] NAN: Support getting peer max idle period",
        "Date": "Tue, 28 Apr 2026 23:05:59 +0300",
        "Message-ID": "<20260428200639.40243-59-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_210924_101074_F3672FE7 ",
        "X-CRM114-Status": "UNSURE (   8.45  )",
        "X-CRM114-Notice": "Please train this message.",
        "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": "From: Ilan Peer <ilan.peer@intel.com>\n\nExtend the \"PEER_INFO schedule\" comment to also include the\npeer NDL max idle period.\n\nSigned-off-by: Ilan Peer <ilan.peer@intel.com>\n---\n src/nan/nan.c      | 3 +++\n src/nan/nan.h      | 3 +++\n src/nan/nan_util.c | 7 +++++++\n 3 files changed, 13 insertions(+)",
    "diff": "diff --git a/src/nan/nan.c b/src/nan/nan.c\nindex 1e2f625405..53b82492f7 100644\n--- a/src/nan/nan.c\n+++ b/src/nan/nan.c\n@@ -2745,6 +2745,9 @@ int nan_peer_get_schedule_info(struct nan_data *nan, const u8 *addr,\n \tnan_peer_get_ndc_sched(nan, peer, sched);\n \tnan_peer_get_immut_sched(nan, peer, sched);\n \n+\tif (peer->ndl)\n+\t\tsched->max_idle_period = peer->ndl->max_idle_period;\n+\n \treturn 0;\n }\n \ndiff --git a/src/nan/nan.h b/src/nan/nan.h\nindex aaa77259ee..6e01fb4938 100644\n--- a/src/nan/nan.h\n+++ b/src/nan/nan.h\n@@ -375,6 +375,7 @@ struct nan_ndp_action_notif_params {\n  * @tbm: Time bitmap for the channel\n  * @ndc: NDC time bitmap for the map\n  * @immutable: Immutable time bitmap for the map\n+ * @max_idle_period: Maximal NDL idle period in seconds that the peer indicated\n  */\n struct nan_peer_schedule {\n \tu8 n_maps;\n@@ -391,6 +392,8 @@ struct nan_peer_schedule {\n \t\tstruct nan_time_bitmap ndc;\n \t\tstruct nan_time_bitmap immutable;\n \t} maps[NAN_MAX_MAPS];\n+\n+\tu16 max_idle_period;\n };\n \n /**\ndiff --git a/src/nan/nan_util.c b/src/nan/nan_util.c\nindex c8604dc5ad..d55baebe81 100644\n--- a/src/nan/nan_util.c\n+++ b/src/nan/nan_util.c\n@@ -1685,6 +1685,13 @@ int nan_peer_dump_sched_to_buf(struct nan_peer_schedule *sched,\n \t\tpos += ret;\n \t}\n \n+\tret = wpa_scnprintf(pos, end - pos, \"max_idle_period=%u\",\n+\t\t\t    sched->max_idle_period);\n+\n+\tif (os_snprintf_error(end - pos, ret))\n+\t\tgoto err;\n+\n+\tpos += ret;\n \treturn pos - buf;\n \n err:\n",
    "prefixes": [
        "58/97"
    ]
}