diff options
-rw-r--r-- | net/mac80211/rx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 505159f8dffc..306e6fc25d8f 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -1746,6 +1746,7 @@ void __ieee80211_rx(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
1746 | prev->dev->name); | 1746 | prev->dev->name); |
1747 | continue; | 1747 | continue; |
1748 | } | 1748 | } |
1749 | rx.fc = le16_to_cpu(hdr->frame_control); | ||
1749 | rx.skb = skb_new; | 1750 | rx.skb = skb_new; |
1750 | rx.dev = prev->dev; | 1751 | rx.dev = prev->dev; |
1751 | rx.sdata = prev; | 1752 | rx.sdata = prev; |
@@ -1754,6 +1755,7 @@ void __ieee80211_rx(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
1754 | prev = sdata; | 1755 | prev = sdata; |
1755 | } | 1756 | } |
1756 | if (prev) { | 1757 | if (prev) { |
1758 | rx.fc = le16_to_cpu(hdr->frame_control); | ||
1757 | rx.skb = skb; | 1759 | rx.skb = skb; |
1758 | rx.dev = prev->dev; | 1760 | rx.dev = prev->dev; |
1759 | rx.sdata = prev; | 1761 | rx.sdata = prev; |