浏览代码

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 年之前
父节点
当前提交
8616350ebe
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 3 3
      dp/wifi3.0/be/dp_be_tx.c
  2. 3 3
      dp/wifi3.0/li/dp_li_tx.c

+ 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 */