ath10k: fix bug in masking of TID value
authorErik Stromdahl <erik.stromdahl@gmail.com>
Mon, 18 Jun 2018 14:01:21 +0000 (17:01 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 28 Jun 2018 09:53:15 +0000 (12:53 +0300)
commitd1a566bec5887988cd7e4b7cf98b05e1ff7a0f8a
treef1063dd1cc99f87f1f43750cece7fd3c9b9605fe
parent168f75f11fe68455e0d058a818ebccfc329d8685
ath10k: fix bug in masking of TID value

Although the TID mask is 0xf, the modulus operation does still not
produce identical results as the bitwise and operator. If the TID is 15, the
modulus operation will "convert" it to 0, whereas the bitwise and will keep it
as 15.

This was found during code review.

Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/htt_tx.c