linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Revert "rt2800: use TXOP_BACKOFF for probe frames"
@ 2018-05-28 11:25 Stanislaw Gruszka
  2018-05-28 15:58 ` Kalle Valo
  2018-05-29  7:39 ` Kalle Valo
  0 siblings, 2 replies; 3+ messages in thread
From: Stanislaw Gruszka @ 2018-05-28 11:25 UTC (permalink / raw)
  To: linux-wireless

This reverts commit fb47ada8dc3c30c8e7b415da155742b49536c61e.

In some situations when we set TXOP_BACKOFF, the probe frame is
not sent at all. What it worse then sending probe frame as part
of AMPDU and can degrade 11n performance to 11g rates.

Cc: stable@vger.kernel.org
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
---
 drivers/net/wireless/ralink/rt2x00/rt2x00queue.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/net/wireless/ralink/rt2x00/rt2x00queue.c b/drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
index a6884e73d2ab..7ddee980048b 100644
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
@@ -372,16 +372,15 @@ static void rt2x00queue_create_tx_descriptor_ht(struct rt2x00_dev *rt2x00dev,
 
 	/*
 	 * Determine IFS values
-	 * - Use TXOP_BACKOFF for probe and management frames except beacons
+	 * - Use TXOP_BACKOFF for management frames except beacons
 	 * - Use TXOP_SIFS for fragment bursts
 	 * - Use TXOP_HTTXOP for everything else
 	 *
 	 * Note: rt2800 devices won't use CTS protection (if used)
 	 * for frames not transmitted with TXOP_HTTXOP
 	 */
-	if ((ieee80211_is_mgmt(hdr->frame_control) &&
-	     !ieee80211_is_beacon(hdr->frame_control)) ||
-	    (tx_info->flags & IEEE80211_TX_CTL_RATE_CTRL_PROBE))
+	if (ieee80211_is_mgmt(hdr->frame_control) &&
+	    !ieee80211_is_beacon(hdr->frame_control))
 		txdesc->u.ht.txop = TXOP_BACKOFF;
 	else if (!(tx_info->flags & IEEE80211_TX_CTL_FIRST_FRAGMENT))
 		txdesc->u.ht.txop = TXOP_SIFS;
-- 
2.7.5

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

* Re: [PATCH] Revert "rt2800: use TXOP_BACKOFF for probe frames"
  2018-05-28 11:25 [PATCH] Revert "rt2800: use TXOP_BACKOFF for probe frames" Stanislaw Gruszka
@ 2018-05-28 15:58 ` Kalle Valo
  2018-05-29  7:39 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2018-05-28 15:58 UTC (permalink / raw)
  To: Stanislaw Gruszka; +Cc: linux-wireless

Stanislaw Gruszka <sgruszka@redhat.com> writes:

> This reverts commit fb47ada8dc3c30c8e7b415da155742b49536c61e.
>
> In some situations when we set TXOP_BACKOFF, the probe frame is
> not sent at all. What it worse then sending probe frame as part
> of AMPDU and can degrade 11n performance to 11g rates.
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>

I'll try to get to this to final 4.17 still (scheduled for next Sunday),
but no promises if it makes it.

-- 
Kalle Valo

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

* Re: Revert "rt2800: use TXOP_BACKOFF for probe frames"
  2018-05-28 11:25 [PATCH] Revert "rt2800: use TXOP_BACKOFF for probe frames" Stanislaw Gruszka
  2018-05-28 15:58 ` Kalle Valo
@ 2018-05-29  7:39 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2018-05-29  7:39 UTC (permalink / raw)
  To: Stanislaw Gruszka; +Cc: linux-wireless

Stanislaw Gruszka <sgruszka@redhat.com> wrote:

> This reverts commit fb47ada8dc3c30c8e7b415da155742b49536c61e.
> 
> In some situations when we set TXOP_BACKOFF, the probe frame is
> not sent at all. What it worse then sending probe frame as part
> of AMPDU and can degrade 11n performance to 11g rates.
> 
> Cc: stable@vger.kernel.org
> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>

Patch applied to wireless-drivers.git, thanks.

52a192362932 Revert "rt2800: use TXOP_BACKOFF for probe frames"

-- 
https://patchwork.kernel.org/patch/10431861/

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

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

end of thread, other threads:[~2018-05-29  7:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-28 11:25 [PATCH] Revert "rt2800: use TXOP_BACKOFF for probe frames" Stanislaw Gruszka
2018-05-28 15:58 ` Kalle Valo
2018-05-29  7:39 ` 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).