diff options
author | James Ketrenos <jketreno@linux.intel.com> | 2005-09-21 15:33:32 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-09-21 23:19:09 -0400 |
commit | 9a01c16bd49071b2e7904d222cae71d5f8bf6bb5 (patch) | |
tree | 6f1235f312251cccbb7f7d28f1e9c3f7fae0d0a2 | |
parent | 5bfc819b53ed67c76f33f969ab627070e85d87c1 (diff) |
[PATCH] ieee82011: Remove WIRELESS_EXT ifdefs
Remove old WIRELESS_EXT version compatibility
In-tree doesn't need to maintain backward compatibility.
Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
-rw-r--r-- | include/net/ieee80211.h | 2 | ||||
-rw-r--r-- | net/ieee80211/ieee80211_crypt_tkip.c | 23 | ||||
-rw-r--r-- | net/ieee80211/ieee80211_wx.c | 2 |
3 files changed, 0 insertions, 27 deletions
diff --git a/include/net/ieee80211.h b/include/net/ieee80211.h index 53809482a7e4..61a23d38b429 100644 --- a/include/net/ieee80211.h +++ b/include/net/ieee80211.h | |||
@@ -1069,14 +1069,12 @@ extern int ieee80211_wx_set_encode(struct ieee80211_device *ieee, | |||
1069 | extern int ieee80211_wx_get_encode(struct ieee80211_device *ieee, | 1069 | extern int ieee80211_wx_get_encode(struct ieee80211_device *ieee, |
1070 | struct iw_request_info *info, | 1070 | struct iw_request_info *info, |
1071 | union iwreq_data *wrqu, char *key); | 1071 | union iwreq_data *wrqu, char *key); |
1072 | #if WIRELESS_EXT > 17 | ||
1073 | extern int ieee80211_wx_set_encodeext(struct ieee80211_device *ieee, | 1072 | extern int ieee80211_wx_set_encodeext(struct ieee80211_device *ieee, |
1074 | struct iw_request_info *info, | 1073 | struct iw_request_info *info, |
1075 | union iwreq_data *wrqu, char *extra); | 1074 | union iwreq_data *wrqu, char *extra); |
1076 | extern int ieee80211_wx_get_encodeext(struct ieee80211_device *ieee, | 1075 | extern int ieee80211_wx_get_encodeext(struct ieee80211_device *ieee, |
1077 | struct iw_request_info *info, | 1076 | struct iw_request_info *info, |
1078 | union iwreq_data *wrqu, char *extra); | 1077 | union iwreq_data *wrqu, char *extra); |
1079 | #endif | ||
1080 | 1078 | ||
1081 | static inline void ieee80211_increment_scans(struct ieee80211_device *ieee) | 1079 | static inline void ieee80211_increment_scans(struct ieee80211_device *ieee) |
1082 | { | 1080 | { |
diff --git a/net/ieee80211/ieee80211_crypt_tkip.c b/net/ieee80211/ieee80211_crypt_tkip.c index f973d6cb8248..21022f195bab 100644 --- a/net/ieee80211/ieee80211_crypt_tkip.c +++ b/net/ieee80211/ieee80211_crypt_tkip.c | |||
@@ -515,7 +515,6 @@ static int ieee80211_michael_mic_add(struct sk_buff *skb, int hdr_len, | |||
515 | return 0; | 515 | return 0; |
516 | } | 516 | } |
517 | 517 | ||
518 | #if WIRELESS_EXT >= 18 | ||
519 | static void ieee80211_michael_mic_failure(struct net_device *dev, | 518 | static void ieee80211_michael_mic_failure(struct net_device *dev, |
520 | struct ieee80211_hdr_4addr *hdr, | 519 | struct ieee80211_hdr_4addr *hdr, |
521 | int keyidx) | 520 | int keyidx) |
@@ -536,28 +535,6 @@ static void ieee80211_michael_mic_failure(struct net_device *dev, | |||
536 | wrqu.data.length = sizeof(ev); | 535 | wrqu.data.length = sizeof(ev); |
537 | wireless_send_event(dev, IWEVMICHAELMICFAILURE, &wrqu, (char *)&ev); | 536 | wireless_send_event(dev, IWEVMICHAELMICFAILURE, &wrqu, (char *)&ev); |
538 | } | 537 | } |
539 | #elif WIRELESS_EXT >= 15 | ||
540 | static void ieee80211_michael_mic_failure(struct net_device *dev, | ||
541 | struct ieee80211_hdr_4addr *hdr, | ||
542 | int keyidx) | ||
543 | { | ||
544 | union iwreq_data wrqu; | ||
545 | char buf[128]; | ||
546 | |||
547 | /* TODO: needed parameters: count, keyid, key type, TSC */ | ||
548 | sprintf(buf, "MLME-MICHAELMICFAILURE.indication(keyid=%d %scast addr=" | ||
549 | MAC_FMT ")", keyidx, hdr->addr1[0] & 0x01 ? "broad" : "uni", | ||
550 | MAC_ARG(hdr->addr2)); | ||
551 | memset(&wrqu, 0, sizeof(wrqu)); | ||
552 | wrqu.data.length = strlen(buf); | ||
553 | wireless_send_event(dev, IWEVCUSTOM, &wrqu, buf); | ||
554 | } | ||
555 | #else /* WIRELESS_EXT >= 15 */ | ||
556 | static inline void ieee80211_michael_mic_failure(struct net_device *dev, struct ieee80211_hdr_4addr | ||
557 | *hdr, int keyidx) | ||
558 | { | ||
559 | } | ||
560 | #endif /* WIRELESS_EXT >= 15 */ | ||
561 | 538 | ||
562 | static int ieee80211_michael_mic_verify(struct sk_buff *skb, int keyidx, | 539 | static int ieee80211_michael_mic_verify(struct sk_buff *skb, int keyidx, |
563 | int hdr_len, void *priv) | 540 | int hdr_len, void *priv) |
diff --git a/net/ieee80211/ieee80211_wx.c b/net/ieee80211/ieee80211_wx.c index e28648e70cf1..3dd2bbae0c24 100644 --- a/net/ieee80211/ieee80211_wx.c +++ b/net/ieee80211/ieee80211_wx.c | |||
@@ -488,7 +488,6 @@ int ieee80211_wx_get_encode(struct ieee80211_device *ieee, | |||
488 | return 0; | 488 | return 0; |
489 | } | 489 | } |
490 | 490 | ||
491 | #if WIRELESS_EXT > 17 | ||
492 | int ieee80211_wx_set_encodeext(struct ieee80211_device *ieee, | 491 | int ieee80211_wx_set_encodeext(struct ieee80211_device *ieee, |
493 | struct iw_request_info *info, | 492 | struct iw_request_info *info, |
494 | union iwreq_data *wrqu, char *extra) | 493 | union iwreq_data *wrqu, char *extra) |
@@ -722,7 +721,6 @@ int ieee80211_wx_get_encodeext(struct ieee80211_device *ieee, | |||
722 | 721 | ||
723 | EXPORT_SYMBOL(ieee80211_wx_set_encodeext); | 722 | EXPORT_SYMBOL(ieee80211_wx_set_encodeext); |
724 | EXPORT_SYMBOL(ieee80211_wx_get_encodeext); | 723 | EXPORT_SYMBOL(ieee80211_wx_get_encodeext); |
725 | #endif | ||
726 | 724 | ||
727 | EXPORT_SYMBOL(ieee80211_wx_get_scan); | 725 | EXPORT_SYMBOL(ieee80211_wx_get_scan); |
728 | EXPORT_SYMBOL(ieee80211_wx_set_encode); | 726 | EXPORT_SYMBOL(ieee80211_wx_set_encode); |