瀏覽代碼

qcacmn: Move TPE MACRO to regulatory module

Move TPE MACRO to regulatory module

Change-Id: I61672a09abe6b0d5884d1233fbc4f5d2595ea290
CRs-Fixed: 3737992
Jianmin Zhu 1 年之前
父節點
當前提交
a9c79a17ae
共有 1 個文件被更改,包括 16 次插入1 次删除
  1. 16 1
      umac/regulatory/dispatcher/inc/reg_services_public_struct.h

+ 16 - 1
umac/regulatory/dispatcher/inc/reg_services_public_struct.h

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -94,6 +94,21 @@
 
 #ifdef CONFIG_REG_CLIENT
 #define MAX_NUM_FCC_RULES 2
+/*
+ * As per spec valid range is range –64 dBm to 63 dBm.
+ * Powers in range of 64 - 191 will be invalid.
+ */
+#define INVALID_TPE_POWER 100
+/* 802.11ax-2021 Table 9-276 Meaning of Local Maximum Transmit Power Count
+ * subfield if the Maximum Transmit Power Interpretation subfield is 0 or 2
+ */
+#define MAX_TX_PWR_COUNT_FOR_160MHZ 3
+/* 802.11ax-2021 Table 9-277 Meaning of Maximum Transmit Power Count subfield
+ * if Maximum Transmit Power Interpretation subfield is 1 or 3
+ */
+#define MAX_TX_PWR_COUNT_FOR_160MHZ_PSD 4
+#define MAX_NUM_TX_POWER_FOR_320MHZ 5
+#define PUNCTURED_CHAN_POWER 128
 #endif
 
 /* no subchannels punctured */