]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: use hw_params.num_peers for num_tids in TLV init
authorErik Stromdahl <erik.stromdahl@gmail.com>
Tue, 4 Sep 2018 12:04:26 +0000 (15:04 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 6 Sep 2018 16:14:17 +0000 (19:14 +0300)
commit92e29d4ccdea7851a5731430d9f0e2ce7d8ee660
tree292c5787be2b150213611e77fc30a278064028bb
parent165c8d9f22819983be74b08cc6e2585426692705
ath10k: use hw_params.num_peers for num_tids in TLV init

As TARGET_TLV_NUM_TIDS is calculated like this:

#define TARGET_TLV_NUM_TIDS ((TARGET_TLV_NUM_PEERS) * 2)

... it is better to use the per device hw_params.num_peers value in
the TLV init message (if set), rather than using a hard coded value.

This makes the value used in the TLV init message match the hw_param
value.

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