aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/iface.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r--net/mac80211/iface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index 44188ef80a63..d62ec0803bec 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -675,10 +675,10 @@ static u16 ieee80211_monitor_select_queue(struct net_device *dev,
675 return 0; 675 return 0;
676 676
677 if (skb->len < 4 || 677 if (skb->len < 4 ||
678 skb->len < rtap->it_len + 2 /* frame control */) 678 skb->len < le16_to_cpu(rtap->it_len) + 2 /* frame control */)
679 return 0; /* doesn't matter, frame will be dropped */ 679 return 0; /* doesn't matter, frame will be dropped */
680 680
681 hdr = (void *)((u8 *)skb->data + rtap->it_len); 681 hdr = (void *)((u8 *)skb->data + le16_to_cpu(rtap->it_len));
682 682
683 if (!ieee80211_is_data(hdr->frame_control)) { 683 if (!ieee80211_is_data(hdr->frame_control)) {
684 skb->priority = 7; 684 skb->priority = 7;