Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.0/patches/2218835/?format=api
{ "id": 2218835, "url": "http://patchwork.ozlabs.org/api/1.0/patches/2218835/?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-45-andrei.otcheretianski@intel.com>", "date": "2026-04-01T22:01:53", "name": "[44/71] NAN: Make the potential entries in NAN availability attribute optional", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "704546483532732da79400df4da7e5d768529a04", "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-45-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/2218835/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=4T0bewpP;\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=TJDloLAP;\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 4fmJzb0ln9z1yFv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 09:08:59 +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 1w83jR-0000000GDav-3FeC;\n\tWed, 01 Apr 2026 22:08:13 +0000", "from mgamail.intel.com ([198.175.65.20])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w83hP-0000000G9xK-3dGl\n\tfor hostap@lists.infradead.org;\n\tWed, 01 Apr 2026 22:06:12 +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:05:59 -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:05:58 -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=hOCs6kIU4wsLHWQxAIeMJC72GStes8pjh1Yqm0LW8kA=; b=4T0bewpPwVGZA4\n\tHd3tIZJLrR2eQgP1eCUXby8hN2idyxdW1wNK2Mc1mmIvl//nZ/tDWvi28inoe+im4M9X9oACHlGcd\n\trIDkF5kdy2PZdqMHoLnXahdC4w89AZCRUwVv/v/m/YmekSPDv7lVMjMqliFkdIW9DYmZ7S4CBZG04\n\tixELICIMsegqXpUbX6jKR8FuTT+KXS/18dVHhq/YLHg9Wp5jVXBp+EcAopagY4HGI/l0YzRqEI2WF\n\t1q1wAM7StnEm58f8cJu9m1TDckf/wczT0VTlWAkoKmB855JxjA0U1BRwB6/7U09DLZbRPX+Mtz5NE\n\tcNtEz/sSy0hTPX826p0Q==;", "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1775081168; x=1806617168;\n h=from:to:subject:date:message-id:in-reply-to:references:\n mime-version:content-transfer-encoding;\n bh=Tlwcih2LPLRtHv/3gztEl5Sg8KeTu5trT6TqRAnRjWk=;\n b=TJDloLAPuVe4jOrEKrJBrIVuOWbWCGFsPkrMkDghuCAmPZMfLyWq8b0L\n +AxWOWG99nhh69TJqYEbYsEdNjwNYv4VNskmfw85EpX+EC7zjPrEuF2cl\n vx7++lCTHvEkp1FcMwSGsHdRmkVojynoYrl+tg4yRHq6CtrBCUTxh9U/+\n kwl+TaQN+i/eNhRCdgIiz1JoArIlq+VAdHPH+tn1arcWTNeb7+TjwO6dQ\n pvActr73j3XTpXeTU4hSTEcnK4Ug+p1cDLybHJi+SRQpYvyPZe5tJNpWX\n NcnXy0G/4XO/KZYGhTuLdbAxqrV8xUvXz1xdAUs4qRokki5bGAeXKB1sd\n w==;" ], "X-CSE-ConnectionGUID": [ "edXTaSL2TPaJBPxSaTG15g==", "GSdBHFNQSAikyBOko8szTg==" ], "X-CSE-MsgGUID": [ "mjjo+/HGRDCX6FTgTSiEgw==", "6YiZsB5XTIa/GsrhRT3eXw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6800,10657,11746\"; a=\"75851638\"", "E=Sophos;i=\"6.23,153,1770624000\";\n d=\"scan'208\";a=\"75851638\"" ], "X-ExtLoop1": "1", "From": "Andrei Otcheretianski <andrei.otcheretianski@intel.com>", "To": "hostap@lists.infradead.org", "Subject": "[PATCH 44/71] NAN: Make the potential entries in NAN availability\n attribute optional", "Date": "Thu, 2 Apr 2026 01:01:53 +0300", "Message-ID": "<20260401220220.4418-45-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_150608_146269_2A36BBE4 ", "X-CRM114-Status": "GOOD ( 16.21 )", "X-Spam-Score": "-1.9 (-)", "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: Avraham Stern <avraham.stern@intel.com> Add an option\n not to add potential entries to NAN availability attribute. The\n availability\n attribute will be passed to the driver for sending a schedule update frame\n which doesn't need the potenial en [...]\n Content analysis details: (-1.9 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_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]\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 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 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_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 -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%\n [score: 0.0000]\n -0.5 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: Avraham Stern <avraham.stern@intel.com>\n\nAdd an option not to add potential entries to NAN availability\nattribute. The availability attribute will be passed to the driver for\nsending a schedule update frame which doesn't need the potenial\nentries. Since the potential availability part may become large,\ndon't pass it to the driver.\n\nSigned-off-by: Avraham Stern <avraham.stern@intel.com>\n---\n src/nan/nan.c | 6 ++++--\n src/nan/nan.h | 3 ++-\n src/nan/nan_i.h | 2 +-\n src/nan/nan_ndl.c | 2 +-\n src/nan/nan_util.c | 14 ++++++++++----\n wpa_supplicant/nan_supplicant.c | 6 ++++--\n 6 files changed, 22 insertions(+), 11 deletions(-)", "diff": "diff --git a/src/nan/nan.c b/src/nan/nan.c\nindex b99cebb9f9..4a8bb5176a 100644\n--- a/src/nan/nan.c\n+++ b/src/nan/nan.c\n@@ -2198,6 +2198,7 @@ int nan_peer_get_pot_avail(struct nan_data *nan, const u8 *addr,\n * @n_chans: Number of channel entries in chans\n * @chans: Channel entries\n * @buf: Buffer to which the availability attributes will be added\n+ * @include_potential: If true, potential availability entries will be included\n * Returns: 0 on success; -1 on failure\n *\n * Convert the given NAN schedule information to availability attributes and add\n@@ -2208,11 +2209,12 @@ int nan_convert_sched_to_avail_attrs(struct nan_data *nan, u8 sequence_id,\n \t\t\t\t u32 map_ids_bitmap,\n \t\t\t\t size_t n_chans,\n \t\t\t\t struct nan_chan_schedule *chans,\n-\t\t\t\t struct wpabuf *buf)\n+\t\t\t\t struct wpabuf *buf,\n+\t\t\t\t bool include_potential)\n {\n \treturn nan_add_avail_attrs(nan, sequence_id, map_ids_bitmap,\n \t\t\t\t NAN_AVAIL_ENTRY_CTRL_TYPE_COND,\n-\t\t\t\t n_chans, chans, buf);\n+\t\t\t\t n_chans, chans, buf, include_potential);\n }\n \n \ndiff --git a/src/nan/nan.h b/src/nan/nan.h\nindex eb67645096..a3c521bf64 100644\n--- a/src/nan/nan.h\n+++ b/src/nan/nan.h\n@@ -557,7 +557,8 @@ int nan_convert_sched_to_avail_attrs(struct nan_data *nan, u8 sequence_id,\n \t\t\t\t u32 map_ids_bitmap,\n \t\t\t\t size_t n_chans,\n \t\t\t\t struct nan_chan_schedule *chans,\n-\t\t\t\t struct wpabuf *buf);\n+\t\t\t\t struct wpabuf *buf,\n+\t\t\t\t bool include_potential);\n bool nan_peer_pairing_supported(struct nan_data *nan, const u8 *addr);\n bool nan_peer_npk_nik_caching_supported(struct nan_data *nan, const u8 *addr);\n int nan_get_peer_ndc_freq(struct nan_data *nan ,\ndiff --git a/src/nan/nan_i.h b/src/nan/nan_i.h\nindex 16dabada7d..2f3d9eaeff 100644\n--- a/src/nan/nan_i.h\n+++ b/src/nan/nan_i.h\n@@ -579,7 +579,7 @@ int nan_get_chan_bm(struct nan_data *nan, const struct nan_sched_chan *chan,\n int nan_add_avail_attrs(struct nan_data *nan, u8 sequence_id,\n \t\t\tu32 map_ids_bitmap, u8 type_for_conditional,\n \t\t\tsize_t n_chans, struct nan_chan_schedule *chans,\n-\t\t\tstruct wpabuf *buf);\n+\t\t\tstruct wpabuf *buf, bool include_potential);\n void nan_del_avail_entry(struct nan_avail_entry *entry);\n void nan_flush_avail_entries(struct dl_list *avail_entries);\n int nan_sched_entries_to_avail_entries(struct nan_data *nan,\ndiff --git a/src/nan/nan_ndl.c b/src/nan/nan_ndl.c\nindex aa0a8137e6..ca537e26d5 100644\n--- a/src/nan/nan_ndl.c\n+++ b/src/nan/nan_ndl.c\n@@ -1372,7 +1372,7 @@ int nan_ndl_add_avail_attrs(struct nan_data *nan, const struct nan_peer *peer,\n \treturn nan_add_avail_attrs(nan, sched->sequence_id,\n \t\t\t\t sched->map_ids_bitmap,\n \t\t\t\t type_for_conditional,\n-\t\t\t\t sched->n_chans, sched->chans, buf);\n+\t\t\t\t sched->n_chans, sched->chans, buf, true);\n }\n \n \ndiff --git a/src/nan/nan_util.c b/src/nan/nan_util.c\nindex e736ea8510..52cc8d67af 100644\n--- a/src/nan/nan_util.c\n+++ b/src/nan/nan_util.c\n@@ -706,6 +706,7 @@ static void nan_build_pot_avail_entry(struct nan_data *nan, struct wpabuf *buf,\n * @n_chans: Number of channels in chans\n * @chans: Channel schedules\n * @buf: Frame buffer to which the attribute would be added\n+ * @include_potential: If true, potential availability entries would be added\n * Returns: 0 on success, negative on failure.\n *\n * An availability attribute is added for each map (identified by map ID) in the\n@@ -716,7 +717,7 @@ static void nan_build_pot_avail_entry(struct nan_data *nan, struct wpabuf *buf,\n int nan_add_avail_attrs(struct nan_data *nan, u8 sequence_id,\n \t\t\tu32 map_ids_bitmap, u8 type_for_conditional,\n \t\t\tsize_t n_chans, struct nan_chan_schedule *chans,\n-\t\t\tstruct wpabuf *buf)\n+\t\t\tstruct wpabuf *buf, bool include_potential)\n {\n \tu8 last_map_id = NAN_INVALID_MAP_ID;\n \tu32 handled_map_ids = 0;\n@@ -770,8 +771,9 @@ int nan_add_avail_attrs(struct nan_data *nan, u8 sequence_id,\n \t\t\t\t\t \"NAN: Add avail attr done: map_id=%u\",\n \t\t\t\t\t last_map_id);\n \n-\t\t\t\tnan_build_pot_avail_entry(nan, buf,\n-\t\t\t\t\t\t\t last_map_id);\n+\t\t\t\tif (include_potential)\n+\t\t\t\t\tnan_build_pot_avail_entry(nan, buf,\n+\t\t\t\t\t\t\t\t last_map_id);\n \t\t\t\tWPA_PUT_LE16(len_ptr,\n \t\t\t\t\t (u8 *) wpabuf_put(buf, 0) -\n \t\t\t\t\t len_ptr - 2);\n@@ -815,7 +817,8 @@ int nan_add_avail_attrs(struct nan_data *nan, u8 sequence_id,\n \t}\n \n \tif (last_map_id != NAN_INVALID_MAP_ID) {\n-\t\tnan_build_pot_avail_entry(nan, buf, last_map_id);\n+\t\tif (include_potential)\n+\t\t\tnan_build_pot_avail_entry(nan, buf, last_map_id);\n \t\tWPA_PUT_LE16(len_ptr, (u8 *) wpabuf_put(buf, 0) - len_ptr - 2);\n \n \t\twpa_printf(MSG_DEBUG, \"NAN: Add avail attr done: map_id=%u\",\n@@ -825,6 +828,9 @@ int nan_add_avail_attrs(struct nan_data *nan, u8 sequence_id,\n \t\t\t \"NAN: No committed/conditional entries were added\");\n \t}\n \n+\tif (!include_potential)\n+\t\treturn 0;\n+\n \t/*\n \t * Add NAN availability attributes with a single potential availability\n \t * entry for map IDs that are not included in the schedule.\ndiff --git a/wpa_supplicant/nan_supplicant.c b/wpa_supplicant/nan_supplicant.c\nindex fcc78f5ea7..febbd512d4 100644\n--- a/wpa_supplicant/nan_supplicant.c\n+++ b/wpa_supplicant/nan_supplicant.c\n@@ -2044,8 +2044,10 @@ static void wpas_nan_de_add_extra_attrs(void *ctx, struct wpabuf *buf)\n \n \twpas_nan_fill_ndp_schedule(wpa_s, &sched);\n \tnan_add_dev_capa_attr(wpa_s->nan, buf);\n-\tnan_convert_sched_to_avail_attrs(wpa_s->nan, wpa_s->schedule_sequence_id,\n-\t\t\t\t\t map_ids, sched.n_chans,sched.chans, buf);\n+\tnan_convert_sched_to_avail_attrs(wpa_s->nan,\n+\t\t\t\t\t wpa_s->schedule_sequence_id,\n+\t\t\t\t\t map_ids, sched.n_chans,\n+\t\t\t\t\t sched.chans, buf, true);\n }\n \n \n", "prefixes": [ "44/71" ] }