Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342136
b: refs/heads/master
c: 751413e
h: refs/heads/master
v: v3
  • Loading branch information
Helmut Schaa authored and Johannes Berg committed Dec 5, 2012
1 parent b8d58e9 commit c633b4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: ab9d6e4ffe192427ce9e93d4f927b0faaa8a941e
refs/heads/master: 751413eadc8f0c7691a6cbd40a913ef0ae6b2ce4
6 changes: 3 additions & 3 deletions trunk/net/mac80211/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,6 @@ ieee80211_rx_monitor(struct ieee80211_local *local, struct sk_buff *origskb,
* the SKB because it has a bad FCS/PLCP checksum.
*/

/* room for the radiotap header based on driver features */
needed_headroom = ieee80211_rx_radiotap_space(local, status);

if (local->hw.flags & IEEE80211_HW_RX_INCLUDES_FCS)
present_fcs_len = FCS_LEN;

Expand All @@ -399,6 +396,9 @@ ieee80211_rx_monitor(struct ieee80211_local *local, struct sk_buff *origskb,
return remove_monitor_info(local, origskb);
}

/* room for the radiotap header based on driver features */
needed_headroom = ieee80211_rx_radiotap_space(local, status);

if (should_drop_frame(origskb, present_fcs_len)) {
/* only need to expand headroom if necessary */
skb = origskb;
Expand Down

0 comments on commit c633b4d

Please sign in to comment.