Эх сурвалжийг харах

qcacmn: Change order of SAWF enabled conditional check

Legacy SCS uses skb mark field to specify the priority i.e TID.
This feature is to be supported independent of SAWF framework.
Therefore change the order of SAWF enabled conditional check.

Change-Id: I445f697395c8140b3b9fd7f877dfa8d057f0eaa8
CRs-Fixed: 3630722
Harsh Kumar Bijlani 1 жил өмнө
parent
commit
8616350ebe

+ 3 - 3
dp/wifi3.0/be/dp_be_tx.c

@@ -979,9 +979,6 @@ void dp_sawf_config_be(struct dp_soc *soc, uint32_t *hal_tx_desc_cached,
 {
 	uint8_t q_id = 0;
 
-	if (!wlan_cfg_get_sawf_config(soc->wlan_cfg_ctx))
-		return;
-
 	q_id = dp_sawf_queue_id_get(nbuf);
 
 	if (q_id == DP_SAWF_DEFAULT_Q_INVALID)
@@ -994,6 +991,9 @@ void dp_sawf_config_be(struct dp_soc *soc, uint32_t *hal_tx_desc_cached,
 	    (q_id < DP_SAWF_DEFAULT_QUEUE_MAX))
 		return;
 
+	if (!wlan_cfg_get_sawf_config(soc->wlan_cfg_ctx))
+		return;
+
 	dp_sawf_tcl_cmd(fw_metadata, nbuf);
 	hal_tx_desc_set_flow_override_enable(hal_tx_desc_cached,
 					     DP_TX_FLOW_OVERRIDE_ENABLE);

+ 3 - 3
dp/wifi3.0/li/dp_li_tx.c

@@ -406,9 +406,6 @@ void dp_sawf_config_li(struct dp_soc *soc, uint32_t *hal_tx_desc_cached,
 	uint8_t q_id = 0;
 	uint32_t flow_idx = 0;
 
-	if (!wlan_cfg_get_sawf_config(soc->wlan_cfg_ctx))
-		return;
-
 	q_id = dp_sawf_queue_id_get(nbuf);
 	if (q_id == DP_SAWF_DEFAULT_Q_INVALID)
 		return;
@@ -421,6 +418,9 @@ void dp_sawf_config_li(struct dp_soc *soc, uint32_t *hal_tx_desc_cached,
 	    (q_id < DP_SAWF_DEFAULT_QUEUE_MAX))
 		return;
 
+	if (!wlan_cfg_get_sawf_config(soc->wlan_cfg_ctx))
+		return;
+
 	dp_sawf_tcl_cmd(fw_metadata, nbuf);
 
 	/* For SAWF, q_id starts from DP_SAWF_Q_MAX */