Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179252
b: refs/heads/master
c: 193e70e
h: refs/heads/master
v: v3
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Jan 12, 2010
1 parent a3909b2 commit 4e48033
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39825f4dc9f4e409e8ea43ef4df04a924699ad1f
refs/heads/master: 193e70ef65a6c33f2935ce1f4adeb08ecb9202cf
7 changes: 5 additions & 2 deletions trunk/net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ static u16 ieee80211_monitor_select_queue(struct net_device *dev,
struct ieee80211_local *local = sdata->local;
struct ieee80211_hdr *hdr;
struct ieee80211_radiotap_header *rtap = (void *)skb->data;
u8 *p;

if (local->hw.queues < 4)
return 0;
Expand All @@ -680,12 +681,14 @@ static u16 ieee80211_monitor_select_queue(struct net_device *dev,

hdr = (void *)((u8 *)skb->data + le16_to_cpu(rtap->it_len));

if (!ieee80211_is_data(hdr->frame_control)) {
if (!ieee80211_is_data_qos(hdr->frame_control)) {
skb->priority = 7;
return ieee802_1d_to_ac[skb->priority];
}

skb->priority = 0;
p = ieee80211_get_qos_ctl(hdr);
skb->priority = *p & IEEE80211_QOS_CTL_TAG1D_MASK;

return ieee80211_downgrade_queue(local, skb);
}

Expand Down

0 comments on commit 4e48033

Please sign in to comment.