All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 3.14] mac80211: send control port protocol frames to the VO queue
@ 2014-02-11 15:02 Felix Fietkau
  2014-02-12 10:26 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Fietkau @ 2014-02-11 15:02 UTC (permalink / raw)
  To: linux-wireless; +Cc: johannes

Improves reliability of wifi connections with WPA, since authentication
frames are prioritized over normal traffic and also typically exempt
from aggregation.

Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
 net/mac80211/wme.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/net/mac80211/wme.c b/net/mac80211/wme.c
index 21211c6..d51422c 100644
--- a/net/mac80211/wme.c
+++ b/net/mac80211/wme.c
@@ -154,6 +154,11 @@ u16 ieee80211_select_queue(struct ieee80211_sub_if_data *sdata,
 		return IEEE80211_AC_BE;
 	}
 
+	if (skb->protocol == sdata->control_port_protocol) {
+		skb->priority = 7;
+		return ieee80211_downgrade_queue(sdata, skb);
+	}
+
 	/* use the data classifier to determine what 802.1d tag the
 	 * data frame has */
 	rcu_read_lock();
-- 
1.8.3.4 (Apple Git-47)


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

* Re: [PATCH v2 3.14] mac80211: send control port protocol frames to the VO queue
  2014-02-11 15:02 [PATCH v2 3.14] mac80211: send control port protocol frames to the VO queue Felix Fietkau
@ 2014-02-12 10:26 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2014-02-12 10:26 UTC (permalink / raw)
  To: Felix Fietkau; +Cc: linux-wireless

On Tue, 2014-02-11 at 16:02 +0100, Felix Fietkau wrote:
> Improves reliability of wifi connections with WPA, since authentication
> frames are prioritized over normal traffic and also typically exempt
> from aggregation.

Applied.

johannes


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

end of thread, other threads:[~2014-02-12 10:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-11 15:02 [PATCH v2 3.14] mac80211: send control port protocol frames to the VO queue Felix Fietkau
2014-02-12 10:26 ` Johannes Berg

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.