get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218843,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2218843/?format=api",
    "project": {
        "id": 22,
        "url": "http://patchwork.ozlabs.org/api/1.0/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": "<20260401220220.4418-52-andrei.otcheretianski@intel.com>",
    "date": "2026-04-01T22:02:00",
    "name": "[51/71] nl80211: Extend add/set station command to support NDI",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "16254ae6d3277967f2d274d75f4f8db72371221d",
    "submitter": {
        "id": 62065,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/62065/?format=api",
        "name": "Andrei Otcheretianski",
        "email": "andrei.otcheretianski@intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/hostap/patch/20260401220220.4418-52-andrei.otcheretianski@intel.com/mbox/",
    "series": [
        {
            "id": 498402,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/498402/?format=api",
            "date": "2026-04-01T22:01:09",
            "name": "NAN Data Path and Bootstrapping support",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498402/mbox/"
        }
    ],
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218843/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=OQooNw3w;\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=desiato.20200630 header.b=XMiBundb;\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=JBvyh5tQ;\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 4fmK0W2HN0z1yFv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 09:09:47 +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 1w83kP-0000000GEm6-2jus;\n\tWed, 01 Apr 2026 22:09:13 +0000",
            "from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w83ht-0000000GBQ2-1ddP\n\tfor hostap@bombadil.infradead.org;\n\tWed, 01 Apr 2026 22:06:37 +0000",
            "from mgamail.intel.com ([198.175.65.20])\n\tby desiato.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w83ho-00000001M2U-2f6J\n\tfor hostap@lists.infradead.org;\n\tWed, 01 Apr 2026 22:06:35 +0000",
            "from fmviesa003.fm.intel.com ([10.60.135.143])\n  by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Apr 2026 15:06:05 -0700",
            "from iapp347.iil.intel.com (HELO 87c02287900a.iil.intel.com)\n ([10.167.28.6])\n  by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Apr 2026 15:06:05 -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:To:From:Reply-To:Cc:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=R8vEI4e8AIY6xYmC3ZLgcCWrtALuNM7R0Z85NH4KlFo=; b=OQooNw3w+/CFpl\n\tpql0sAceDSrJ0W2ce1s7ggRV61JvoaPCS91oP9sAPDptao3LlAa38K5rutTx27WqRj48Pa1v+Q3hn\n\tm46BleSMSXnD+VQvigBmPOTOa7EIyDN5j/s2XyN8ydn5qf4E5KxEt5ElUxCnLvJ9qzWClYbIm9Ui+\n\tjet+Y3H7FclnWOoWflfMq7A3PmqLr4796VhH0waPe12QSuJIi81ZEOOistVq0rHsfIA7OyIzlGJg6\n\tLPVKLLSi/Rbnm8h70qtEICZwj07dUwOSBxVLQ89rAuyCMVriQQiGX8Nne6DzwUK2mdBejoAiD3MnL\n\tFcUgmj91lya7opWlLhOQ==;",
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version\n\t:References:In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:\n\tContent-Type:Content-ID:Content-Description;\n\tbh=oStFg2bHtaXQADshY0qs73oNmfJGQWi387KMwdEuDbU=; b=XMiBundbV8MSgV3ULfrYpT3DWP\n\tujGF7TBYt8REqwkAmFwLTMn7IwbiZ2PzWfpntAgH2jIaq6VjVPpMa0floeYoHt2wY92ykRdNx/L7W\n\tgS/aVwd7wz91zxyGkEJBjI+JFeF16kswTVe3SOzfrhK+uDxzj+ODHkxttIRE3f/lx6XQiGBIsI6oE\n\twY83+wynXatdKb7o6ojDDbr72jr/byUZgAtT+6TD81Q9A/8bC2MEWqZSy0CHYEytgq+MM7cWG/WaQ\n\thttsZmLH7xwkpA9sce2uLAwYl+ntZu+x61EtQlcWZKcDCEU4nFQ25abE7CEPvJqz3atbxtdHgZWJQ\n\tKRDSdgCg==;",
            "v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1775081192; x=1806617192;\n  h=from:to:subject:date:message-id:in-reply-to:references:\n   mime-version:content-transfer-encoding;\n  bh=zNby4Mt0JzV37rNsj/j4PXXcUS3y8U3jNi4WqconONw=;\n  b=JBvyh5tQ0hMsquhhYPHrXrQkMW1lqg6d/99uRDfrvJH6kVHQhZj9YWdE\n   5JD0Pfl/0ggDcze/gL1ZtcC6vtvnPoNNzsMpD9fEmwGQrANf7Q82D1SGk\n   hpWMtmzypYmpvYoFzu9M/YNpIvn421RveD/uh0fKhoVFQ7VhTODMvBDPe\n   qqh19Evg5p0QLhmLNI37qib0DGI3gRxsRBOGQFIwB7HhPiHT19oBZ/pX5\n   6nMyD7R1/W/yleL2IxRnDM/R5ZK6Oq6qktTxDYkw18CyluO68yAtDdcsP\n   UYk51+zgBdKdgJwEqVce5tQWJp+vZfKA205VBaL2MhOecXqgVFgbsPSzC\n   w==;"
        ],
        "X-CSE-ConnectionGUID": [
            "jBH7EqO5SMumZ5f46mpKcQ==",
            "b8CeuljvSLmLkHLGpI0mxQ=="
        ],
        "X-CSE-MsgGUID": [
            "Bm04hj33T4qw7+baCeFhZQ==",
            "810H1KSPRqebozGp5UV6FQ=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6800,10657,11746\"; a=\"75851648\"",
            "E=Sophos;i=\"6.23,153,1770624000\";\n   d=\"scan'208\";a=\"75851648\""
        ],
        "X-ExtLoop1": "1",
        "From": "Andrei Otcheretianski <andrei.otcheretianski@intel.com>",
        "To": "hostap@lists.infradead.org",
        "Subject": "[PATCH 51/71] nl80211: Extend add/set station command to support NDI",
        "Date": "Thu,  2 Apr 2026 01:02:00 +0300",
        "Message-ID": "<20260401220220.4418-52-andrei.otcheretianski@intel.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260401220220.4418-1-andrei.otcheretianski@intel.com>",
        "References": "<20260401220220.4418-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-20260401_230633_042596_D8D5A594 ",
        "X-CRM114-Status": "GOOD (  12.53  )",
        "X-Spam-Score": "-0.0 (/)",
        "X-Spam-Report": "Spam detection software,\n running on the system \"desiato.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:  From: Ilan Peer <ilan.peer@intel.com> When a NAN Data\n Interface\n    (NDI) station is configured it should be associated with the NAN\n Management\n    Interface station to which it belongs. Thus,\n when configuring an NDI station\n    to the kernel also se [...]\n Content analysis details:   (-0.0 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.20 listed in list.dnswl.org]\n  1.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                             [198.175.65.20 listed in sa-accredit.habeas.com]\n  1.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                          [198.175.65.20 listed in\n sa-trusted.bondedsender.org]\n -0.0 SPF_PASS               SPF: sender matches SPF record\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\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 -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.5 DKIMWL_WL_HIGH         DKIMwl.org - High trust sender\n  1.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                             [198.175.65.20 listed in\n bl.score.senderscore.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": "From: Ilan Peer <ilan.peer@intel.com>\n\nWhen a NAN Data Interface (NDI) station is configured it should\nbe associated with the NAN Management Interface station to which\nit belongs. Thus, when configuring an NDI station to the kernel\nalso set the corresponding NMI station address.\n\nSigned-off-by: Ilan Peer <ilan.peer@intel.com>\n---\n src/drivers/driver_nl80211.c | 22 ++++++++++++++++++++++\n 1 file changed, 22 insertions(+)",
    "diff": "diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c\nindex 96598538a2..58f6e9632f 100644\n--- a/src/drivers/driver_nl80211.c\n+++ b/src/drivers/driver_nl80211.c\n@@ -6354,6 +6354,28 @@ static int wpa_driver_nl80211_sta_add(void *priv,\n \t}\n #endif /* CONFIG_ENC_ASSOC */\n \n+#ifdef CONFIG_NAN\n+\t/*\n+\t * Set the address of the NMI station to which the NDI station\n+\t * belongs\n+\t */\n+\tif (drv->nlmode == NL80211_IFTYPE_NAN_DATA) {\n+\t\tif (!params->nmi_addr) {\n+\t\t\twpa_printf(MSG_DEBUG,\n+\t\t\t\t   \"nl80211: NMI address not provided for NDI station\");\n+\t\t\tret = -EINVAL;\n+\t\t\tgoto fail;\n+\t\t}\n+\n+\t\twpa_printf(MSG_DEBUG, \"  * nmi_addr=\" MACSTR,\n+\t\t\t   MAC2STR(params->nmi_addr));\n+\n+\t\tif (nla_put(msg, NL80211_ATTR_NAN_NMI_MAC, ETH_ALEN,\n+\t\t\t    params->nmi_addr))\n+\t\t\tgoto fail;\n+\t}\n+#endif /* CONFIG_NAN */\n+\n \tret = send_and_recv_cmd(drv, msg);\n \tmsg = NULL;\n \tif (ret)\n",
    "prefixes": [
        "51/71"
    ]
}