Skip to content

Commit

Permalink
mac80211: send control port protocol frames to the VO queue
Browse files Browse the repository at this point in the history
commit 1bf4bbb 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: Kamal Mostafa <kamal@canonical.com>
  • Loading branch information
Felix Fietkau authored and kamalmostafa committed Mar 31, 2014
1 parent 033d2fc commit 9551d03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions net/mac80211/wme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9551d03

Please sign in to comment.