Quellcode durchsuchen

qcacmn: Add support to configure MSDU max aggregation limit

Currently FISA max msdu aggregation limit is fixed and always
programmed as 0xf, but there are platforms which support different
aggregation limit. So add support to configure different aggregation
limits while sending HTT FISA config message to F.W.

Change-Id: Icbf9b7a48a88dcbfb812e92c8f4032753fc07dc4
CRs-Fixed: 3542497
Karthik Kantamneni vor 2 Jahren
Ursprung
Commit
9b0e01604d
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 2 1
      dp/wifi3.0/dp_htt.c
  2. 2 0
      dp/wifi3.0/dp_htt.h

+ 2 - 1
dp/wifi3.0/dp_htt.c

@@ -5105,7 +5105,8 @@ dp_htt_rx_fisa_config(struct dp_pdev *pdev,
 
 	msg_word++;
 	HTT_RX_FISA_CONFIG_FISA_V2_ENABLE_SET(*msg_word, 1);
-	HTT_RX_FISA_CONFIG_FISA_V2_AGGR_LIMIT_SET(*msg_word, 0xf);
+	HTT_RX_FISA_CONFIG_FISA_V2_AGGR_LIMIT_SET(*msg_word,
+	(fisa_config->max_aggr_supported ? fisa_config->max_aggr_supported : 0xf));
 
 	msg_word++;
 	htt_fisa_config->fisa_timeout_threshold = fisa_config->fisa_timeout;

+ 2 - 0
dp/wifi3.0/dp_htt.h

@@ -783,10 +783,12 @@ struct dp_htt_rx_flow_fst_operation {
  * struct dp_htt_rx_fisa_cfg - Rx fisa config
  * @pdev_id: DP Pdev identifier
  * @fisa_timeout: fisa aggregation timeout
+ * @max_aggr_supported: FISA max MSDU aggregation supported
  */
 struct dp_htt_rx_fisa_cfg {
 	uint8_t pdev_id;
 	uint32_t fisa_timeout;
+	uint8_t max_aggr_supported;
 };
 
 /**