get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2229820,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229820/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/20260428200639.40243-17-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-17-andrei.otcheretianski@intel.com>",
    "date": "2026-04-28T20:05:17",
    "name": "[16/97] NAN: Add definitions and parsing for NDPE",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a3f1a0950cd9be30dbc01265eb105ca3047f83e2",
    "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-17-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/2229820/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229820/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=GasdAmDn;\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=YJBqs0SL;\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 4g4s2l3NnJz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 06:09:03 +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 1wHojK-00000002DZv-1ZfQ;\n\tTue, 28 Apr 2026 20:08:27 +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 1wHoiZ-00000002CcZ-3h0o\n\tfor hostap@lists.infradead.org;\n\tTue, 28 Apr 2026 20:07:42 +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:40 -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:38 -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=oFQ1w9xt6xJxEN+4I3x4gySYIoENghRVBeQAUkirdYI=; b=GasdAmDnING17N\n\tGd5FGa9Evi9EO7EuNz/xK5n5N0iozj39J38qtnUihyQby+M/qCdny419Iuou2Xg2f8jHx8guGeWdY\n\tzRa2z8NcNB3pO4CipCqmMzRL4rF3bKvRNSQcyORPZ2uJkIc+CQfufQ5gPm1GJYTf2THaIYVSX2BDi\n\tIBsyCqzc+6ZiPh+5v7jPnty50JzxSE6TzE0b4LFT4ANydH2KHHtoRcM33jX4Ait+RzAdRR06WLy3K\n\t5mfIrLRG9ckeluzo0IAAaook/I4bu5QskH0xf5AnMUbXGYKpMULu7UPFDDSa6gWSDPsITiA5YnGcf\n\ts7oWrTWz9UtUN2kFfd9w==;",
            "v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1777406860; x=1808942860;\n  h=from:to:cc:subject:date:message-id:in-reply-to:\n   references:mime-version:content-transfer-encoding;\n  bh=x4cyAKSR3mPtnxY/uibYoKRKwgHMBET2CdQ2n17zsac=;\n  b=YJBqs0SLbkyGsLLTwGD5wsinBvJusjzl8MeiFu+OCCPnANF8La8vW5GR\n   6/c+3OjiZo6BwKNu+gTOUSmt54IVPhMDi9KO3ZHUd4DBRebWmdhjDHaxW\n   f7Of+GxGTYQal5rD/XZb75JJlkIAR2oZ9TmBCR0OqaFeMvXhTakNiN5KQ\n   /fL91hmTb781vqFixi4UIFDNkAEToN3owsFKfinsbGmvWOJfE9PClnjO5\n   M5GJ+lsqzSDeLSC8o6HfjDn6vjliLOpiJ9iMVSKJkE9jy6qeqo7ANi/ru\n   HGwbAlB8UdPCiqKaLn9HqqG1oPR2uK74zqq9r0b7qspEz2IOCcDHBvqQ1\n   A==;"
        ],
        "X-CSE-ConnectionGUID": [
            "UD6vMIyKTVCFhR4vJsk/4A==",
            "P/dbjg1GRV6lyI5veC0gyw=="
        ],
        "X-CSE-MsgGUID": [
            "lOHcnoiES/W8g2dTVP7AuQ==",
            "iv72vK6kT9uGOEWGrKn6gQ=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6800,10657,11770\"; a=\"78519316\"",
            "E=Sophos;i=\"6.23,204,1770624000\";\n   d=\"scan'208\";a=\"78519316\"",
            "E=Sophos;i=\"6.23,204,1770624000\";\n   d=\"scan'208\";a=\"257610031\""
        ],
        "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 16/97] NAN: Add definitions and parsing for NDPE",
        "Date": "Tue, 28 Apr 2026 23:05:17 +0300",
        "Message-ID": "<20260428200639.40243-17-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_130740_064500_7621421B ",
        "X-CRM114-Status": "GOOD (  11.40  )",
        "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:  From: Ilan Peer <ilan.peer@intel.com> Add definitions and\n   parsing for NAN Data Path Extension attribute. Signed-off-by: Ilan Peer\n <ilan.peer@intel.com>\n    --- src/common/nan_defs.h | 19 +++++++++++++++++-- src/nan/nan_i.h | 2 ++\n    src/nan/nan_util.c | 14 +++++++++++++- 3 files changed, 32 insertions(+),\n    3 del [...]\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": "From: Ilan Peer <ilan.peer@intel.com>\n\nAdd definitions and parsing for NAN Data Path Extension\nattribute.\n\nSigned-off-by: Ilan Peer <ilan.peer@intel.com>\n---\n src/common/nan_defs.h | 19 +++++++++++++++++--\n src/nan/nan_i.h       |  2 ++\n src/nan/nan_util.c    | 14 +++++++++++++-\n 3 files changed, 32 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/src/common/nan_defs.h b/src/common/nan_defs.h\nindex d528414ef8..dfc602a42a 100644\n--- a/src/common/nan_defs.h\n+++ b/src/common/nan_defs.h\n@@ -254,14 +254,21 @@ enum nan_ndp_status {\n \tNAN_NDP_STATUS_REJECTED  = 2,\n };\n \n-/* Wi-Fi Aware spec v4.0, Table 84 (NDP Control field) */\n+/* Wi-Fi Aware spec v4.0, Table 84 (NDP Control field) and Table 87 (NDPE\n+ * Control Field).\n+ * Bits 0-4 are identical for NDP and NDPE the only differences are in\n+ * Bit 5\n+ */\n #define NAN_NDP_CTRL_CONFIRM_REQUIRED       BIT(0)\n #define NAN_NDP_CTRL_SECURITY_PRESENT       BIT(2)\n #define NAN_NDP_CTRL_PUBLISH_ID_PRESENT     BIT(3)\n #define NAN_NDP_CTRL_RESPONDER_NDI_PRESENT  BIT(4)\n+\n #define NAN_NDP_CTRL_SPEC_INFO_PRESENT      BIT(5)\n+#define NAN_NDPE_CTRL_GTK_REQUIRED          BIT(5)\n \n-/* Wi-Fi Aware spec v4.0, Table 82 (NDP attribute format)\n+/* Wi-Fi Aware spec v4.0, Table 82 (NDP attribute format) and\n+ * Table 86 (NDP Extension attribute format)\n  * Note: The structure does not include the Attribute ID and Length fields. */\n struct ieee80211_ndp {\n \tu8 dialog_token; /* Dialog Token */\n@@ -275,6 +282,14 @@ struct ieee80211_ndp {\n \tu8 optional[0];\n } STRUCT_PACKED;\n \n+/* TLV types for NDPE attribute: See Table 89 */\n+enum nan_ndpe_tlv_type {\n+\tNAN_NDPE_TLV_IPV6_LINK_LOCAL = 0,\n+\tNAN_NDPE_TLV_SRV_INFO        = 1,\n+};\n+\n+#define NAN_NDPE_TLV_IPV6_LINK_LOCAL_LEN 8\n+\n /* Wi-Fi Aware spec v4.0, Table 97 (Time Bitmap Control field format for the\n  * NAN Availability attribute) */\n #define NAN_TIME_BM_CTRL_BIT_DURATION_POS  0\ndiff --git a/src/nan/nan_i.h b/src/nan/nan_i.h\nindex 026c4ea0a3..8adae9476d 100644\n--- a/src/nan/nan_i.h\n+++ b/src/nan/nan_i.h\n@@ -588,6 +588,7 @@ struct nan_attrs {\n \tconst u8 *dev_capa_ext;\n \tconst u8 *npba;\n \tconst u8 *nira;\n+\tconst u8 *ndpe;\n \n \tu16 ndp_len;\n \tu16 ndl_len;\n@@ -598,6 +599,7 @@ struct nan_attrs {\n \tu16 dev_capa_ext_len;\n \tu16 npba_len;\n \tu16 nira_len;\n+\tu16 ndpe_len;\n };\n \n struct nan_msg {\ndiff --git a/src/nan/nan_util.c b/src/nan/nan_util.c\nindex 9e96a933fa..c0bd91aae5 100644\n--- a/src/nan/nan_util.c\n+++ b/src/nan/nan_util.c\n@@ -216,6 +216,19 @@ int nan_parse_attrs(struct nan_data *nan, const u8 *data, size_t len,\n \t\t\tattrs->nira = pos;\n \t\t\tattrs->nira_len = attr_len;\n \t\t\tbreak;\n+\t\tcase NAN_ATTR_NDP_EXT:\n+\t\t\t/*\n+\t\t\t * Validate minimal NDPE attribute length. NDP and NDPE\n+\t\t\t * attributes have the common structure and thus the\n+\t\t\t * same minimal length requirement based on the common\n+\t\t\t * fields (see struct ieee80211_ndp).\n+\t\t\t */\n+\t\t\tif (attr_len < sizeof(struct ieee80211_ndp))\n+\t\t\t\tbreak;\n+\n+\t\t\tattrs->ndpe = pos;\n+\t\t\tattrs->ndpe_len = attr_len;\n+\t\t\tbreak;\n \t\tcase NAN_ATTR_MASTER_INDICATION:\n \t\tcase NAN_ATTR_CLUSTER:\n \t\tcase NAN_ATTR_NAN_ATTR_SERVICE_ID_LIST:\n@@ -240,7 +253,6 @@ int nan_parse_attrs(struct nan_data *nan, const u8 *data, size_t len,\n \t\tcase NAN_ATTR_EXT_MESH:\n \t\tcase NAN_ATTR_PUBLIC_AVAILABILITY:\n \t\tcase NAN_ATTR_SUBSC_SERVICE_ID_LIST:\n-\t\tcase NAN_ATTR_NDP_EXT:\n \t\tcase NAN_ATTR_S3:\n \t\tcase NAN_ATTR_TPEA:\n \t\tcase NAN_ATTR_VENDOR_SPECIFIC:\n",
    "prefixes": [
        "16/97"
    ]
}