|
@@ -1111,7 +1111,7 @@ ol_txrx_pdev_attach(ol_txrx_soc_handle soc, struct cdp_cfg *ctrl_pdev,
|
|
|
HTC_HANDLE htc_pdev, qdf_device_t osdev, uint8_t pdev_id)
|
|
|
{
|
|
|
struct ol_txrx_pdev_t *pdev;
|
|
|
- int i;
|
|
|
+ int i, tid;
|
|
|
|
|
|
pdev = qdf_mem_malloc(sizeof(*pdev));
|
|
|
if (!pdev)
|
|
@@ -1157,6 +1157,26 @@ ol_txrx_pdev_attach(ol_txrx_soc_handle soc, struct cdp_cfg *ctrl_pdev,
|
|
|
|
|
|
htt_register_rx_pkt_dump_callback(pdev->htt_pdev,
|
|
|
ol_rx_pkt_dump_call);
|
|
|
+
|
|
|
+ /*
|
|
|
+ * Init the tid --> category table.
|
|
|
+ * Regular tids (0-15) map to their AC.
|
|
|
+ * Extension tids get their own categories.
|
|
|
+ */
|
|
|
+ for (tid = 0; tid < OL_TX_NUM_QOS_TIDS; tid++) {
|
|
|
+ int ac = TXRX_TID_TO_WMM_AC(tid);
|
|
|
+
|
|
|
+ pdev->tid_to_ac[tid] = ac;
|
|
|
+ }
|
|
|
+ pdev->tid_to_ac[OL_TX_NON_QOS_TID] =
|
|
|
+ OL_TX_SCHED_WRR_ADV_CAT_NON_QOS_DATA;
|
|
|
+ pdev->tid_to_ac[OL_TX_MGMT_TID] =
|
|
|
+ OL_TX_SCHED_WRR_ADV_CAT_UCAST_MGMT;
|
|
|
+ pdev->tid_to_ac[OL_TX_NUM_TIDS + OL_TX_VDEV_MCAST_BCAST] =
|
|
|
+ OL_TX_SCHED_WRR_ADV_CAT_MCAST_DATA;
|
|
|
+ pdev->tid_to_ac[OL_TX_NUM_TIDS + OL_TX_VDEV_DEFAULT_MGMT] =
|
|
|
+ OL_TX_SCHED_WRR_ADV_CAT_MCAST_MGMT;
|
|
|
+
|
|
|
return (struct cdp_pdev *)pdev;
|
|
|
|
|
|
fail3:
|