Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2229904/?format=api
{ "id": 2229904, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229904/?format=api", "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/20260428200639.40243-98-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-98-andrei.otcheretianski@intel.com>", "date": "2026-04-28T20:06:38", "name": "[RFC,97/97] tests: Add data_path flag verification to NDP tests", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "a3868aeb4da2840a641e94af3efded71fda391e3", "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-98-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/2229904/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2229904/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=W46JCDHb;\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=EJ1CEn+I;\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 4g4sCK6Gjjz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 06:16:29 +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 1wHoqe-00000002NlY-3DKe;\n\tTue, 28 Apr 2026 20:16:00 +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 1wHolA-00000002Cfh-1utS\n\tfor hostap@lists.infradead.org;\n\tTue, 28 Apr 2026 20:10:23 +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:09:45 -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:09:44 -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=fctpyPQ6qZJLaf+Oja6hsFvQ6MS/rGAc2bNxY3FdAnI=; b=W46JCDHbcVejoA\n\tmBYe8fXqIQsreU4inDqD7Kr3bcc0aid2vyR/riVYuUKo5yWn1cmE47P2df6LCGqRP1JxdVJMrctr0\n\t4im+PafWxaF4KAwB/KxL1cndsb5282ZbyJguqZzQW3k1+vwvqWl/h7zUWOl/K2A13n4aONvkFIaPN\n\tmoT6tZsaeLUj8A0MP8RxhkktOp8blJoSuF+j5wpe5YdC7P5tXLRMeLJWzLcJVgZWi16NSUIT3WMpD\n\tPUccK46jDXC4tuli0RrGUlxOV8GMXnmetste4KTQC/ywucpKSRJEvc5xJayNDci2/cB+ylCc731YJ\n\torwLnsxnPhmMLosxc1GA==;", "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1777407020; x=1808943020;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=qXcJQ7L9G7cGBJ/NSydfbvB2C3tv10qPgGJttgW5FuI=;\n b=EJ1CEn+IEg/79Va2TT71kIPw8qUnPJCQkmrAZX9iDwFuyvSXPwJ5de5m\n c0lKsXMMUFWuJ5JbXjzRp6kXrFZUpd13p3IgS4Vpje+7W7vh5jecVII7L\n /psuvQizoVMdJPKisyjhIxwrFyyuabb6cj8/RWpqYO1sXTELMTa//KQio\n SZuxCZwwdMHEk9CJ/ABi78TEJN9EF4kJLqEntLAVwveHppffcZgzgqx2b\n 0Bm3bEj7f2sP0OCOTw8V49EH7x88reXGV9zhfjb1lPJmgxhiXEIRY3v46\n rAncVUFIsrjKYEwNZjpI+0sAKiYwUQnFcsfPuIXjCONaT449Oqor0sGyi\n Q==;" ], "X-CSE-ConnectionGUID": [ "+IqwZACXSpa6y7GCtG5Psg==", "m+pYsmIzRgiOpqvHIWKziQ==" ], "X-CSE-MsgGUID": [ "9HgL/uMDQPq7YfJ4vtehqg==", "AkvT7fwCQmibiW6RERzb+g==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6800,10657,11770\"; a=\"78519786\"", "E=Sophos;i=\"6.23,204,1770624000\";\n d=\"scan'208\";a=\"78519786\"", "E=Sophos;i=\"6.23,204,1770624000\";\n d=\"scan'208\";a=\"257611043\"" ], "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 97/97] tests: Add data_path flag verification to NDP tests", "Date": "Tue, 28 Apr 2026 23:06:38 +0300", "Message-ID": "<20260428200639.40243-98-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_131020_680212_D6648641 ", "X-CRM114-Status": "UNSURE ( 9.78 )", "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: Set data_path=1 in NAN_PUBLISH for data path tests and\n verify\n the data_path flag in NAN-DISCOVERY-RESULT events. Signed-off-by: Andrei\n Otcheretianski <andrei.otcheretianski@intel.com> ---\n tests/hwsim/test_nan.py\n | 36 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+),\n 12 deletions(-) \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": "Set data_path=1 in NAN_PUBLISH for data path tests and verify the\ndata_path flag in NAN-DISCOVERY-RESULT events.\n\nSigned-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>\n---\n tests/hwsim/test_nan.py | 36 ++++++++++++++++++++++++------------\n 1 file changed, 24 insertions(+), 12 deletions(-)", "diff": "diff --git a/tests/hwsim/test_nan.py b/tests/hwsim/test_nan.py\nindex 8735d140fc..e2d3f4960a 100644\n--- a/tests/hwsim/test_nan.py\n+++ b/tests/hwsim/test_nan.py\n@@ -99,7 +99,7 @@ class NanDevice:\n def publish(self, service_name, ssi=None, unsolicited=1, solicited=1,\n sync=1, match_filter_rx=None, match_filter_tx=None,\n close_proximity=0, pbm=0, nd_pmk=None, cipher_suites=None,\n- ttl=None):\n+ ttl=None, data_path=False):\n \n cmd = f\"NAN_PUBLISH service_name={service_name} sync={sync} srv_proto_type=2 fsd=0\"\n \n@@ -130,6 +130,9 @@ class NanDevice:\n if ttl is not None:\n cmd += f\" ttl={ttl}\"\n \n+ if data_path:\n+ cmd += \" data_path=1\"\n+\n return self.wpas.request(cmd)\n \n def schedule_config(self, *chans, map_id=1):\n@@ -316,7 +319,7 @@ def split_nan_event(ev):\n vals[name] = val\n return vals\n \n-def nan_sync_verify_event(ev, addr, pid, sid, ssi):\n+def nan_sync_verify_event(ev, addr, pid, sid, ssi, data_path=None):\n data = split_nan_event(ev)\n \n if data['srv_proto_type'] != '2':\n@@ -334,6 +337,9 @@ def nan_sync_verify_event(ev, addr, pid, sid, ssi):\n if data['address'] != addr:\n raise Exception(\"Unexpected peer_addr: \" + ev)\n \n+ if data_path is not None and int(data.get('data_path', 0)) != int(data_path):\n+ raise Exception(f\"Unexpected data_path: got {data.get('data_path')}, expected {int(data_path)} in event: \" + ev)\n+\n def nan_ndp_verify_event(ev, peer_nmi, publish_inst_id=None, init_ndi=None,\n ssi=None, csid=None):\n \"\"\"Verify NAN-NDP-REQUEST event format and content\"\"\"\n@@ -1080,7 +1086,7 @@ def test_nan_sched(dev, apdev, params):\n set_country(\"00\")\n \n def _nan_discover_service(pub, sub, service_name, pssi, sssi, ttl=None,\n- csid=None, gtk_csid=None):\n+ csid=None, gtk_csid=None, data_path=False):\n paddr = pub.wpas.own_addr()\n saddr = sub.wpas.own_addr()\n \n@@ -1090,7 +1096,8 @@ def _nan_discover_service(pub, sub, service_name, pssi, sssi, ttl=None,\n if gtk_csid is not None:\n cipher_suites += f\",{gtk_csid}\"\n \n- pid = pub.publish(service_name, ssi=pssi, ttl=ttl, cipher_suites=cipher_suites)\n+ pid = pub.publish(service_name, ssi=pssi, ttl=ttl, cipher_suites=cipher_suites,\n+ data_path=data_path)\n sid = sub.subscribe(service_name, ssi=sssi, active=0)\n \n logger.info(f\"Publish ID: {pid}, Subscribe ID: {sid}\")\n@@ -1099,7 +1106,7 @@ def _nan_discover_service(pub, sub, service_name, pssi, sssi, ttl=None,\n if ev is None:\n raise Exception(f\"NAN-DISCOVERY-RESULT event not seen for {service_name}\")\n \n- nan_sync_verify_event(ev, paddr, pid, sid, pssi)\n+ nan_sync_verify_event(ev, paddr, pid, sid, pssi, data_path=data_path)\n \n return pid, sid, paddr, saddr\n \n@@ -1258,7 +1265,8 @@ def _run_nan_dp(counter=False, csid=None, wrong_pwd=False, use_pmk=False,\n sssi = \"ddbbccaa001122334455667788\"\n \n pid, sid, paddr, saddr= _nan_discover_service(pub, sub, \"test_service\", pssi, sssi,\n- csid=csid, gtk_csid=gtk_csid)\n+ csid=csid, gtk_csid=gtk_csid,\n+ data_path=True)\n \n # Log peer info (specific to this test)\n peer_schedule = pub.wpas.request(\"NAN_PEER_INFO \" + saddr + \" schedule\")\n@@ -1369,7 +1377,8 @@ def _run_nan_dp_2_ndps(secure_ndp2=False):\n sssi = \"ddbbccaa001122334455667788\"\n \n # First NDP (always open)\n- pid1, sid1, paddr, saddr = _nan_discover_service(pub, sub, \"test_service1\", pssi, sssi)\n+ pid1, sid1, paddr, saddr = _nan_discover_service(pub, sub, \"test_service1\", pssi, sssi,\n+ data_path=True)\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@@ -1378,7 +1387,8 @@ def _run_nan_dp_2_ndps(secure_ndp2=False):\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+ pid2, sid2, _, _ = _nan_discover_service(pub, sub, \"test_service2\", pssi, sssi,\n+ data_path=True)\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@@ -1781,7 +1791,7 @@ def _run_nan_pairing_bootstrap_ndp(pairing_type, password=None, csid=1):\n pssi = \"aabbccdd\"\n sssi = \"ddbbccaa\"\n \n- pid = pub.publish(\"test_service\", ssi=pssi, unsolicited=0, pbm=0x1)\n+ pid = pub.publish(\"test_service\", ssi=pssi, unsolicited=0, pbm=0x1, data_path=True)\n sid = sub.subscribe(\"test_service\", ssi=sssi)\n \n logger.info(f\"Publish ID: {pid}, Subscribe ID: {sid}\")\n@@ -1790,7 +1800,7 @@ def _run_nan_pairing_bootstrap_ndp(pairing_type, password=None, csid=1):\n if ev is None:\n raise Exception(\"NAN-DISCOVERY-RESULT event not seen\")\n \n- nan_sync_verify_event(ev, paddr, pid, sid, pssi)\n+ nan_sync_verify_event(ev, paddr, pid, sid, pssi, data_path=True)\n \n ev = pub.wpas.wait_event([\"NAN-REPLIED\"], timeout=2)\n if ev is None:\n@@ -1833,7 +1843,7 @@ def _run_nan_pairing_bootstrap_ndp(pairing_type, password=None, csid=1):\n if ev is None:\n raise Exception(\"NAN-DISCOVERY-RESULT event not seen\")\n \n- nan_sync_verify_event(ev, paddr, pid, sid, pssi)\n+ nan_sync_verify_event(ev, paddr, pid, sid, pssi, data_path=True)\n \n ev = pub.wpas.wait_event([\"NAN-REPLIED\"], timeout=2)\n if ev is None:\n@@ -1861,7 +1871,8 @@ def _run_nan_ndp_reconnect_after_terminate():\n sssi = \"ddbbccaa001122334455667788\"\n \n # First service discovery and NDP\n- pid, sid, paddr, saddr = _nan_discover_service(pub, sub, \"test_service\", pssi, sssi, ttl=10)\n+ pid, sid, paddr, saddr = _nan_discover_service(pub, sub, \"test_service\", pssi, sssi,\n+ ttl=10, data_path=True)\n \n logger.info(\"Starting first NDP connection...\")\n ndp_id1, init_ndi1 = _nan_ndp_request_and_accept(pub, sub, pid, sid, paddr, saddr,\n@@ -2058,3 +2069,4 @@ def test_nan_override_potential_availability(dev, apdev, params):\n # test execution.\n if potential != old_potential:\n raise Exception(\"Potential availability did not revert to original after clearing override\")\n+\n", "prefixes": [ "RFC", "97/97" ] }