get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2229814,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229814/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/20260428200639.40243-12-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-12-andrei.otcheretianski@intel.com>",
    "date": "2026-04-28T20:05:12",
    "name": "[RFC,11/97] tests: NAN: Add tests for 2 NDPs with same peer",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "360941c7e7a5d25224cbaa8298d28640656b847f",
    "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-12-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/2229814/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229814/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=aGHaZxs9;\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=jVhFpcWs;\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 4g4s1n5w8Mz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 06:08:13 +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 1wHoiZ-00000002Cbc-0eqH;\n\tTue, 28 Apr 2026 20:07:39 +0000",
            "from mgamail.intel.com ([198.175.65.16])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wHoiR-00000002CP7-4AQI\n\tfor hostap@lists.infradead.org;\n\tTue, 28 Apr 2026 20:07:34 +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:07:32 -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:07:30 -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=UkCzA8u81ltX8/cDvptDsHgprAUjZPx+/OMgq+dKfpw=; b=aGHaZxs9LKZILz\n\tL1WiM6GmIjaPTnrCQqS8Vd5YwpGd7eB5zN+mc7V/b89DtLs9mNEKZZmB33tR7oiFJQpzeD1nd8XzG\n\tKTjm9X6ApwkrRR77f6wzJjHsbbocA3TdERGoOgCwl9/ihzaSsptzwmQcDcFJmzdLHdBXxl/mCd4jq\n\tEn2y8RDHkxK+t8SwCW3uf12kPgm+ljqu+kyoDFIQTiIBYLAgbcm3Q+XYpBFvbnGx6XYyyEaeX42W5\n\t4uWMqJPIeixSn9lwMmQVpKk3SfiiNek3bA/bPs/hbXjVintjrNeGpX//9rei9UlXsKmaP5T6rr1i8\n\tnh98MK0EwaBJmbJZgrMw==;",
            "v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1777406853; x=1808942853;\n  h=from:to:cc:subject:date:message-id:in-reply-to:\n   references:mime-version:content-transfer-encoding;\n  bh=LqRW67PGwa98CPwsDfJ/5dYzK0nV7hh7i1rWuqoyL+0=;\n  b=jVhFpcWsCpjkwjICi1WmSp8DJXXP5KUT6Ydoj+lzAh6iU+936SJCvK4J\n   MHtMHcDY+oLAfl4eyBoRGKRjrvJq9UHJmBRkXVrOykAbXzZbVz/NMIAg9\n   bXT8dRUslzKF9F21szS1l9bgXgpYrOoaIspfIh0/qdzJcWpXxKXWuG1zp\n   I1MU4AMjDLJro7jRD5RgW9LDMg5oaI3F2q7mrzQQx0iwHOwLeUNibbPXY\n   JfbHovWyWkm/PFZilOeNzP4pLpGnc58lqZkzfomtu/PWOosaLjl2rvls2\n   n+MgPOP6YHRRES+zJG//r6yDN+wFzmCtDuXG56xq2maRKFF8rvWQm2xzi\n   g==;"
        ],
        "X-CSE-ConnectionGUID": [
            "koSY4fXdT+CmLIy0e8gWhg==",
            "5k9dqN1JQYOHxEXowBFKYA=="
        ],
        "X-CSE-MsgGUID": [
            "yTOJ6J1DQKaO+VIbhJzhiQ==",
            "5ecc2FdXQK6SN0tKW6Wd/w=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6800,10657,11770\"; a=\"78519295\"",
            "E=Sophos;i=\"6.23,204,1770624000\";\n   d=\"scan'208\";a=\"78519295\"",
            "E=Sophos;i=\"6.23,204,1770624000\";\n   d=\"scan'208\";a=\"257609977\""
        ],
        "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": "[RFC 11/97] tests: NAN: Add tests for 2 NDPs with same peer",
        "Date": "Tue, 28 Apr 2026 23:05:12 +0300",
        "Message-ID": "<20260428200639.40243-12-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_130732_108193_48B083C5 ",
        "X-CRM114-Status": "UNSURE (   8.49  )",
        "X-CRM114-Notice": "Please train this message.",
        "X-Spam-Score": "-4.5 (----)",
        "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:  Add test cases for establishing two NDPs with the same\n peer:\n    - test_nan_dp_open_2_ndps: Two open NDPs with the same peer -\n test_nan_dp_open_2_ndps_security_upgrade:\n    First NDP open, second with SK CCMP [...]\n Content analysis details:   (-4.5 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_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             Message has at least one valid DKIM or DK\n signature\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.1 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": "Add test cases for establishing two NDPs with the same peer:\n- test_nan_dp_open_2_ndps: Two open NDPs with the same peer\n- test_nan_dp_open_2_ndps_security_upgrade: First NDP open, second with\n  SK CCMP-128 security (security upgrade scenario)\n\nSigned-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>\n---\n tests/hwsim/test_nan.py | 63 +++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 63 insertions(+)",
    "diff": "diff --git a/tests/hwsim/test_nan.py b/tests/hwsim/test_nan.py\nindex ce7a65fb84..8926140b9f 100644\n--- a/tests/hwsim/test_nan.py\n+++ b/tests/hwsim/test_nan.py\n@@ -1179,6 +1179,69 @@ def test_nan_dp_open(dev, apdev, params):\n     \"\"\"NAN DP open\"\"\"\n     run_nan_dp()\n \n+def test_nan_dp_open_2_ndps(dev, apdev, params):\n+    \"\"\"NAN DP open - 2 NDPs with same peer\"\"\"\n+    set_country(\"US\")\n+    try:\n+        _run_nan_dp_2_ndps(secure_ndp2=False)\n+    finally:\n+        set_country(\"00\")\n+\n+def test_nan_dp_open_2_ndps_security_upgrade(dev, apdev, params):\n+    \"\"\"NAN DP - 2 NDPs with same peer, second with security upgrade\"\"\"\n+    set_country(\"US\")\n+    try:\n+        _run_nan_dp_2_ndps(secure_ndp2=True)\n+    finally:\n+        set_country(\"00\")\n+\n+def _run_nan_dp_2_ndps(secure_ndp2=False):\n+    \"\"\"\n+    Test 2 NDPs with the same peer.\n+\n+    @secure_ndp2: If True, NDP2 uses SK CCMP-128 security (security upgrade).\n+                  If False, both NDPs are open.\n+    \"\"\"\n+    pwd2 = \"NAN\" if secure_ndp2 else None\n+    csid2 = 1 if secure_ndp2 else None  # SK CCMP-128\n+\n+    with hwsim_nan_radios() as (wpas1, wpas2), \\\n+        NanDevice(wpas1, \"nan0\", \"ndi0\") as pub, NanDevice(wpas2, \"nan1\", \"ndi1\") as sub:\n+\n+        pssi = \"aabbccdd001122334455667788\"\n+        sssi = \"ddbbccaa001122334455667788\"\n+\n+        # First NDP (always open)\n+        pid1, sid1, paddr, saddr = _nan_discover_service(pub, sub, \"test_service1\", pssi, sssi)\n+\n+        ndp_id1, init_ndi1 = _nan_ndp_request_and_accept(pub, sub, pid1, sid1, paddr, saddr,\n+                                                         req_ssi=\"aabbcc\", resp_ssi=\"ddeeff\",\n+                                                         configure_schedule=True)\n+\n+        logger.info(\"NDP1 (open) connection established successfully\")\n+\n+        # Second NDP (open or secure based on secure_ndp2)\n+        pid2, sid2, _, _ = _nan_discover_service(pub, sub, \"test_service2\", pssi, sssi)\n+\n+        ndp_id2, init_ndi2 = _nan_ndp_request_and_accept(pub, sub, pid2, sid2, paddr, saddr,\n+                                                         req_ssi=\"112233\", resp_ssi=\"445566\",\n+                                                         csid=csid2, password=pwd2,\n+                                                         configure_schedule=False)  # Schedule already configured\n+\n+        if secure_ndp2:\n+            logger.info(\"NDP2 (secure) connection established successfully\")\n+            logger.info(\"Security upgrade test: open NDP1 + secure NDP2 with same peer\")\n+        else:\n+            logger.info(\"NDP2 (open) connection established successfully\")\n+            logger.info(\"Both open NDPs with same peer established successfully\")\n+\n+        _nan_test_connectivity(pub, sub)\n+        _nan_ndp_terminate(pub, sub, paddr, init_ndi1, ndp_id1)\n+\n+        # Test connectivity again to ensure NDP2 is still functional\n+        _nan_test_connectivity(pub, sub)\n+        _nan_ndp_terminate(pub, sub, paddr, init_ndi2, ndp_id2)\n+\n def test_nan_dp_open_counter(dev, apdev, params):\n     \"\"\"NAN DP open with counter proposal\"\"\"\n     run_nan_dp(counter=True)\n",
    "prefixes": [
        "RFC",
        "11/97"
    ]
}