diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-01-31 13:48:21 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:37:02 -0500 |
commit | e4c26add8893e40e6e809b8c1ebc81e37762af2b (patch) | |
tree | fb11a53da8c2cc6af47ca5436ce41cf7068b3949 /net/mac80211/ieee80211_sta.c | |
parent | 9ae54c8463691b64ca6e6d8680787a6527810984 (diff) |
mac80211: split RX_DROP
Some instances of RX_DROP mean that the frame was useless,
others mean that the frame should be visible in userspace
on "cooked" monitor interfaces. This patch splits up RX_DROP
and changes each instance appropriately.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_sta.c')
-rw-r--r-- | net/mac80211/ieee80211_sta.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c index 991689371bdc..a8251a23917b 100644 --- a/net/mac80211/ieee80211_sta.c +++ b/net/mac80211/ieee80211_sta.c | |||
@@ -2567,7 +2567,7 @@ ieee80211_sta_rx_scan(struct net_device *dev, struct sk_buff *skb, | |||
2567 | u16 fc; | 2567 | u16 fc; |
2568 | 2568 | ||
2569 | if (skb->len < 2) | 2569 | if (skb->len < 2) |
2570 | return RX_DROP; | 2570 | return RX_DROP_UNUSABLE; |
2571 | 2571 | ||
2572 | mgmt = (struct ieee80211_mgmt *) skb->data; | 2572 | mgmt = (struct ieee80211_mgmt *) skb->data; |
2573 | fc = le16_to_cpu(mgmt->frame_control); | 2573 | fc = le16_to_cpu(mgmt->frame_control); |
@@ -2576,7 +2576,7 @@ ieee80211_sta_rx_scan(struct net_device *dev, struct sk_buff *skb, | |||
2576 | return RX_CONTINUE; | 2576 | return RX_CONTINUE; |
2577 | 2577 | ||
2578 | if (skb->len < 24) | 2578 | if (skb->len < 24) |
2579 | return RX_DROP; | 2579 | return RX_DROP_MONITOR; |
2580 | 2580 | ||
2581 | if ((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_MGMT) { | 2581 | if ((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_MGMT) { |
2582 | if ((fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_PROBE_RESP) { | 2582 | if ((fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_PROBE_RESP) { |