get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2229865,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229865/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/20260428200639.40243-57-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-57-andrei.otcheretianski@intel.com>",
    "date": "2026-04-28T20:05:57",
    "name": "[RFC,56/97] tests: Test NAN management interface creation with an address",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "01a26b7bb8a17ea3b4addf93f48d25af1992bbbf",
    "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-57-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/2229865/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229865/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=AWKPstC3;\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=pluqfBqH;\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=HTp5eRJ6;\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 4g4s7C63z9z1xrS\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 06:12:55 +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 1wHon8-00000002InH-0krt;\n\tTue, 28 Apr 2026 20:12:22 +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 1wHokG-00000002Equ-1avZ\n\tfor hostap@bombadil.infradead.org;\n\tTue, 28 Apr 2026 20:09:24 +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 1wHokA-00000004NBq-2cDy\n\tfor hostap@lists.infradead.org;\n\tTue, 28 Apr 2026 20:09:22 +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:41 -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:40 -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=ku4hv4pth3lo0JOSbA3Honah4LFhrVbOl4C9KO2kFII=; b=AWKPstC3TdTjtM\n\t2bZgSwordd5ejtVEdvQ90xizH4OeQ0D42oW3Yrqa/C9UplM5ozHW7aJAlqFxqnQg7IAGbAQ8p20Tx\n\tOZzTIVrBMd60UVryRovn8n/BAzdMuSSwnQQpsWjDgXRrfcukvI++SKiworQ1BdgPaxOTvcq62Zk7L\n\tt1Cv3xLPKdfQBpiDDfoNdpthq7znYZt1atvOYkqtUKTH2l5TGMdMW6TrUVFJ4HRRGJjT6xF4GF7fO\n\tsyeYJ5NNR9wU6VnNapJNbrzFlymBBIooyaJXYIToyMdrbPtPMiYDhiHlapR7clkdCELTQ9MjlsNMv\n\tb2tM99pZZNgVHZZwtPAw==;",
            "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=pUxQ+WqlkjMOnbj/aJ/mouE7Xs7V4cX4lYZ6V6LH6iY=; b=pluqfBqHfs6cVF04qNifCvyJU1\n\tlXbbMU1GeCZOK6HCWGFbSJmsSw2RT9rJU9hOqqOoPkwoHkuvPnnTEEGVSUciO/R9CRm3RXm9x4ZBz\n\tA9hfbz3qc63jz6cHTfUlIEIatU6SDb8Atya4R/BOdowU3dbO7vq5kCQ54stCIZ2RZRnZInu15tdEs\n\tGZW1G1kprRmMIpmwTHkcnseo11HAxIqJnWse55k8z+ZSPMJdEmQQ+HP+L26UCv5sLcLS6OQ/HOLBo\n\t7gqWoqbyDGvarnDm6PKgkK2MS9dlaAPRy2SCcjXP150dTfSG6VhbKKxrBYBZySkEQuRYJCrxgXB8p\n\t3Cy8JDGg==;",
            "v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1777406958; x=1808942958;\n  h=from:to:cc:subject:date:message-id:in-reply-to:\n   references:mime-version:content-transfer-encoding;\n  bh=N3tMHdnkQN4C/Rm7bOb8B0ZoiGKTVCYc0MD/qGvQtnw=;\n  b=HTp5eRJ66jBRl8P6VhHbSdfUFPRwKEUCZN2ssc1BQGNlTbP5aWNfUwYU\n   eKVtcboaFYEsTP6YDO9qSLevzk3Uvo3Z19UEkn+cw21SXUzWnCIHoueax\n   Bm5OI7iiwefTaI3UlPBMRXxn7C/QSitq7G3Jkmr/9e5XLjW1Vx6MguaGQ\n   kJhNYLQaUMbFLg/uK9pjaxybrSHIr8X382RBB/Rf13o1fUafS9FK5xnWT\n   IDzXtF4QGN7UNbgbactdvve0eAGB+96BVshdSfRnJds3Ij7+S47cTaoVC\n   NHc3svBb2BV/TTiUjSecnn8IXQzNBo9HBcrQGpue2pLiIrcfUwBECqpbq\n   w==;"
        ],
        "X-CSE-ConnectionGUID": [
            "linA1HErSOu2EzpQJIl91g==",
            "VZXUTZbHRMuX6VgWJCDkpA=="
        ],
        "X-CSE-MsgGUID": [
            "hyGaOwsaTkK8KdpY85c2Xw==",
            "HMjf5n6URK+7iIQvqi0nqA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6800,10657,11770\"; a=\"78519466\"",
            "E=Sophos;i=\"6.23,204,1770624000\";\n   d=\"scan'208\";a=\"78519466\"",
            "E=Sophos;i=\"6.23,204,1770624000\";\n   d=\"scan'208\";a=\"257610563\""
        ],
        "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": "[RFC 56/97] tests: Test NAN management interface creation with an\n address",
        "Date": "Tue, 28 Apr 2026 23:05:57 +0300",
        "Message-ID": "<20260428200639.40243-57-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_210918_959904_2D6F5FE3 ",
        "X-CRM114-Status": "UNSURE (   8.76  )",
        "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\nAdd test to verify that a NAN management interface can be created\nwith an address assigned to it. Verify that the expected addresses\nare used.\n\nSigned-off-by: Ilan Peer <ilan.peer@intel.com>\n---\n tests/hwsim/test_nan.py      | 27 +++++++++++++++++++++++++--\n tests/hwsim/wpasupplicant.py |  4 +++-\n 2 files changed, 28 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/tests/hwsim/test_nan.py b/tests/hwsim/test_nan.py\nindex 2c21110a15..24da9dc629 100644\n--- a/tests/hwsim/test_nan.py\n+++ b/tests/hwsim/test_nan.py\n@@ -43,11 +43,12 @@ def check_nan_capab(dev):\n         raise HwsimSkip(f\"NAN not supported: {capa}\")\n \n class NanDevice:\n-    def __init__(self, dev, ifname, ndi_name=None):\n+    def __init__(self, dev, ifname, ndi_name=None, nmi_addr=None):\n         self.dev = dev\n         self.ifname = ifname\n         self.wpas = None\n         self.ndi_name = ndi_name\n+        self.nmi_addr = nmi_addr\n \n     def __enter__(self):\n         self.start()\n@@ -60,7 +61,7 @@ class NanDevice:\n         check_nan_capab(self.dev)\n \n         logger.info(f\"NAN device starting on {self.ifname}\")\n-        self.dev.interface_add(self.ifname, if_type=\"nan\", create=True)\n+        self.dev.interface_add(self.ifname, if_type=\"nan\", create=True, addr=self.nmi_addr)\n         self.wpas = WpaSupplicant(ifname=self.ifname)\n         self.set(\"master_pref\", \"10\")\n         self.set(\"dual_band\", \"0\")\n@@ -396,6 +397,28 @@ def test_nan_sync_active_subscribe(dev, apdev, params):\n                            pssi=\"aabbccdd\", sssi=\"ddbbccaa\",\n                            unsolicited=0)\n \n+def test_nan_sync_with_nmi_addresses(dev, apdev, params):\n+    \"\"\"NAN synchronized active subscribe and solicited publish with NMI addresses\"\"\"\n+    pnmi_addr = \"40:00:00:00:17:00\"\n+    snmi_addr = \"40:00:00:00:18:00\"\n+\n+    with hwsim_nan_radios(count=2) as [wpas1, wpas2], \\\n+            NanDevice(wpas1, \"nan0\", nmi_addr=pnmi_addr) as pub, \\\n+            NanDevice(wpas2, \"nan1\", nmi_addr=snmi_addr) as sub:\n+\n+        paddr = pub.wpas.own_addr()\n+        saddr = sub.wpas.own_addr()\n+\n+        if paddr != pnmi_addr:\n+            raise Exception(f\"Publisher NMI address mismatch: got {paddr}, expected {pnmi_addr}\")\n+\n+        if saddr != snmi_addr:\n+            raise Exception(f\"Subscriber NMI address mismatch: got {saddr}, expected {snmi_addr}\")\n+\n+        nan_sync_discovery(pub, sub, \"test_service\",\n+                           pssi=\"aabbccdd\", sssi=\"ddbbccaa\",\n+                           unsolicited=0)\n+\n def test_nan_sync_followup(dev, apdev, params):\n     \"\"\"NAN synchronized active subscribe and solicited publish\"\"\"\n     with hwsim_nan_radios(count=2) as [wpas1, wpas2], \\\ndiff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py\nindex c6090f2c62..36854fb343 100644\n--- a/tests/hwsim/wpasupplicant.py\n+++ b/tests/hwsim/wpasupplicant.py\n@@ -222,7 +222,7 @@ class WpaSupplicant:\n \n     def interface_add(self, ifname, config=\"\", driver=\"nl80211\",\n                       drv_params=None, br_ifname=None, create=False,\n-                      set_ifname=True, all_params=False, if_type=None):\n+                      set_ifname=True, all_params=False, if_type=None, addr=None):\n         status, groups = self.host.execute([\"id\"])\n         if status != 0:\n             group = \"admin\"\n@@ -242,6 +242,8 @@ class WpaSupplicant:\n             cmd += '\\tcreate'\n             if if_type:\n                 cmd += '\\t' + if_type\n+                if addr is not None:\n+                    cmd += '\\t' + addr\n         if all_params and not create:\n             if not br_ifname:\n                 cmd += '\\t'\n",
    "prefixes": [
        "RFC",
        "56/97"
    ]
}