[PATCH 09/16] PR: Fix 6 GHz channel exclusion in NTB PASN PR element construction
Peddolla Harshavardhan Reddy
peddolla.reddy at oss.qualcomm.com
Sun Jul 12 23:29:57 PDT 2026
Currently pr_prepare_pasn_pr_elem() passes false as the allow_6ghz
argument to pr_copy_channels() unconditionally, causing 6 GHz
channels to be stripped from the NTB capabilities and operation
mode channel lists even when the device supports 6 GHz.
Pass pr->cfg->support_6ghz instead so that 6 GHz channels are
included in the NTB (11az) PASN PR element when the device is
6 GHz capable.
Fixes: 328ab369615e ("PR: Add PR element into PASN Auth1 frame")
Signed-off-by: Peddolla Harshavardhan Reddy <peddolla.reddy at oss.qualcomm.com>
---
src/common/proximity_ranging.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/common/proximity_ranging.c b/src/common/proximity_ranging.c
index ae31d0fb8..91c8eae20 100644
--- a/src/common/proximity_ranging.c
+++ b/src/common/proximity_ranging.c
@@ -1661,7 +1661,8 @@ static int pr_prepare_pasn_pr_elem(struct pr_data *pr, struct wpabuf *extra_ies,
ranging_type & PR_NTB_SECURE_LTF_BASED_RANGING) {
pr_get_ntb_capabilities(pr, &ntb_caps);
pr_buf_add_ntb_capa_info(buf, &ntb_caps);
- pr_copy_channels(&op_channels, &ntb_caps.channels, false);
+ pr_copy_channels(&op_channels, &ntb_caps.channels,
+ pr->cfg->support_6ghz);
} else {
wpa_printf(MSG_INFO, "PR: Unsupported ranging_type 0x%x",
ranging_type);
@@ -1689,7 +1690,8 @@ static int pr_prepare_pasn_pr_elem(struct pr_data *pr, struct wpabuf *extra_ies,
op_mode.channels.op_class[0].channel[0] = forced_op_channel;
op_mode.channels.op_class[0].op_class = forced_op_class;
} else {
- pr_copy_channels(&op_mode.channels, &op_channels, false);
+ pr_copy_channels(&op_mode.channels, &op_channels,
+ pr->cfg->support_6ghz);
}
pr_buf_add_operation_mode(buf, &op_mode);
--
2.34.1
More information about the Hostap
mailing list