Browse Source

qcacmn: Add macro for Spatial Reuse

Add below macro for SR:

1. HESIGA_Spatial_reuse_value15_allowed bit
2. NON-SRG PD disabled threshold
3. Minimum PD Threshold
4. Add service bit - wmi_service_obss_per_packet_sr_support

Change-Id: I9560518cadc5c6f916579af63ef44d41c748fd8d
CRs-Fixed: 3307369
Rachit Kankane 2 years ago
parent
commit
a9083f7afe

+ 1 - 1
target_if/core/src/target_if_main.c

@@ -302,7 +302,7 @@ static void target_if_son_tx_ops_register(
 }
 #endif
 
-#if defined WLAN_FEATURE_11AX
+#if defined WLAN_FEATURE_SR
 static void target_if_spatial_reuse_tx_ops_register(
 			struct wlan_lmac_if_tx_ops *tx_ops)
 {

+ 3 - 1
target_if/spatial_reuse/inc/target_if_spatial_reuse.h

@@ -26,7 +26,7 @@
 #include <wlan_lmac_if_def.h>
 #include <target_if.h>
 
-#if defined WLAN_FEATURE_11AX
+#if defined WLAN_FEATURE_SR
 
 #define NON_SRG_PD_SR_DISALLOWED 0x02
 #define NON_SRG_OFFSET_PRESENT 0x04
@@ -38,6 +38,8 @@
 #define NON_SRG_PARAM_VAL_DBM_SIZE 1
 #define NON_SRG_MAX_PD_OFFSET_POS 0
 #define NON_SRG_MAX_PD_OFFSET_SIZE 8
+#define NON_SR_PD_THRESHOLD_MIN -82
+#define NON_SR_PD_THRESHOLD_DISABLED 0x80
 #define WILDCARD_PDEV_ID 0x0
 
 /**

+ 1 - 0
umac/cmn_services/cmn_defs/inc/wlan_cmn_ieee80211.h

@@ -361,6 +361,7 @@ enum qcn_attribute_id {
 
 #define WLAN_HE_NON_SRG_PD_SR_DISALLOWED 0x02
 #define WLAN_HE_NON_SRG_OFFSET_PRESENT 0x04
+#define WLAN_HE_SIGA_SR_VAL15_ALLOWED  0x10
 
 #ifdef WLAN_FEATURE_11BE
 #define WLAN_EHT_CHWIDTH_20           0 /* 20MHz Oper Ch width */

+ 3 - 0
wmi/inc/wmi_unified_param.h

@@ -5896,6 +5896,9 @@ typedef enum {
 #endif
 #ifdef WLAN_PDEV_VDEV_SEND_MULTI_PARAM
 	wmi_service_combined_set_param_support,
+#endif
+#ifdef WLAN_FEATURE_SR
+	wmi_service_obss_per_packet_sr_support,
 #endif
 	wmi_services_max,
 } wmi_conv_service_ids;

+ 4 - 0
wmi/src/wmi_unified_tlv.c

@@ -21095,6 +21095,10 @@ static void populate_tlv_service(uint32_t *wmi_service)
 	wmi_service[wmi_service_feature_set_event_support] =
 				WMI_SERVICE_FEATURE_SET_EVENT_SUPPORT;
 #endif
+#ifdef WLAN_FEATURE_SR
+	wmi_service[wmi_service_obss_per_packet_sr_support] =
+				WMI_SERVICE_OBSS_PER_PACKET_SR_SUPPORT;
+#endif
 }
 
 /**