ソースを参照

qcacmn: Add WMI support for configuring UL parameters

Add wmi vdev param support for UL parameters.

Change-Id: I3f742daf5691b0867c42b447c26efa640478800f
CRs-fixed: 2226303
Rhythm Patwa 6 年 前
コミット
8ff2fb7fa8
3 ファイル変更20 行追加0 行削除
  1. 1 0
      dp/inc/cdp_txrx_stats_struct.h
  2. 8 0
      wmi/inc/wmi_unified_param.h
  3. 11 0
      wmi/src/wmi_unified_tlv.c

+ 1 - 0
dp/inc/cdp_txrx_stats_struct.h

@@ -1518,6 +1518,7 @@ enum _ol_ath_param_t {
 	OL_ATH_PARAM_VIDEO_DELAY_STATS_FC = 395,
 #endif
 	OL_ATH_PARAM_ENABLE_PEER_RETRY_STATS = 396,
+	OL_ATH_PARAM_HE_UL_TRIG_INT = 397,
 };
 
 /* Enumeration of PDEV Configuration parameter */

+ 8 - 0
wmi/inc/wmi_unified_param.h

@@ -4915,6 +4915,7 @@ typedef enum {
 	wmi_pdev_param_esp_ppdu_duration,
 	wmi_pdev_param_use_nol,
 	wmi_pdev_param_enable_peer_retry_stats,
+	wmi_pdev_param_ul_trig_int,
 	wmi_pdev_param_max,
 } wmi_conv_pdev_params_id;
 
@@ -5036,6 +5037,13 @@ typedef enum {
 	wmi_vdev_param_amsdu_subframe_size_per_ac,
 	wmi_vdev_param_set_he_sounding_mode,
 	wmi_vdev_param_sifs_trigger_rate,
+	wmi_vdev_param_ul_shortgi,
+	wmi_vdev_param_ul_he_ltf,
+	wmi_vdev_param_ul_nss,
+	wmi_vdev_param_ul_ppdu_bw,
+	wmi_vdev_param_ul_ldpc,
+	wmi_vdev_param_ul_stbc,
+	wmi_vdev_param_ul_fixed_rate,
 
 	wmi_vdev_param_max,
 } wmi_conv_vdev_param_id;

+ 11 - 0
wmi/src/wmi_unified_tlv.c

@@ -12020,6 +12020,9 @@ static void populate_pdev_param_tlv(uint32_t *pdev_param)
 	pdev_param[wmi_pdev_param_ru26_allowed] = WMI_PDEV_PARAM_RU26_ALLOWED;
 #endif
 	pdev_param[wmi_pdev_param_use_nol] = WMI_PDEV_PARAM_USE_NOL;
+	/* Trigger interval for all trigger types. */
+	pdev_param[wmi_pdev_param_ul_trig_int] =
+				WMI_PDEV_PARAM_SET_UL_BSR_TRIG_INTERVAL;
 }
 
 /**
@@ -12199,6 +12202,14 @@ static void populate_vdev_param_tlv(uint32_t *vdev_param)
 					WMI_VDEV_PARAM_CAPABILITIES;
 	vdev_param[wmi_vdev_param_autorate_misc_cfg] =
 					WMI_VDEV_PARAM_AUTORATE_MISC_CFG;
+	vdev_param[wmi_vdev_param_ul_shortgi] = WMI_VDEV_PARAM_UL_GI;
+	vdev_param[wmi_vdev_param_ul_he_ltf] = WMI_VDEV_PARAM_UL_HE_LTF;
+	vdev_param[wmi_vdev_param_ul_nss] = WMI_VDEV_PARAM_UL_NSS;
+	vdev_param[wmi_vdev_param_ul_ppdu_bw] = WMI_VDEV_PARAM_UL_PPDU_BW;
+	vdev_param[wmi_vdev_param_ul_ldpc] = WMI_VDEV_PARAM_UL_LDPC;
+	vdev_param[wmi_vdev_param_ul_stbc] = WMI_VDEV_PARAM_UL_STBC;
+	vdev_param[wmi_vdev_param_ul_fixed_rate] = WMI_VDEV_PARAM_UL_FIXED_RATE;
+
 }
 #endif