Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279447
b: refs/heads/master
c: b156579
h: refs/heads/master
i:
  279445: f969dd8
  279443: 4d18a72
  279439: cf94cbf
v: v3
  • Loading branch information
Dave Täht authored and John W. Linville committed Jan 4, 2012
1 parent 416ee16 commit 8f1eabd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 288e0713f469c03dbc412153b5341d6dfc2c9907
refs/heads/master: b156579b1404871d97d2713c1f93c9526618e3ba
6 changes: 5 additions & 1 deletion trunk/net/wireless/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <linux/slab.h>
#include <net/cfg80211.h>
#include <net/ip.h>
#include <net/dsfield.h>
#include "core.h"

struct ieee80211_rate *
Expand Down Expand Up @@ -650,7 +651,10 @@ unsigned int cfg80211_classify8021d(struct sk_buff *skb)

switch (skb->protocol) {
case htons(ETH_P_IP):
dscp = ip_hdr(skb)->tos & 0xfc;
dscp = ipv4_get_dsfield(ip_hdr(skb)) & 0xfc;
break;
case htons(ETH_P_IPV6):
dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & 0xfc;
break;
default:
return 0;
Expand Down

0 comments on commit 8f1eabd

Please sign in to comment.