Forráskód Böngészése

qcacmn: Default routing for SAP mode with IPAoffload

CUrrently if IPA offload is enabled in SAP mode
the default Rx routing is to IPA serviced REO rings.
With this change the default raouting is set to
WLAN HOST serviced REO rings.

Change-Id: Ibf9dead063c9d9fbc6b1fd502342ea13456b2473
CRs-Fixed: 3421879
Namita Nair 2 éve
szülő
commit
92d4955468
1 módosított fájl, 5 hozzáadás és 8 törlés
  1. 5 8
      dp/wifi3.0/dp_rings_main.c

+ 5 - 8
dp/wifi3.0/dp_rings_main.c

@@ -3546,15 +3546,12 @@ static void dp_peer_setup_get_reo_hash(struct dp_vdev *vdev,
 	 * Hence, *reo_dest = IPA_REO_DEST_RING_IDX + 1
 	 */
 	if (wlan_cfg_is_ipa_enabled(soc->wlan_cfg_ctx)) {
-		if (vdev->opmode == wlan_op_mode_ap) {
+		if (dp_ipa_is_mdm_platform()) {
 			*reo_dest = IPA_REO_DEST_RING_IDX + 1;
-			*hash_based = 0;
-		} else if (vdev->opmode == wlan_op_mode_sta &&
-			   dp_ipa_is_mdm_platform()) {
-			*reo_dest = IPA_REO_DEST_RING_IDX + 1;
-		} else if (vdev->opmode == wlan_op_mode_sta &&
-			   (!dp_ipa_is_mdm_platform())) {
-			dp_debug("opt_dp: default reo ring is set");
+			if (vdev->opmode == wlan_op_mode_ap)
+				*hash_based = 0;
+		} else {
+			dp_debug("opt_dp: default HOST reo ring is set");
 		}
 	}
 }