diff options
author | Erik Stromdahl <erik.stromdahl@gmail.com> | 2018-09-13 10:45:05 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-10-01 09:55:13 -0400 |
commit | 8e8374db3424c0ee3e399525ac737cc6a0814d19 (patch) | |
tree | a69a774df12b6cef66f1a1fad9b3527f46cf5bcc /drivers/net/wireless/ath | |
parent | 234e4307cf7f9b43842395295a224740e220d019 (diff) |
ath10k: add default value for num_peers in WMI TLV init
The hw_params value will only be used if it was explicitly set in the
global hw_params array.
This makes it possible to have the num_peers member unset.
Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/wmi-tlv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.c b/drivers/net/wireless/ath/ath10k/wmi-tlv.c index 98eaf49f62b6..0f78a0d42ebc 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.c +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.c | |||
@@ -1569,7 +1569,10 @@ static struct sk_buff *ath10k_wmi_tlv_op_gen_init(struct ath10k *ar) | |||
1569 | 1569 | ||
1570 | cfg->num_vdevs = __cpu_to_le32(TARGET_TLV_NUM_VDEVS); | 1570 | cfg->num_vdevs = __cpu_to_le32(TARGET_TLV_NUM_VDEVS); |
1571 | 1571 | ||
1572 | cfg->num_peers = __cpu_to_le32(ar->hw_params.num_peers); | 1572 | if (ar->hw_params.num_peers) |
1573 | cfg->num_peers = __cpu_to_le32(ar->hw_params.num_peers); | ||
1574 | else | ||
1575 | cfg->num_peers = __cpu_to_le32(TARGET_TLV_NUM_PEERS); | ||
1573 | cfg->ast_skid_limit = __cpu_to_le32(ar->hw_params.ast_skid_limit); | 1576 | cfg->ast_skid_limit = __cpu_to_le32(ar->hw_params.ast_skid_limit); |
1574 | cfg->num_wds_entries = __cpu_to_le32(ar->hw_params.num_wds_entries); | 1577 | cfg->num_wds_entries = __cpu_to_le32(ar->hw_params.num_wds_entries); |
1575 | 1578 | ||