]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ath10k: add per target config of max_num_peers
authorErik Stromdahl <erik.stromdahl@gmail.com>
Tue, 4 Sep 2018 12:05:04 +0000 (15:05 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 6 Sep 2018 16:14:26 +0000 (19:14 +0300)
commit4875e0b5208555a9cc2c45558f016e0814cbd6cb
tree03d29ab9b6c47f025d965015e33bc08e852982e0
parent9faaa14387fbb13cf1a314025a047cc3bc27dbef
ath10k: add per target config of max_num_peers

This patch makes sure the value of max_num_peers matches
num_peers in hw_params (if set to a non zero value).

hw_params->num_peers is used in the TLV WMI init command.
If ar->max_num_peers is not set to the same value, there is a risk
that the user creates more peers than the maximum number of peers
supported by the device.

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