* [PATCH] ath11k: Disable peer fixed rate before setting the vdev fixed rate
@ 2019-06-04 11:38 Maharaja Kennadyrajan
2019-06-06 16:55 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Maharaja Kennadyrajan @ 2019-06-04 11:38 UTC (permalink / raw)
To: ath11k; +Cc: Maharaja Kennadyrajan
As per the firmware design, peer fixed rate should be disabled before
setting the VDEV fixed rate again.
When it is not disabled, then the user can't set the legacy rate(VDEV
fixed rate) after setting peer fixed rate(as peer fixed rate has higher
priority in the rate setting).
Signed-off-by: Maharaja Kennadyrajan <mkenna@codeaurora.org>
---
drivers/net/wireless/ath/ath11k/mac.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index cb0de8e2aa60..cb1189136959 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -4573,6 +4573,23 @@ static void ath11k_mac_set_bitrate_mask_iter(void *data,
ieee80211_queue_work(ar->hw, &arsta->update_wk);
}
+static void ath11k_mac_disable_peer_fixed_rate(void *data,
+ struct ieee80211_sta *sta)
+{
+ struct ath11k_vif *arvif = data;
+ struct ath11k *ar = arvif->ar;
+ int ret;
+
+ ret = ath11k_wmi_set_peer_param(ar, sta->addr,
+ arvif->vdev_id,
+ WMI_PEER_PARAM_FIXED_RATE,
+ WMI_FIXED_RATE_NONE);
+ if (ret)
+ ath11k_warn(ar->ab,
+ "failed to disable peer fixed rate for STA %pM ret %d\n",
+ sta->addr, ret);
+}
+
static int
ath11k_mac_op_set_bitrate_mask(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
@@ -4620,6 +4637,9 @@ ath11k_mac_op_set_bitrate_mask(struct ieee80211_hw *hw,
arvif->vdev_id, ret);
return ret;
}
+ ieee80211_iterate_stations_atomic(ar->hw,
+ ath11k_mac_disable_peer_fixed_rate,
+ arvif);
} else if (ath11k_mac_bitrate_mask_get_single_nss(ar, band, mask,
&single_nss)) {
rate = WMI_FIXED_RATE_NONE;
--
2.21.0
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ath11k: Disable peer fixed rate before setting the vdev fixed rate
2019-06-04 11:38 [PATCH] ath11k: Disable peer fixed rate before setting the vdev fixed rate Maharaja Kennadyrajan
@ 2019-06-06 16:55 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2019-06-06 16:55 UTC (permalink / raw)
To: Maharaja Kennadyrajan; +Cc: ath11k
Maharaja Kennadyrajan <mkenna@codeaurora.org> wrote:
> As per the firmware design, peer fixed rate should be disabled before
> setting the VDEV fixed rate again.
> When it is not disabled, then the user can't set the legacy rate(VDEV
> fixed rate) after setting peer fixed rate(as peer fixed rate has higher
> priority in the rate setting).
>
> Signed-off-by: Maharaja Kennadyrajan <mkenna@codeaurora.org>
Patch applied to ath.git, thanks.
3676c26226da ath11k: Disable peer fixed rate before setting the vdev fixed rate
--
https://patchwork.kernel.org/patch/10974785/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-06-06 16:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-04 11:38 [PATCH] ath11k: Disable peer fixed rate before setting the vdev fixed rate Maharaja Kennadyrajan
2019-06-06 16:55 ` Kalle Valo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.