OSDN Git Service

wil6210: prevent usage of tx ring 0 for eDMA
authorMaya Erez <merez@codeaurora.org>
Thu, 23 Aug 2018 11:47:10 +0000 (14:47 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 28 Aug 2018 13:48:46 +0000 (16:48 +0300)
commitdf2b53884a5a454bf441ca78e5b57307262c73f4
tree52ec9b4b6de5a3ed9bedd2d0a07fae51fa7fc6ad
parent686ab4f5bd8d696bfeef55ef761c7f7a6ad1b3ec
wil6210: prevent usage of tx ring 0 for eDMA

In enhanced DMA ring 0 is used for RX ring, hence TX ring 0
is an unused element in ring_tx and ring2cid_tid arrays.
Initialize ring2cid_tid CID to WIL6210_MAX_CID to prevent a false
match of CID 0.
Go over the ring_tx and ring2cid_tid from wil_get_min_tx_ring_id
and on to prevent access to index 0 in eDMA.

Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/main.c
drivers/net/wireless/ath/wil6210/txrx.c