diff options
| -rw-r--r-- | core/dp/txrx/ol_tx_desc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/dp/txrx/ol_tx_desc.c b/core/dp/txrx/ol_tx_desc.c index 9e2ad362fd2e..477a921ff53e 100644 --- a/core/dp/txrx/ol_tx_desc.c +++ b/core/dp/txrx/ol_tx_desc.c @@ -104,6 +104,7 @@ ol_tx_desc_vdev_update(struct ol_tx_desc_t *tx_desc, struct ol_txrx_vdev_t *vdev) { tx_desc->vdev = vdev; + tx_desc->vdev_id = vdev->vdev_id; } #ifdef CONFIG_PER_VDEV_TX_DESC_POOL @@ -156,8 +157,6 @@ struct ol_tx_desc_t *ol_tx_desc_alloc(struct ol_txrx_pdev_t *pdev, if (!tx_desc) return NULL; - tx_desc->vdev_id = vdev->vdev_id; - ol_tx_desc_vdev_update(tx_desc, vdev); ol_tx_desc_count_inc(vdev); qdf_atomic_inc(&tx_desc->ref_cnt); @@ -224,8 +223,6 @@ struct ol_tx_desc_t *ol_tx_desc_alloc(struct ol_txrx_pdev_t *pdev, pdev->pool_stats.pkt_drop_no_pool++; } - tx_desc->vdev_id = vdev->vdev_id; - return tx_desc; } |
