Преглед изворни кода

qcacmn: Add ESP service support & user configs

Enable ESP service support. Update ESP user configured pdev params
to firmware.

CRs-Fixed: 2316710
Change-Id: Ia465518500b0362e79983222c4084be7d45b2309
Subrat Mishra пре 6 година
родитељ
комит
8ebfe83d1f
3 измењених фајлова са 13 додато и 0 уклоњено
  1. 4 0
      wmi/inc/wmi_unified_param.h
  2. 3 0
      wmi/src/wmi_unified_non_tlv.c
  3. 6 0
      wmi/src/wmi_unified_tlv.c

+ 4 - 0
wmi/inc/wmi_unified_param.h

@@ -5774,6 +5774,9 @@ typedef enum {
 	wmi_pdev_param_esp_indication_period,
 	wmi_pdev_param_antenna_gain_half_db,
 	wmi_pdev_param_ru26_allowed,
+	wmi_pdev_param_esp_ba_window,
+	wmi_pdev_param_esp_airtime_fraction,
+	wmi_pdev_param_esp_ppdu_duration,
 	wmi_pdev_param_max,
 } wmi_conv_pdev_params_id;
 
@@ -6066,6 +6069,7 @@ typedef enum {
 	wmi_service_smart_logging_support,
 #endif
 	wmi_service_infra_mbssid,
+	wmi_service_esp_support,
 	wmi_service_obss_spatial_reuse,
 	wmi_services_max,
 } wmi_conv_service_ids;

+ 3 - 0
wmi/src/wmi_unified_non_tlv.c

@@ -9398,6 +9398,9 @@ static void populate_pdev_param_non_tlv(uint32_t *pdev_param)
 		WMI_PDEV_PARAM_SOFT_TX_CHAIN_MASK;
 	pdev_param[wmi_pdev_param_esp_indication_period] =
 		WMI_PDEV_PARAM_ESP_INDICATION_PERIOD;
+	pdev_param[wmi_pdev_param_esp_ba_window] = WMI_UNAVAILABLE_PARAM;
+	pdev_param[wmi_pdev_param_esp_airtime_fraction] = WMI_UNAVAILABLE_PARAM;
+	pdev_param[wmi_pdev_param_esp_ppdu_duration] = WMI_UNAVAILABLE_PARAM;
 	pdev_param[wmi_pdev_param_rfkill_enable] = WMI_UNAVAILABLE_PARAM;
 	pdev_param[wmi_pdev_param_hw_rfkill_config] = WMI_UNAVAILABLE_PARAM;
 	pdev_param[wmi_pdev_param_low_power_rf_enable] = WMI_UNAVAILABLE_PARAM;

+ 6 - 0
wmi/src/wmi_unified_tlv.c

@@ -23587,6 +23587,7 @@ static void populate_tlv_service(uint32_t *wmi_service)
 	wmi_service[wmi_service_twt_responder] = WMI_SERVICE_AP_TWT;
 	wmi_service[wmi_service_listen_interval_offload_support] =
 			WMI_SERVICE_LISTEN_INTERVAL_OFFLOAD_SUPPORT;
+	wmi_service[wmi_service_esp_support] = WMI_SERVICE_ESP_SUPPORT;
 	wmi_service[wmi_service_obss_spatial_reuse] =
 			WMI_SERVICE_OBSS_SPATIAL_REUSE;
 
@@ -23833,6 +23834,11 @@ static void populate_pdev_param_tlv(uint32_t *pdev_param)
 		WMI_PDEV_PARAM_ANTENNA_GAIN_HALF_DB;
 	pdev_param[wmi_pdev_param_esp_indication_period] =
 				WMI_PDEV_PARAM_ESP_INDICATION_PERIOD;
+	pdev_param[wmi_pdev_param_esp_ba_window] = WMI_PDEV_PARAM_ESP_BA_WINDOW;
+	pdev_param[wmi_pdev_param_esp_airtime_fraction] =
+				WMI_PDEV_PARAM_ESP_AIRTIME_FRACTION;
+	pdev_param[wmi_pdev_param_esp_ppdu_duration] =
+				WMI_PDEV_PARAM_ESP_PPDU_DURATION;
 #ifdef WLAN_RU26_SUPPORT
 	pdev_param[wmi_pdev_param_ru26_allowed] = WMI_PDEV_PARAM_RU26_ALLOWED;
 #endif