Browse Source

qcacmn: Check nss enabled config before programming flow search table

In cases where NSS offload is enabled, we currently do not support
flow-based search (flow tagging). Check for NSS offload enabled flag
prior to configuring the flow search table in target/hardware.

CRs-Fixed: 2502311
Change-Id: I291c610fe568ac36bacb3c21fd14feb544332b20
Sumeet Rao 5 years ago
parent
commit
3953e0ad69
1 changed files with 3 additions and 1 deletions
  1. 3 1
      dp/wifi3.0/dp_main.c

+ 3 - 1
dp/wifi3.0/dp_main.c

@@ -4566,7 +4566,9 @@ dp_rx_target_fst_config(struct dp_soc *soc)
 	for (i = 0; i < MAX_PDEV_CNT; i++) {
 		struct dp_pdev *pdev = soc->pdev_list[i];
 
-		if (pdev) {
+		/* Flow search is not enabled if NSS offload is enabled */
+		if (pdev &&
+		    !wlan_cfg_get_dp_pdev_nss_enabled(pdev->wlan_cfg_ctx)) {
 			status = dp_rx_flow_send_fst_fw_setup(pdev->soc, pdev);
 			if (status != QDF_STATUS_SUCCESS)
 				break;