diff options
Diffstat (limited to 'net/ieee80211/ieee80211_rx.c')
-rw-r--r-- | net/ieee80211/ieee80211_rx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ieee80211/ieee80211_rx.c b/net/ieee80211/ieee80211_rx.c index 47ccf159372c..72d4d4e04d42 100644 --- a/net/ieee80211/ieee80211_rx.c +++ b/net/ieee80211/ieee80211_rx.c | |||
@@ -368,6 +368,7 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, | |||
368 | 368 | ||
369 | /* Put this code here so that we avoid duplicating it in all | 369 | /* Put this code here so that we avoid duplicating it in all |
370 | * Rx paths. - Jean II */ | 370 | * Rx paths. - Jean II */ |
371 | #ifdef CONFIG_WIRELESS_EXT | ||
371 | #ifdef IW_WIRELESS_SPY /* defined in iw_handler.h */ | 372 | #ifdef IW_WIRELESS_SPY /* defined in iw_handler.h */ |
372 | /* If spy monitoring on */ | 373 | /* If spy monitoring on */ |
373 | if (ieee->spy_data.spy_number > 0) { | 374 | if (ieee->spy_data.spy_number > 0) { |
@@ -396,15 +397,16 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, | |||
396 | wireless_spy_update(ieee->dev, hdr->addr2, &wstats); | 397 | wireless_spy_update(ieee->dev, hdr->addr2, &wstats); |
397 | } | 398 | } |
398 | #endif /* IW_WIRELESS_SPY */ | 399 | #endif /* IW_WIRELESS_SPY */ |
400 | #endif /* CONFIG_WIRELESS_EXT */ | ||
399 | 401 | ||
400 | #ifdef NOT_YET | 402 | #ifdef NOT_YET |
401 | hostap_update_rx_stats(local->ap, hdr, rx_stats); | 403 | hostap_update_rx_stats(local->ap, hdr, rx_stats); |
402 | #endif | 404 | #endif |
403 | 405 | ||
404 | if (ieee->iw_mode == IW_MODE_MONITOR) { | 406 | if (ieee->iw_mode == IW_MODE_MONITOR) { |
405 | ieee80211_monitor_rx(ieee, skb, rx_stats); | ||
406 | stats->rx_packets++; | 407 | stats->rx_packets++; |
407 | stats->rx_bytes += skb->len; | 408 | stats->rx_bytes += skb->len; |
409 | ieee80211_monitor_rx(ieee, skb, rx_stats); | ||
408 | return 1; | 410 | return 1; |
409 | } | 411 | } |
410 | 412 | ||