Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179248
b: refs/heads/master
c: b49bb57
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jan 8, 2010
1 parent 8c3773b commit a6b8015
Show file tree
Hide file tree
Showing 2 changed files with 3 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: d79074488083ec0d7ecd15352192dc1631f25643
refs/heads/master: b49bb574e44226b332c28439999d196ddec2f643
4 changes: 2 additions & 2 deletions trunk/net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,10 +675,10 @@ static u16 ieee80211_monitor_select_queue(struct net_device *dev,
return 0;

if (skb->len < 4 ||
skb->len < rtap->it_len + 2 /* frame control */)
skb->len < le16_to_cpu(rtap->it_len) + 2 /* frame control */)
return 0; /* doesn't matter, frame will be dropped */

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

if (!ieee80211_is_data(hdr->frame_control)) {
skb->priority = 7;
Expand Down

0 comments on commit a6b8015

Please sign in to comment.