diff options
author | Mike McCormack <mikem@ring3k.org> | 2011-03-10 08:33:11 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-14 15:24:44 -0400 |
commit | 8031aecb2dc4a973792f147ece4e23771d5071d3 (patch) | |
tree | 178cac12477636dc572a0415fadef14d414b9bfe /drivers/staging | |
parent | de69ba32136a790ee6b4d009df4c0a0b9cc0f6cd (diff) |
staging: rtl8192e: Remove ifdefs and dead code
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8192e/ieee80211/ieee80211.h | 62 |
1 files changed, 3 insertions, 59 deletions
diff --git a/drivers/staging/rtl8192e/ieee80211/ieee80211.h b/drivers/staging/rtl8192e/ieee80211/ieee80211.h index f9678734ac25..1acaefcd54f2 100644 --- a/drivers/staging/rtl8192e/ieee80211/ieee80211.h +++ b/drivers/staging/rtl8192e/ieee80211/ieee80211.h | |||
@@ -47,25 +47,6 @@ | |||
47 | #define IWEVCUSTOM 0x8c02 | 47 | #define IWEVCUSTOM 0x8c02 |
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) | ||
51 | #ifndef __bitwise | ||
52 | #define __bitwise __attribute__((bitwise)) | ||
53 | #endif | ||
54 | typedef __u16 __le16; | ||
55 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,27)) | ||
56 | struct iw_spy_data{ | ||
57 | /* --- Standard spy support --- */ | ||
58 | int spy_number; | ||
59 | u_char spy_address[IW_MAX_SPY][ETH_ALEN]; | ||
60 | struct iw_quality spy_stat[IW_MAX_SPY]; | ||
61 | /* --- Enhanced spy support (event) */ | ||
62 | struct iw_quality spy_thr_low; /* Low threshold */ | ||
63 | struct iw_quality spy_thr_high; /* High threshold */ | ||
64 | u_char spy_thr_under[IW_MAX_SPY]; | ||
65 | }; | ||
66 | #endif | ||
67 | #endif | ||
68 | |||
69 | #ifndef container_of | 50 | #ifndef container_of |
70 | /** | 51 | /** |
71 | * container_of - cast a member of a structure out to the containing structure | 52 | * container_of - cast a member of a structure out to the containing structure |
@@ -370,12 +351,10 @@ enum _ReasonCode{ | |||
370 | #define ieee80211_wx_get_scan ieee80211_wx_get_scan_rsl | 351 | #define ieee80211_wx_get_scan ieee80211_wx_get_scan_rsl |
371 | #define ieee80211_wx_set_encode ieee80211_wx_set_encode_rsl | 352 | #define ieee80211_wx_set_encode ieee80211_wx_set_encode_rsl |
372 | #define ieee80211_wx_get_encode ieee80211_wx_get_encode_rsl | 353 | #define ieee80211_wx_get_encode ieee80211_wx_get_encode_rsl |
373 | #if WIRELESS_EXT >= 18 | ||
374 | #define ieee80211_wx_set_mlme ieee80211_wx_set_mlme_rsl | 354 | #define ieee80211_wx_set_mlme ieee80211_wx_set_mlme_rsl |
375 | #define ieee80211_wx_set_auth ieee80211_wx_set_auth_rsl | 355 | #define ieee80211_wx_set_auth ieee80211_wx_set_auth_rsl |
376 | #define ieee80211_wx_set_encode_ext ieee80211_wx_set_encode_ext_rsl | 356 | #define ieee80211_wx_set_encode_ext ieee80211_wx_set_encode_ext_rsl |
377 | #define ieee80211_wx_get_encode_ext ieee80211_wx_get_encode_ext_rsl | 357 | #define ieee80211_wx_get_encode_ext ieee80211_wx_get_encode_ext_rsl |
378 | #endif | ||
379 | 358 | ||
380 | 359 | ||
381 | typedef struct ieee_param { | 360 | typedef struct ieee_param { |
@@ -408,15 +387,6 @@ typedef struct ieee_param { | |||
408 | }ieee_param; | 387 | }ieee_param; |
409 | 388 | ||
410 | 389 | ||
411 | #if WIRELESS_EXT < 17 | ||
412 | #define IW_QUAL_QUAL_INVALID 0x10 | ||
413 | #define IW_QUAL_LEVEL_INVALID 0x20 | ||
414 | #define IW_QUAL_NOISE_INVALID 0x40 | ||
415 | #define IW_QUAL_QUAL_UPDATED 0x1 | ||
416 | #define IW_QUAL_LEVEL_UPDATED 0x2 | ||
417 | #define IW_QUAL_NOISE_UPDATED 0x4 | ||
418 | #endif | ||
419 | |||
420 | // linux under 2.6.9 release may not support it, so modify it for common use | 390 | // linux under 2.6.9 release may not support it, so modify it for common use |
421 | #define MSECS(t) msecs_to_jiffies(t) | 391 | #define MSECS(t) msecs_to_jiffies(t) |
422 | #define msleep_interruptible_rsl msleep_interruptible | 392 | #define msleep_interruptible_rsl msleep_interruptible |
@@ -1286,7 +1256,7 @@ typedef union _frameqos { | |||
1286 | #define QOS_OUI_PARAM_SUB_TYPE 1 | 1256 | #define QOS_OUI_PARAM_SUB_TYPE 1 |
1287 | #define QOS_VERSION_1 1 | 1257 | #define QOS_VERSION_1 1 |
1288 | #define QOS_AIFSN_MIN_VALUE 2 | 1258 | #define QOS_AIFSN_MIN_VALUE 2 |
1289 | #if 1 | 1259 | |
1290 | struct ieee80211_qos_information_element { | 1260 | struct ieee80211_qos_information_element { |
1291 | u8 elementID; | 1261 | u8 elementID; |
1292 | u8 length; | 1262 | u8 length; |
@@ -1361,7 +1331,7 @@ struct ieee80211_wmm_tspec_elem { | |||
1361 | u16 surp_band_allow; | 1331 | u16 surp_band_allow; |
1362 | u16 medium_time; | 1332 | u16 medium_time; |
1363 | }__attribute__((packed)); | 1333 | }__attribute__((packed)); |
1364 | #endif | 1334 | |
1365 | enum eap_type { | 1335 | enum eap_type { |
1366 | EAP_PACKET = 0, | 1336 | EAP_PACKET = 0, |
1367 | EAPOL_START, | 1337 | EAPOL_START, |
@@ -1483,15 +1453,13 @@ enum {WMM_all_frame, WMM_two_frame, WMM_four_frame, WMM_six_frame}; | |||
1483 | #define MAX_RECEIVE_BUFFER_SIZE 9100 | 1453 | #define MAX_RECEIVE_BUFFER_SIZE 9100 |
1484 | 1454 | ||
1485 | //UP Mapping to AC, using in MgntQuery_SequenceNumber() and maybe for DSCP | 1455 | //UP Mapping to AC, using in MgntQuery_SequenceNumber() and maybe for DSCP |
1486 | //#define UP2AC(up) ((up<3) ? ((up==0)?1:0) : (up>>1)) | ||
1487 | #if 1 | ||
1488 | #define UP2AC(up) ( \ | 1456 | #define UP2AC(up) ( \ |
1489 | ((up) < 1) ? WME_AC_BE : \ | 1457 | ((up) < 1) ? WME_AC_BE : \ |
1490 | ((up) < 3) ? WME_AC_BK : \ | 1458 | ((up) < 3) ? WME_AC_BK : \ |
1491 | ((up) < 4) ? WME_AC_BE : \ | 1459 | ((up) < 4) ? WME_AC_BE : \ |
1492 | ((up) < 6) ? WME_AC_VI : \ | 1460 | ((up) < 6) ? WME_AC_VI : \ |
1493 | WME_AC_VO) | 1461 | WME_AC_VO) |
1494 | #endif | 1462 | |
1495 | //AC Mapping to UP, using in Tx part for selecting the corresponding TX queue | 1463 | //AC Mapping to UP, using in Tx part for selecting the corresponding TX queue |
1496 | #define AC2UP(_ac) ( \ | 1464 | #define AC2UP(_ac) ( \ |
1497 | ((_ac) == WME_AC_VO) ? 6 : \ | 1465 | ((_ac) == WME_AC_VO) ? 6 : \ |
@@ -1545,12 +1513,7 @@ struct ieee80211_network { | |||
1545 | /* Ensure null-terminated for any debug msgs */ | 1513 | /* Ensure null-terminated for any debug msgs */ |
1546 | u8 ssid[IW_ESSID_MAX_SIZE + 1]; | 1514 | u8 ssid[IW_ESSID_MAX_SIZE + 1]; |
1547 | u8 ssid_len; | 1515 | u8 ssid_len; |
1548 | #if 1 | ||
1549 | struct ieee80211_qos_data qos_data; | 1516 | struct ieee80211_qos_data qos_data; |
1550 | #else | ||
1551 | // Qos related. Added by Annie, 2005-11-01. | ||
1552 | BSS_QOS BssQos; | ||
1553 | #endif | ||
1554 | 1517 | ||
1555 | //added by amy for LEAP | 1518 | //added by amy for LEAP |
1556 | bool bWithAironetIE; | 1519 | bool bWithAironetIE; |
@@ -1617,7 +1580,6 @@ struct ieee80211_network { | |||
1617 | struct list_head list; | 1580 | struct list_head list; |
1618 | }; | 1581 | }; |
1619 | 1582 | ||
1620 | #if 1 | ||
1621 | enum ieee80211_state { | 1583 | enum ieee80211_state { |
1622 | 1584 | ||
1623 | /* the card is not linked at all */ | 1585 | /* the card is not linked at all */ |
@@ -1656,17 +1618,6 @@ enum ieee80211_state { | |||
1656 | IEEE80211_LINKED_SCANNING, | 1618 | IEEE80211_LINKED_SCANNING, |
1657 | 1619 | ||
1658 | }; | 1620 | }; |
1659 | #else | ||
1660 | enum ieee80211_state { | ||
1661 | IEEE80211_UNINITIALIZED = 0, | ||
1662 | IEEE80211_INITIALIZED, | ||
1663 | IEEE80211_ASSOCIATING, | ||
1664 | IEEE80211_ASSOCIATED, | ||
1665 | IEEE80211_AUTHENTICATING, | ||
1666 | IEEE80211_AUTHENTICATED, | ||
1667 | IEEE80211_SHUTDOWN | ||
1668 | }; | ||
1669 | #endif | ||
1670 | 1621 | ||
1671 | #define DEFAULT_MAX_SCAN_AGE (15 * HZ) | 1622 | #define DEFAULT_MAX_SCAN_AGE (15 * HZ) |
1672 | #define DEFAULT_FTS 2346 | 1623 | #define DEFAULT_FTS 2346 |
@@ -1905,12 +1856,8 @@ struct ieee80211_device { | |||
1905 | struct list_head Rx_TS_Pending_List; | 1856 | struct list_head Rx_TS_Pending_List; |
1906 | struct list_head Rx_TS_Unused_List; | 1857 | struct list_head Rx_TS_Unused_List; |
1907 | RX_TS_RECORD RxTsRecord[TOTAL_TS_NUM]; | 1858 | RX_TS_RECORD RxTsRecord[TOTAL_TS_NUM]; |
1908 | //#ifdef TO_DO_LIST | ||
1909 | RX_REORDER_ENTRY RxReorderEntry[128]; | 1859 | RX_REORDER_ENTRY RxReorderEntry[128]; |
1910 | struct list_head RxReorder_Unused_List; | 1860 | struct list_head RxReorder_Unused_List; |
1911 | //#endif | ||
1912 | // Qos related. Added by Annie, 2005-11-01. | ||
1913 | // PSTA_QOS pStaQos; | ||
1914 | u8 ForcedPriority; // Force per-packet priority 1~7. (default: 0, not to force it.) | 1861 | u8 ForcedPriority; // Force per-packet priority 1~7. (default: 0, not to force it.) |
1915 | 1862 | ||
1916 | 1863 | ||
@@ -2096,7 +2043,6 @@ struct ieee80211_device { | |||
2096 | struct sk_buff *mgmt_queue_ring[MGMT_QUEUE_NUM]; | 2043 | struct sk_buff *mgmt_queue_ring[MGMT_QUEUE_NUM]; |
2097 | int mgmt_queue_head; | 2044 | int mgmt_queue_head; |
2098 | int mgmt_queue_tail; | 2045 | int mgmt_queue_tail; |
2099 | //{ added for rtl819x | ||
2100 | #define IEEE80211_QUEUE_LIMIT 128 | 2046 | #define IEEE80211_QUEUE_LIMIT 128 |
2101 | u8 AsocRetryCount; | 2047 | u8 AsocRetryCount; |
2102 | unsigned int hw_header; | 2048 | unsigned int hw_header; |
@@ -2464,7 +2410,6 @@ int ieee80211_wx_set_encode(struct ieee80211_device *ieee, | |||
2464 | int ieee80211_wx_get_encode(struct ieee80211_device *ieee, | 2410 | int ieee80211_wx_get_encode(struct ieee80211_device *ieee, |
2465 | struct iw_request_info *info, | 2411 | struct iw_request_info *info, |
2466 | union iwreq_data *wrqu, char *key); | 2412 | union iwreq_data *wrqu, char *key); |
2467 | #if WIRELESS_EXT >= 18 | ||
2468 | int ieee80211_wx_get_encode_ext(struct ieee80211_device *ieee, | 2413 | int ieee80211_wx_get_encode_ext(struct ieee80211_device *ieee, |
2469 | struct iw_request_info *info, | 2414 | struct iw_request_info *info, |
2470 | union iwreq_data* wrqu, char *extra); | 2415 | union iwreq_data* wrqu, char *extra); |
@@ -2477,7 +2422,6 @@ int ieee80211_wx_set_auth(struct ieee80211_device *ieee, | |||
2477 | int ieee80211_wx_set_mlme(struct ieee80211_device *ieee, | 2422 | int ieee80211_wx_set_mlme(struct ieee80211_device *ieee, |
2478 | struct iw_request_info *info, | 2423 | struct iw_request_info *info, |
2479 | union iwreq_data *wrqu, char *extra); | 2424 | union iwreq_data *wrqu, char *extra); |
2480 | #endif | ||
2481 | int ieee80211_wx_set_gen_ie(struct ieee80211_device *ieee, u8 *ie, size_t len); | 2425 | int ieee80211_wx_set_gen_ie(struct ieee80211_device *ieee, u8 *ie, size_t len); |
2482 | 2426 | ||
2483 | /* ieee80211_softmac.c */ | 2427 | /* ieee80211_softmac.c */ |