diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-01-20 18:46:55 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-01-30 20:35:30 -0500 |
commit | d86b5e0e6bf5980d3136ab4a855522143f2dcb5d (patch) | |
tree | 8b63a48c3c063a5cdebeef29f05e698c7143bdf7 /net/ieee80211 | |
parent | 747af1e154545566d04f647f86fc3ae512439fab (diff) |
[PATCH] net/: fix the WIRELESS_EXT abuse
This patch contains the following changes:
- add a CONFIG_WIRELESS_EXT select'ed by NET_RADIO for conditional
code
- remove the now no longer required #ifdef CONFIG_NET_RADIO from some
#include's
Based on a patch by Jean Tourrilhes <jt@hpl.hp.com>.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211')
-rw-r--r-- | net/ieee80211/ieee80211_rx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ieee80211/ieee80211_rx.c b/net/ieee80211/ieee80211_rx.c index 6c070bc155e7..e2f1553ecb7c 100644 --- a/net/ieee80211/ieee80211_rx.c +++ b/net/ieee80211/ieee80211_rx.c | |||
@@ -369,8 +369,8 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, | |||
369 | 369 | ||
370 | /* Put this code here so that we avoid duplicating it in all | 370 | /* Put this code here so that we avoid duplicating it in all |
371 | * Rx paths. - Jean II */ | 371 | * Rx paths. - Jean II */ |
372 | #ifdef CONFIG_WIRELESS_EXT | ||
372 | #ifdef IW_WIRELESS_SPY /* defined in iw_handler.h */ | 373 | #ifdef IW_WIRELESS_SPY /* defined in iw_handler.h */ |
373 | #ifdef CONFIG_NET_RADIO | ||
374 | /* If spy monitoring on */ | 374 | /* If spy monitoring on */ |
375 | if (ieee->spy_data.spy_number > 0) { | 375 | if (ieee->spy_data.spy_number > 0) { |
376 | struct iw_quality wstats; | 376 | struct iw_quality wstats; |
@@ -397,8 +397,8 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, | |||
397 | /* Update spy records */ | 397 | /* Update spy records */ |
398 | wireless_spy_update(ieee->dev, hdr->addr2, &wstats); | 398 | wireless_spy_update(ieee->dev, hdr->addr2, &wstats); |
399 | } | 399 | } |
400 | #endif /* CONFIG_NET_RADIO */ | ||
401 | #endif /* IW_WIRELESS_SPY */ | 400 | #endif /* IW_WIRELESS_SPY */ |
401 | #endif /* CONFIG_WIRELESS_EXT */ | ||
402 | 402 | ||
403 | #ifdef NOT_YET | 403 | #ifdef NOT_YET |
404 | hostap_update_rx_stats(local->ap, hdr, rx_stats); | 404 | hostap_update_rx_stats(local->ap, hdr, rx_stats); |