[PATCH 08/16] PR: Increase PR_MAX_OP_CLASSES from 15 to 30

Peddolla Harshavardhan Reddy peddolla.reddy at oss.qualcomm.com
Sun Jul 12 23:29:56 PDT 2026


Currently PR_MAX_OP_CLASSES is set to 15, which is not large enough
to hold all valid operating classes, causing 80 MHz channels and
higher bandwidth operating classes to be excluded.

Increase the limit to 30 to include higher bandwidth operating
classes.

Fixes: cfe7a215db0b ("PR: Determine channels that are supported to perform ranging")
Signed-off-by: Peddolla Harshavardhan Reddy <peddolla.reddy at oss.qualcomm.com>
---
 src/common/proximity_ranging.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/proximity_ranging.h b/src/common/proximity_ranging.h
index 902ced541..a9b917520 100644
--- a/src/common/proximity_ranging.h
+++ b/src/common/proximity_ranging.h
@@ -25,7 +25,7 @@
 /**
  * PR_MAX_OP_CLASSES - Maximum number of operating classes
  */
-#define PR_MAX_OP_CLASSES 15
+#define PR_MAX_OP_CLASSES 30
 
 /**
  * PR_MAX_OP_CLASS_CHANNELS - Maximum number of channels per operating class
-- 
2.34.1




More information about the Hostap mailing list