aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ath/ath10k/mac.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 62e8adc492cb..0c2ccc101176 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -4129,11 +4129,23 @@ static int ath10k_conf_tx(struct ieee80211_hw *hw,
4129 */ 4129 */
4130 p->txop = params->txop * 32; 4130 p->txop = params->txop * 32;
4131 4131
4132 /* FIXME: FW accepts wmm params per hw, not per vif */ 4132 if (ar->wmi.ops->gen_vdev_wmm_conf) {
4133 ret = ath10k_wmi_pdev_set_wmm_params(ar, &arvif->wmm_params); 4133 ret = ath10k_wmi_vdev_wmm_conf(ar, arvif->vdev_id,
4134 if (ret) { 4134 &arvif->wmm_params);
4135 ath10k_warn(ar, "failed to set wmm params: %d\n", ret); 4135 if (ret) {
4136 goto exit; 4136 ath10k_warn(ar, "failed to set vdev wmm params on vdev %i: %d\n",
4137 arvif->vdev_id, ret);
4138 goto exit;
4139 }
4140 } else {
4141 /* This won't work well with multi-interface cases but it's
4142 * better than nothing.
4143 */
4144 ret = ath10k_wmi_pdev_set_wmm_params(ar, &arvif->wmm_params);
4145 if (ret) {
4146 ath10k_warn(ar, "failed to set wmm params: %d\n", ret);
4147 goto exit;
4148 }
4137 } 4149 }
4138 4150
4139 ret = ath10k_conf_tx_uapsd(ar, vif, ac, params->uapsd); 4151 ret = ath10k_conf_tx_uapsd(ar, vif, ac, params->uapsd);