linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wcn36xx: Fix (QoS) null data frame bitrate/modulation
@ 2021-10-18 12:33 Loic Poulain
  2021-10-25 13:23 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Loic Poulain @ 2021-10-18 12:33 UTC (permalink / raw)
  To: kvalo; +Cc: linux-wireless, wcn36xx, bryan.odonoghue, Loic Poulain, stable

We observe unexpected connection drops with some APs due to
non-acked mac80211 generated null data frames (keep-alive).
After debugging and capture, we noticed that null frames are
submitted at standard data bitrate and that the given APs are
in trouble with that.

After setting the null frame bitrate to control bitrate, all
null frames are acked as expected and connection is maintained.

Not sure if it's a requirement of the specification, but it seems
the right thing to do anyway, null frames are mostly used for control
purpose (power-saving, keep-alive...), and submitting them with
a slower/simpler bitrate/modulation is more robust.

Cc: stable@vger.kernel.org
Fixes: 512b191d9652 ("wcn36xx: Fix TX data path")
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
---
 drivers/net/wireless/ath/wcn36xx/txrx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/ath/wcn36xx/txrx.c b/drivers/net/wireless/ath/wcn36xx/txrx.c
index ef1b133..ce4f631 100644
--- a/drivers/net/wireless/ath/wcn36xx/txrx.c
+++ b/drivers/net/wireless/ath/wcn36xx/txrx.c
@@ -535,6 +535,7 @@ static void wcn36xx_set_tx_data(struct wcn36xx_tx_bd *bd,
 	if (ieee80211_is_any_nullfunc(hdr->frame_control)) {
 		/* Don't use a regular queue for null packet (no ampdu) */
 		bd->queue_id = WCN36XX_TX_U_WQ_ID;
+		bd->bd_rate = WCN36XX_BD_RATE_CTRL;
 	}
 
 	if (bcast) {
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] wcn36xx: Fix (QoS) null data frame bitrate/modulation
  2021-10-18 12:33 [PATCH] wcn36xx: Fix (QoS) null data frame bitrate/modulation Loic Poulain
@ 2021-10-25 13:23 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2021-10-25 13:23 UTC (permalink / raw)
  To: Loic Poulain
  Cc: linux-wireless, wcn36xx, bryan.odonoghue, Loic Poulain, stable

Loic Poulain <loic.poulain@linaro.org> wrote:

> We observe unexpected connection drops with some APs due to
> non-acked mac80211 generated null data frames (keep-alive).
> After debugging and capture, we noticed that null frames are
> submitted at standard data bitrate and that the given APs are
> in trouble with that.
> 
> After setting the null frame bitrate to control bitrate, all
> null frames are acked as expected and connection is maintained.
> 
> Not sure if it's a requirement of the specification, but it seems
> the right thing to do anyway, null frames are mostly used for control
> purpose (power-saving, keep-alive...), and submitting them with
> a slower/simpler bitrate/modulation is more robust.
> 
> Cc: stable@vger.kernel.org
> Fixes: 512b191d9652 ("wcn36xx: Fix TX data path")
> Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Patch applied to ath-next branch of ath.git, thanks.

d3fd2c95c1c1 wcn36xx: Fix (QoS) null data frame bitrate/modulation

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/1634560399-15290-1-git-send-email-loic.poulain@linaro.org/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-25 13:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-18 12:33 [PATCH] wcn36xx: Fix (QoS) null data frame bitrate/modulation Loic Poulain
2021-10-25 13:23 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).