summaryrefslogtreecommitdiff
path: root/net/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-02-11 16:02:47 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-23 21:38:11 -0700
commitb59ed9d77e700c22ca6ab042004a48f078de5989 (patch)
tree363e5bc82279880aa6d825abe42591f6838e866d /net/mac80211
parent892b46a6a68fa1ae1f85f3c2ba475382b7b6acc5 (diff)
downloadlinux-3.10-b59ed9d77e700c22ca6ab042004a48f078de5989.tar.gz
linux-3.10-b59ed9d77e700c22ca6ab042004a48f078de5989.tar.bz2
linux-3.10-b59ed9d77e700c22ca6ab042004a48f078de5989.zip
mac80211: send control port protocol frames to the VO queue
commit 1bf4bbb4024dcdab5e57634dd8ae1072d42a53ac upstream. Improves reliability of wifi connections with WPA, since authentication frames are prioritized over normal traffic and also typically exempt from aggregation. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/wme.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/wme.c b/net/mac80211/wme.c
index afba19cb6f8..a282fddf8b0 100644
--- a/net/mac80211/wme.c
+++ b/net/mac80211/wme.c
@@ -153,6 +153,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 */
skb->priority = cfg80211_classify8021d(skb);