qcacmn: Remove csum_enabled flag and related changes

As part of code change we are removing csum_enabled flag check.
In that case, csum_enabled becomes redundant since we are not using it
in the code base, So remove redundant code as part of the cleanup.

Change-Id: Iac411b20f06436053b1969a1af9e3b3ee418c34c
CRs-Fixed: 3070858
This commit is contained in:
Amit Mehta
2021-11-10 14:55:01 +05:30
committed by Madan Koyyalamudi
parent eaa0e3776e
commit 8410d24e7b
4 changed files with 1 additions and 39 deletions

View File

@@ -4859,30 +4859,6 @@ qdf_nbuf_t dp_tx_non_std(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
}
#endif
static void dp_tx_vdev_update_feature_flags(struct dp_vdev *vdev)
{
struct wlan_cfg_dp_soc_ctxt *cfg;
struct dp_soc *soc;
soc = vdev->pdev->soc;
if (!soc)
return;
cfg = soc->wlan_cfg_ctx;
if (!cfg)
return;
if (vdev->opmode == wlan_op_mode_ndi)
vdev->csum_enabled = wlan_cfg_get_nan_checksum_offload(cfg);
else if ((vdev->subtype == wlan_op_subtype_p2p_device) ||
(vdev->subtype == wlan_op_subtype_p2p_cli) ||
(vdev->subtype == wlan_op_subtype_p2p_go))
vdev->csum_enabled = wlan_cfg_get_p2p_checksum_offload(cfg);
else
vdev->csum_enabled = wlan_cfg_get_checksum_offload(cfg);
}
/**
* dp_tx_vdev_attach() - attach vdev to dp tx
* @vdev: virtual device instance
@@ -4914,8 +4890,6 @@ QDF_STATUS dp_tx_vdev_attach(struct dp_vdev *vdev)
dp_tx_vdev_update_search_flags(vdev);
dp_tx_vdev_update_feature_flags(vdev);
return QDF_STATUS_SUCCESS;
}