aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/cyclomx.h2
-rw-r--r--include/linux/cycx_drv.h1
-rw-r--r--include/linux/ibmtr.h4
-rw-r--r--include/linux/mii.h1
-rw-r--r--include/linux/netdevice.h6
-rw-r--r--include/linux/sdladrv.h4
-rw-r--r--include/linux/wanpipe.h9
-rw-r--r--include/net/ieee80211.h123
-rw-r--r--include/net/ieee80211_crypt.h24
-rw-r--r--include/net/syncppp.h1
10 files changed, 67 insertions, 108 deletions
diff --git a/include/linux/cyclomx.h b/include/linux/cyclomx.h
index 04fa7dff079c..300d704bdb9a 100644
--- a/include/linux/cyclomx.h
+++ b/include/linux/cyclomx.h
@@ -37,8 +37,6 @@
37#include <linux/cycx_x25.h> 37#include <linux/cycx_x25.h>
38#endif 38#endif
39 39
40#define is_digit(ch) (((ch)>=(unsigned)'0'&&(ch)<=(unsigned)'9')?1:0)
41
42/* Adapter Data Space. 40/* Adapter Data Space.
43 * This structure is needed because we handle multiple cards, otherwise 41 * This structure is needed because we handle multiple cards, otherwise
44 * static data would do it. 42 * static data would do it.
diff --git a/include/linux/cycx_drv.h b/include/linux/cycx_drv.h
index 6621df86a748..12fe6b0bfcff 100644
--- a/include/linux/cycx_drv.h
+++ b/include/linux/cycx_drv.h
@@ -60,6 +60,5 @@ extern int cycx_peek(struct cycx_hw *hw, u32 addr, void *buf, u32 len);
60extern int cycx_poke(struct cycx_hw *hw, u32 addr, void *buf, u32 len); 60extern int cycx_poke(struct cycx_hw *hw, u32 addr, void *buf, u32 len);
61extern int cycx_exec(void __iomem *addr); 61extern int cycx_exec(void __iomem *addr);
62 62
63extern void cycx_inten(struct cycx_hw *hw);
64extern void cycx_intr(struct cycx_hw *hw); 63extern void cycx_intr(struct cycx_hw *hw);
65#endif /* _CYCX_DRV_H */ 64#endif /* _CYCX_DRV_H */
diff --git a/include/linux/ibmtr.h b/include/linux/ibmtr.h
index 2ef0b21517fb..1c7a0dd5536a 100644
--- a/include/linux/ibmtr.h
+++ b/include/linux/ibmtr.h
@@ -7,8 +7,8 @@
7/* ported to the Alpha architecture 02/20/96 (just used the HZ macro) */ 7/* ported to the Alpha architecture 02/20/96 (just used the HZ macro) */
8 8
9#define TR_RETRY_INTERVAL (30*HZ) /* 500 on PC = 5 s */ 9#define TR_RETRY_INTERVAL (30*HZ) /* 500 on PC = 5 s */
10#define TR_RST_TIME (HZ/20) /* 5 on PC = 50 ms */ 10#define TR_RST_TIME (msecs_to_jiffies(50)) /* 5 on PC = 50 ms */
11#define TR_BUSY_INTERVAL (HZ/5) /* 5 on PC = 200 ms */ 11#define TR_BUSY_INTERVAL (msecs_to_jiffies(200)) /* 5 on PC = 200 ms */
12#define TR_SPIN_INTERVAL (3*HZ) /* 3 seconds before init timeout */ 12#define TR_SPIN_INTERVAL (3*HZ) /* 3 seconds before init timeout */
13 13
14#define TR_ISA 1 14#define TR_ISA 1
diff --git a/include/linux/mii.h b/include/linux/mii.h
index 9b8d0476988a..68f5a0f392dd 100644
--- a/include/linux/mii.h
+++ b/include/linux/mii.h
@@ -158,6 +158,7 @@ extern int mii_link_ok (struct mii_if_info *mii);
158extern int mii_nway_restart (struct mii_if_info *mii); 158extern int mii_nway_restart (struct mii_if_info *mii);
159extern int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd); 159extern int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd);
160extern int mii_ethtool_sset(struct mii_if_info *mii, struct ethtool_cmd *ecmd); 160extern int mii_ethtool_sset(struct mii_if_info *mii, struct ethtool_cmd *ecmd);
161extern int mii_check_gmii_support(struct mii_if_info *mii);
161extern void mii_check_link (struct mii_if_info *mii); 162extern void mii_check_link (struct mii_if_info *mii);
162extern unsigned int mii_check_media (struct mii_if_info *mii, 163extern unsigned int mii_check_media (struct mii_if_info *mii,
163 unsigned int ok_to_print, 164 unsigned int ok_to_print,
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 7c717907896d..98c98e6cd4f3 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -852,11 +852,9 @@ static inline void netif_rx_complete(struct net_device *dev)
852 852
853static inline void netif_poll_disable(struct net_device *dev) 853static inline void netif_poll_disable(struct net_device *dev)
854{ 854{
855 while (test_and_set_bit(__LINK_STATE_RX_SCHED, &dev->state)) { 855 while (test_and_set_bit(__LINK_STATE_RX_SCHED, &dev->state))
856 /* No hurry. */ 856 /* No hurry. */
857 current->state = TASK_INTERRUPTIBLE; 857 schedule_timeout_interruptible(1);
858 schedule_timeout(1);
859 }
860} 858}
861 859
862static inline void netif_poll_enable(struct net_device *dev) 860static inline void netif_poll_enable(struct net_device *dev)
diff --git a/include/linux/sdladrv.h b/include/linux/sdladrv.h
index 78f634007fc6..c85e103d5e7b 100644
--- a/include/linux/sdladrv.h
+++ b/include/linux/sdladrv.h
@@ -52,12 +52,8 @@ typedef struct sdlahw
52 52
53extern int sdla_setup (sdlahw_t* hw, void* sfm, unsigned len); 53extern int sdla_setup (sdlahw_t* hw, void* sfm, unsigned len);
54extern int sdla_down (sdlahw_t* hw); 54extern int sdla_down (sdlahw_t* hw);
55extern int sdla_inten (sdlahw_t* hw);
56extern int sdla_intde (sdlahw_t* hw);
57extern int sdla_intack (sdlahw_t* hw);
58extern void S514_intack (sdlahw_t* hw, u32 int_status); 55extern void S514_intack (sdlahw_t* hw, u32 int_status);
59extern void read_S514_int_stat (sdlahw_t* hw, u32* int_status); 56extern void read_S514_int_stat (sdlahw_t* hw, u32* int_status);
60extern int sdla_intr (sdlahw_t* hw);
61extern int sdla_mapmem (sdlahw_t* hw, unsigned long addr); 57extern int sdla_mapmem (sdlahw_t* hw, unsigned long addr);
62extern int sdla_peek (sdlahw_t* hw, unsigned long addr, void* buf, 58extern int sdla_peek (sdlahw_t* hw, unsigned long addr, void* buf,
63 unsigned len); 59 unsigned len);
diff --git a/include/linux/wanpipe.h b/include/linux/wanpipe.h
index 167d956c492b..dae9860091dd 100644
--- a/include/linux/wanpipe.h
+++ b/include/linux/wanpipe.h
@@ -265,15 +265,6 @@ typedef struct {
265#include <linux/tty_driver.h> 265#include <linux/tty_driver.h>
266#include <linux/tty_flip.h> 266#include <linux/tty_flip.h>
267 267
268
269#define is_digit(ch) (((ch)>=(unsigned)'0'&&(ch)<=(unsigned)'9')?1:0)
270#define is_alpha(ch) ((((ch)>=(unsigned)'a'&&(ch)<=(unsigned)'z')||\
271 ((ch)>=(unsigned)'A'&&(ch)<=(unsigned)'Z'))?1:0)
272#define is_hex_digit(ch) ((((ch)>=(unsigned)'0'&&(ch)<=(unsigned)'9')||\
273 ((ch)>=(unsigned)'a'&&(ch)<=(unsigned)'f')||\
274 ((ch)>=(unsigned)'A'&&(ch)<=(unsigned)'F'))?1:0)
275
276
277/****** Data Structures *****************************************************/ 268/****** Data Structures *****************************************************/
278 269
279/* Adapter Data Space. 270/* Adapter Data Space.
diff --git a/include/net/ieee80211.h b/include/net/ieee80211.h
index dc36b1be6745..2d9c679cf6b6 100644
--- a/include/net/ieee80211.h
+++ b/include/net/ieee80211.h
@@ -20,8 +20,8 @@
20 */ 20 */
21#ifndef IEEE80211_H 21#ifndef IEEE80211_H
22#define IEEE80211_H 22#define IEEE80211_H
23#include <linux/if_ether.h> /* ETH_ALEN */ 23#include <linux/if_ether.h> /* ETH_ALEN */
24#include <linux/kernel.h> /* ARRAY_SIZE */ 24#include <linux/kernel.h> /* ARRAY_SIZE */
25#include <linux/wireless.h> 25#include <linux/wireless.h>
26 26
27#define IEEE80211_DATA_LEN 2304 27#define IEEE80211_DATA_LEN 2304
@@ -33,7 +33,6 @@
33 represents the 2304 bytes of real data, plus a possible 8 bytes of 33 represents the 2304 bytes of real data, plus a possible 8 bytes of
34 WEP IV and ICV. (this interpretation suggested by Ramiro Barreiro) */ 34 WEP IV and ICV. (this interpretation suggested by Ramiro Barreiro) */
35 35
36
37#define IEEE80211_HLEN 30 36#define IEEE80211_HLEN 30
38#define IEEE80211_FRAME_LEN (IEEE80211_DATA_LEN + IEEE80211_HLEN) 37#define IEEE80211_FRAME_LEN (IEEE80211_DATA_LEN + IEEE80211_HLEN)
39 38
@@ -117,7 +116,6 @@ struct ieee80211_hdr_3addr {
117#define IEEE80211_SCTL_FRAG 0x000F 116#define IEEE80211_SCTL_FRAG 0x000F
118#define IEEE80211_SCTL_SEQ 0xFFF0 117#define IEEE80211_SCTL_SEQ 0xFFF0
119 118
120
121/* debug macros */ 119/* debug macros */
122 120
123#ifdef CONFIG_IEEE80211_DEBUG 121#ifdef CONFIG_IEEE80211_DEBUG
@@ -128,8 +126,7 @@ do { if (ieee80211_debug_level & (level)) \
128 in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0) 126 in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0)
129#else 127#else
130#define IEEE80211_DEBUG(level, fmt, args...) do {} while (0) 128#define IEEE80211_DEBUG(level, fmt, args...) do {} while (0)
131#endif /* CONFIG_IEEE80211_DEBUG */ 129#endif /* CONFIG_IEEE80211_DEBUG */
132
133 130
134/* debug macros not dependent on CONFIG_IEEE80211_DEBUG */ 131/* debug macros not dependent on CONFIG_IEEE80211_DEBUG */
135 132
@@ -140,7 +137,6 @@ do { if (ieee80211_debug_level & (level)) \
140 * messages. It should never be used for passing essid to user space. */ 137 * messages. It should never be used for passing essid to user space. */
141const char *escape_essid(const char *essid, u8 essid_len); 138const char *escape_essid(const char *essid, u8 essid_len);
142 139
143
144/* 140/*
145 * To use the debug system: 141 * To use the debug system:
146 * 142 *
@@ -192,7 +188,7 @@ const char *escape_essid(const char *essid, u8 essid_len);
192#define IEEE80211_DEBUG_RX(f, a...) IEEE80211_DEBUG(IEEE80211_DL_RX, f, ## a) 188#define IEEE80211_DEBUG_RX(f, a...) IEEE80211_DEBUG(IEEE80211_DL_RX, f, ## a)
193#include <linux/netdevice.h> 189#include <linux/netdevice.h>
194#include <linux/wireless.h> 190#include <linux/wireless.h>
195#include <linux/if_arp.h> /* ARPHRD_ETHER */ 191#include <linux/if_arp.h> /* ARPHRD_ETHER */
196 192
197#ifndef WIRELESS_SPY 193#ifndef WIRELESS_SPY
198#define WIRELESS_SPY /* enable iwspy support */ 194#define WIRELESS_SPY /* enable iwspy support */
@@ -200,10 +196,10 @@ const char *escape_essid(const char *essid, u8 essid_len);
200#include <net/iw_handler.h> /* new driver API */ 196#include <net/iw_handler.h> /* new driver API */
201 197
202#ifndef ETH_P_PAE 198#ifndef ETH_P_PAE
203#define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */ 199#define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */
204#endif /* ETH_P_PAE */ 200#endif /* ETH_P_PAE */
205 201
206#define ETH_P_PREAUTH 0x88C7 /* IEEE 802.11i pre-authentication */ 202#define ETH_P_PREAUTH 0x88C7 /* IEEE 802.11i pre-authentication */
207 203
208#ifndef ETH_P_80211_RAW 204#ifndef ETH_P_80211_RAW
209#define ETH_P_80211_RAW (ETH_P_ECONET + 1) 205#define ETH_P_80211_RAW (ETH_P_ECONET + 1)
@@ -215,10 +211,10 @@ const char *escape_essid(const char *essid, u8 essid_len);
215 211
216struct ieee80211_snap_hdr { 212struct ieee80211_snap_hdr {
217 213
218 u8 dsap; /* always 0xAA */ 214 u8 dsap; /* always 0xAA */
219 u8 ssap; /* always 0xAA */ 215 u8 ssap; /* always 0xAA */
220 u8 ctrl; /* always 0x03 */ 216 u8 ctrl; /* always 0x03 */
221 u8 oui[P80211_OUI_LEN]; /* organizational universal id */ 217 u8 oui[P80211_OUI_LEN]; /* organizational universal id */
222 218
223} __attribute__ ((packed)); 219} __attribute__ ((packed));
224 220
@@ -312,14 +308,12 @@ enum ieee80211_reasoncode {
312 WLAN_REASON_CIPHER_SUITE_REJECTED = 24, 308 WLAN_REASON_CIPHER_SUITE_REJECTED = 24,
313}; 309};
314 310
315
316#define IEEE80211_STATMASK_SIGNAL (1<<0) 311#define IEEE80211_STATMASK_SIGNAL (1<<0)
317#define IEEE80211_STATMASK_RSSI (1<<1) 312#define IEEE80211_STATMASK_RSSI (1<<1)
318#define IEEE80211_STATMASK_NOISE (1<<2) 313#define IEEE80211_STATMASK_NOISE (1<<2)
319#define IEEE80211_STATMASK_RATE (1<<3) 314#define IEEE80211_STATMASK_RATE (1<<3)
320#define IEEE80211_STATMASK_WEMASK 0x7 315#define IEEE80211_STATMASK_WEMASK 0x7
321 316
322
323#define IEEE80211_CCK_MODULATION (1<<0) 317#define IEEE80211_CCK_MODULATION (1<<0)
324#define IEEE80211_OFDM_MODULATION (1<<1) 318#define IEEE80211_OFDM_MODULATION (1<<1)
325 319
@@ -377,9 +371,6 @@ enum ieee80211_reasoncode {
377#define IEEE80211_NUM_CCK_RATES 4 371#define IEEE80211_NUM_CCK_RATES 4
378#define IEEE80211_OFDM_SHIFT_MASK_A 4 372#define IEEE80211_OFDM_SHIFT_MASK_A 4
379 373
380
381
382
383/* NOTE: This data is for statistical purposes; not all hardware provides this 374/* NOTE: This data is for statistical purposes; not all hardware provides this
384 * information for frames received. Not setting these will not cause 375 * information for frames received. Not setting these will not cause
385 * any adverse affects. */ 376 * any adverse affects. */
@@ -388,7 +379,7 @@ struct ieee80211_rx_stats {
388 s8 rssi; 379 s8 rssi;
389 u8 signal; 380 u8 signal;
390 u8 noise; 381 u8 noise;
391 u16 rate; /* in 100 kbps */ 382 u16 rate; /* in 100 kbps */
392 u8 received_channel; 383 u8 received_channel;
393 u8 control; 384 u8 control;
394 u8 mask; 385 u8 mask;
@@ -449,28 +440,24 @@ struct ieee80211_device;
449#define SEC_LEVEL (1<<7) 440#define SEC_LEVEL (1<<7)
450#define SEC_ENABLED (1<<8) 441#define SEC_ENABLED (1<<8)
451 442
452#define SEC_LEVEL_0 0 /* None */ 443#define SEC_LEVEL_0 0 /* None */
453#define SEC_LEVEL_1 1 /* WEP 40 and 104 bit */ 444#define SEC_LEVEL_1 1 /* WEP 40 and 104 bit */
454#define SEC_LEVEL_2 2 /* Level 1 + TKIP */ 445#define SEC_LEVEL_2 2 /* Level 1 + TKIP */
455#define SEC_LEVEL_2_CKIP 3 /* Level 1 + CKIP */ 446#define SEC_LEVEL_2_CKIP 3 /* Level 1 + CKIP */
456#define SEC_LEVEL_3 4 /* Level 2 + CCMP */ 447#define SEC_LEVEL_3 4 /* Level 2 + CCMP */
457 448
458#define WEP_KEYS 4 449#define WEP_KEYS 4
459#define WEP_KEY_LEN 13 450#define WEP_KEY_LEN 13
460 451
461struct ieee80211_security { 452struct ieee80211_security {
462 u16 active_key:2, 453 u16 active_key:2,
463 enabled:1, 454 enabled:1, auth_mode:2, auth_algo:4, unicast_uses_group:1;
464 auth_mode:2,
465 auth_algo:4,
466 unicast_uses_group:1;
467 u8 key_sizes[WEP_KEYS]; 455 u8 key_sizes[WEP_KEYS];
468 u8 keys[WEP_KEYS][WEP_KEY_LEN]; 456 u8 keys[WEP_KEYS][WEP_KEY_LEN];
469 u8 level; 457 u8 level;
470 u16 flags; 458 u16 flags;
471} __attribute__ ((packed)); 459} __attribute__ ((packed));
472 460
473
474/* 461/*
475 462
476 802.11 data frame from AP 463 802.11 data frame from AP
@@ -494,7 +481,7 @@ enum ieee80211_mfie {
494 MFIE_TYPE_RATES = 1, 481 MFIE_TYPE_RATES = 1,
495 MFIE_TYPE_FH_SET = 2, 482 MFIE_TYPE_FH_SET = 2,
496 MFIE_TYPE_DS_SET = 3, 483 MFIE_TYPE_DS_SET = 3,
497 MFIE_TYPE_CF_SET = 4, 484 MFIE_TYPE_CF_SET = 4,
498 MFIE_TYPE_TIM = 5, 485 MFIE_TYPE_TIM = 5,
499 MFIE_TYPE_IBSS_SET = 6, 486 MFIE_TYPE_IBSS_SET = 6,
500 MFIE_TYPE_COUNTRY = 7, 487 MFIE_TYPE_COUNTRY = 7,
@@ -518,11 +505,6 @@ enum ieee80211_mfie {
518 MFIE_TYPE_GENERIC = 221, 505 MFIE_TYPE_GENERIC = 221,
519}; 506};
520 507
521struct ieee80211_info_element_hdr {
522 u8 id;
523 u8 len;
524} __attribute__ ((packed));
525
526struct ieee80211_info_element { 508struct ieee80211_info_element {
527 u8 id; 509 u8 id;
528 u8 len; 510 u8 len;
@@ -551,23 +533,22 @@ struct ieee80211_authentication {
551 __le16 algorithm; 533 __le16 algorithm;
552 __le16 transaction; 534 __le16 transaction;
553 __le16 status; 535 __le16 status;
554 struct ieee80211_info_element info_element; 536 struct ieee80211_info_element info_element[0];
555} __attribute__ ((packed)); 537} __attribute__ ((packed));
556 538
557
558struct ieee80211_probe_response { 539struct ieee80211_probe_response {
559 struct ieee80211_hdr_3addr header; 540 struct ieee80211_hdr_3addr header;
560 u32 time_stamp[2]; 541 u32 time_stamp[2];
561 __le16 beacon_interval; 542 __le16 beacon_interval;
562 __le16 capability; 543 __le16 capability;
563 struct ieee80211_info_element info_element; 544 struct ieee80211_info_element info_element[0];
564} __attribute__ ((packed)); 545} __attribute__ ((packed));
565 546
566struct ieee80211_assoc_request_frame { 547struct ieee80211_assoc_request_frame {
567 __le16 capability; 548 __le16 capability;
568 __le16 listen_interval; 549 __le16 listen_interval;
569 u8 current_ap[ETH_ALEN]; 550 u8 current_ap[ETH_ALEN];
570 struct ieee80211_info_element info_element; 551 struct ieee80211_info_element info_element[0];
571} __attribute__ ((packed)); 552} __attribute__ ((packed));
572 553
573struct ieee80211_assoc_response_frame { 554struct ieee80211_assoc_response_frame {
@@ -575,10 +556,9 @@ struct ieee80211_assoc_response_frame {
575 __le16 capability; 556 __le16 capability;
576 __le16 status; 557 __le16 status;
577 __le16 aid; 558 __le16 aid;
578 struct ieee80211_info_element info_element; /* supported rates */ 559 struct ieee80211_info_element info_element[0]; /* supported rates */
579} __attribute__ ((packed)); 560} __attribute__ ((packed));
580 561
581
582struct ieee80211_txb { 562struct ieee80211_txb {
583 u8 nr_frags; 563 u8 nr_frags;
584 u8 encrypted; 564 u8 encrypted;
@@ -588,7 +568,6 @@ struct ieee80211_txb {
588 struct sk_buff *fragments[0]; 568 struct sk_buff *fragments[0];
589}; 569};
590 570
591
592/* SWEEP TABLE ENTRIES NUMBER */ 571/* SWEEP TABLE ENTRIES NUMBER */
593#define MAX_SWEEP_TAB_ENTRIES 42 572#define MAX_SWEEP_TAB_ENTRIES 42
594#define MAX_SWEEP_TAB_ENTRIES_PER_PACKET 7 573#define MAX_SWEEP_TAB_ENTRIES_PER_PACKET 7
@@ -651,7 +630,6 @@ enum ieee80211_state {
651#define DEFAULT_MAX_SCAN_AGE (15 * HZ) 630#define DEFAULT_MAX_SCAN_AGE (15 * HZ)
652#define DEFAULT_FTS 2346 631#define DEFAULT_FTS 2346
653 632
654
655#define CFG_IEEE80211_RESERVE_FCS (1<<0) 633#define CFG_IEEE80211_RESERVE_FCS (1<<0)
656#define CFG_IEEE80211_COMPUTE_FCS (1<<1) 634#define CFG_IEEE80211_COMPUTE_FCS (1<<1)
657 635
@@ -669,24 +647,25 @@ struct ieee80211_device {
669 int scans; 647 int scans;
670 int scan_age; 648 int scan_age;
671 649
672 int iw_mode; /* operating mode (IW_MODE_*) */ 650 int iw_mode; /* operating mode (IW_MODE_*) */
651 struct iw_spy_data spy_data; /* iwspy support */
673 652
674 spinlock_t lock; 653 spinlock_t lock;
675 654
676 int tx_headroom; /* Set to size of any additional room needed at front 655 int tx_headroom; /* Set to size of any additional room needed at front
677 * of allocated Tx SKBs */ 656 * of allocated Tx SKBs */
678 u32 config; 657 u32 config;
679 658
680 /* WEP and other encryption related settings at the device level */ 659 /* WEP and other encryption related settings at the device level */
681 int open_wep; /* Set to 1 to allow unencrypted frames */ 660 int open_wep; /* Set to 1 to allow unencrypted frames */
682 661
683 int reset_on_keychange; /* Set to 1 if the HW needs to be reset on 662 int reset_on_keychange; /* Set to 1 if the HW needs to be reset on
684 * WEP key changes */ 663 * WEP key changes */
685 664
686 /* If the host performs {en,de}cryption, then set to 1 */ 665 /* If the host performs {en,de}cryption, then set to 1 */
687 int host_encrypt; 666 int host_encrypt;
688 int host_decrypt; 667 int host_decrypt;
689 int ieee802_1x; /* is IEEE 802.1X used */ 668 int ieee802_1x; /* is IEEE 802.1X used */
690 669
691 /* WPA data */ 670 /* WPA data */
692 int wpa_enabled; 671 int wpa_enabled;
@@ -698,33 +677,36 @@ struct ieee80211_device {
698 677
699 struct list_head crypt_deinit_list; 678 struct list_head crypt_deinit_list;
700 struct ieee80211_crypt_data *crypt[WEP_KEYS]; 679 struct ieee80211_crypt_data *crypt[WEP_KEYS];
701 int tx_keyidx; /* default TX key index (crypt[tx_keyidx]) */ 680 int tx_keyidx; /* default TX key index (crypt[tx_keyidx]) */
702 struct timer_list crypt_deinit_timer; 681 struct timer_list crypt_deinit_timer;
703 682
704 int bcrx_sta_key; /* use individual keys to override default keys even 683 int bcrx_sta_key; /* use individual keys to override default keys even
705 * with RX of broad/multicast frames */ 684 * with RX of broad/multicast frames */
706 685
707 /* Fragmentation structures */ 686 /* Fragmentation structures */
708 struct ieee80211_frag_entry frag_cache[IEEE80211_FRAG_CACHE_LEN]; 687 struct ieee80211_frag_entry frag_cache[IEEE80211_FRAG_CACHE_LEN];
709 unsigned int frag_next_idx; 688 unsigned int frag_next_idx;
710 u16 fts; /* Fragmentation Threshold */ 689 u16 fts; /* Fragmentation Threshold */
711 690
712 /* Association info */ 691 /* Association info */
713 u8 bssid[ETH_ALEN]; 692 u8 bssid[ETH_ALEN];
714 693
715 enum ieee80211_state state; 694 enum ieee80211_state state;
716 695
717 int mode; /* A, B, G */ 696 int mode; /* A, B, G */
718 int modulation; /* CCK, OFDM */ 697 int modulation; /* CCK, OFDM */
719 int freq_band; /* 2.4Ghz, 5.2Ghz, Mixed */ 698 int freq_band; /* 2.4Ghz, 5.2Ghz, Mixed */
720 int abg_ture; /* ABG flag */ 699 int abg_true; /* ABG flag */
700
701 int perfect_rssi;
702 int worst_rssi;
721 703
722 /* Callback functions */ 704 /* Callback functions */
723 void (*set_security)(struct net_device *dev, 705 void (*set_security) (struct net_device * dev,
724 struct ieee80211_security *sec); 706 struct ieee80211_security * sec);
725 int (*hard_start_xmit)(struct ieee80211_txb *txb, 707 int (*hard_start_xmit) (struct ieee80211_txb * txb,
726 struct net_device *dev); 708 struct net_device * dev);
727 int (*reset_port)(struct net_device *dev); 709 int (*reset_port) (struct net_device * dev);
728 710
729 /* This must be the last item so that it points to the data 711 /* This must be the last item so that it points to the data
730 * allocated beyond this structure by alloc_ieee80211 */ 712 * allocated beyond this structure by alloc_ieee80211 */
@@ -757,7 +739,8 @@ extern inline int ieee80211_is_empty_essid(const char *essid, int essid_len)
757 return 1; 739 return 1;
758} 740}
759 741
760extern inline int ieee80211_is_valid_mode(struct ieee80211_device *ieee, int mode) 742extern inline int ieee80211_is_valid_mode(struct ieee80211_device *ieee,
743 int mode)
761{ 744{
762 /* 745 /*
763 * It is possible for both access points and our device to support 746 * It is possible for both access points and our device to support
@@ -808,8 +791,6 @@ extern inline int ieee80211_get_hdrlen(u16 fc)
808 return hdrlen; 791 return hdrlen;
809} 792}
810 793
811
812
813/* ieee80211.c */ 794/* ieee80211.c */
814extern void free_ieee80211(struct net_device *dev); 795extern void free_ieee80211(struct net_device *dev);
815extern struct net_device *alloc_ieee80211(int sizeof_priv); 796extern struct net_device *alloc_ieee80211(int sizeof_priv);
@@ -817,11 +798,9 @@ extern struct net_device *alloc_ieee80211(int sizeof_priv);
817extern int ieee80211_set_encryption(struct ieee80211_device *ieee); 798extern int ieee80211_set_encryption(struct ieee80211_device *ieee);
818 799
819/* ieee80211_tx.c */ 800/* ieee80211_tx.c */
820extern int ieee80211_xmit(struct sk_buff *skb, 801extern int ieee80211_xmit(struct sk_buff *skb, struct net_device *dev);
821 struct net_device *dev);
822extern void ieee80211_txb_free(struct ieee80211_txb *); 802extern void ieee80211_txb_free(struct ieee80211_txb *);
823 803
824
825/* ieee80211_rx.c */ 804/* ieee80211_rx.c */
826extern int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, 805extern int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
827 struct ieee80211_rx_stats *rx_stats); 806 struct ieee80211_rx_stats *rx_stats);
@@ -840,7 +819,6 @@ extern int ieee80211_wx_get_encode(struct ieee80211_device *ieee,
840 struct iw_request_info *info, 819 struct iw_request_info *info,
841 union iwreq_data *wrqu, char *key); 820 union iwreq_data *wrqu, char *key);
842 821
843
844extern inline void ieee80211_increment_scans(struct ieee80211_device *ieee) 822extern inline void ieee80211_increment_scans(struct ieee80211_device *ieee)
845{ 823{
846 ieee->scans++; 824 ieee->scans++;
@@ -851,5 +829,4 @@ extern inline int ieee80211_get_scans(struct ieee80211_device *ieee)
851 return ieee->scans; 829 return ieee->scans;
852} 830}
853 831
854 832#endif /* IEEE80211_H */
855#endif /* IEEE80211_H */
diff --git a/include/net/ieee80211_crypt.h b/include/net/ieee80211_crypt.h
index b58a3bcc0dc0..93bf91fda82e 100644
--- a/include/net/ieee80211_crypt.h
+++ b/include/net/ieee80211_crypt.h
@@ -31,10 +31,10 @@ struct ieee80211_crypto_ops {
31 /* init new crypto context (e.g., allocate private data space, 31 /* init new crypto context (e.g., allocate private data space,
32 * select IV, etc.); returns NULL on failure or pointer to allocated 32 * select IV, etc.); returns NULL on failure or pointer to allocated
33 * private data on success */ 33 * private data on success */
34 void * (*init)(int keyidx); 34 void *(*init) (int keyidx);
35 35
36 /* deinitialize crypto context and free allocated private data */ 36 /* deinitialize crypto context and free allocated private data */
37 void (*deinit)(void *priv); 37 void (*deinit) (void *priv);
38 38
39 /* encrypt/decrypt return < 0 on error or >= 0 on success. The return 39 /* encrypt/decrypt return < 0 on error or >= 0 on success. The return
40 * value from decrypt_mpdu is passed as the keyidx value for 40 * value from decrypt_mpdu is passed as the keyidx value for
@@ -42,21 +42,21 @@ struct ieee80211_crypto_ops {
42 * encryption; if not, error will be returned; these functions are 42 * encryption; if not, error will be returned; these functions are
43 * called for all MPDUs (i.e., fragments). 43 * called for all MPDUs (i.e., fragments).
44 */ 44 */
45 int (*encrypt_mpdu)(struct sk_buff *skb, int hdr_len, void *priv); 45 int (*encrypt_mpdu) (struct sk_buff * skb, int hdr_len, void *priv);
46 int (*decrypt_mpdu)(struct sk_buff *skb, int hdr_len, void *priv); 46 int (*decrypt_mpdu) (struct sk_buff * skb, int hdr_len, void *priv);
47 47
48 /* These functions are called for full MSDUs, i.e. full frames. 48 /* These functions are called for full MSDUs, i.e. full frames.
49 * These can be NULL if full MSDU operations are not needed. */ 49 * These can be NULL if full MSDU operations are not needed. */
50 int (*encrypt_msdu)(struct sk_buff *skb, int hdr_len, void *priv); 50 int (*encrypt_msdu) (struct sk_buff * skb, int hdr_len, void *priv);
51 int (*decrypt_msdu)(struct sk_buff *skb, int keyidx, int hdr_len, 51 int (*decrypt_msdu) (struct sk_buff * skb, int keyidx, int hdr_len,
52 void *priv); 52 void *priv);
53 53
54 int (*set_key)(void *key, int len, u8 *seq, void *priv); 54 int (*set_key) (void *key, int len, u8 * seq, void *priv);
55 int (*get_key)(void *key, int len, u8 *seq, void *priv); 55 int (*get_key) (void *key, int len, u8 * seq, void *priv);
56 56
57 /* procfs handler for printing out key information and possible 57 /* procfs handler for printing out key information and possible
58 * statistics */ 58 * statistics */
59 char * (*print_stats)(char *p, void *priv); 59 char *(*print_stats) (char *p, void *priv);
60 60
61 /* maximum number of bytes added by encryption; encrypt buf is 61 /* maximum number of bytes added by encryption; encrypt buf is
62 * allocated with extra_prefix_len bytes, copy of in_buf, and 62 * allocated with extra_prefix_len bytes, copy of in_buf, and
@@ -69,7 +69,7 @@ struct ieee80211_crypto_ops {
69}; 69};
70 70
71struct ieee80211_crypt_data { 71struct ieee80211_crypt_data {
72 struct list_head list; /* delayed deletion list */ 72 struct list_head list; /* delayed deletion list */
73 struct ieee80211_crypto_ops *ops; 73 struct ieee80211_crypto_ops *ops;
74 void *priv; 74 void *priv;
75 atomic_t refcnt; 75 atomic_t refcnt;
@@ -77,7 +77,7 @@ struct ieee80211_crypt_data {
77 77
78int ieee80211_register_crypto_ops(struct ieee80211_crypto_ops *ops); 78int ieee80211_register_crypto_ops(struct ieee80211_crypto_ops *ops);
79int ieee80211_unregister_crypto_ops(struct ieee80211_crypto_ops *ops); 79int ieee80211_unregister_crypto_ops(struct ieee80211_crypto_ops *ops);
80struct ieee80211_crypto_ops * ieee80211_get_crypto_ops(const char *name); 80struct ieee80211_crypto_ops *ieee80211_get_crypto_ops(const char *name);
81void ieee80211_crypt_deinit_entries(struct ieee80211_device *, int); 81void ieee80211_crypt_deinit_entries(struct ieee80211_device *, int);
82void ieee80211_crypt_deinit_handler(unsigned long); 82void ieee80211_crypt_deinit_handler(unsigned long);
83void ieee80211_crypt_delayed_deinit(struct ieee80211_device *ieee, 83void ieee80211_crypt_delayed_deinit(struct ieee80211_device *ieee,
diff --git a/include/net/syncppp.h b/include/net/syncppp.h
index 614cb6ba564e..877efa434700 100644
--- a/include/net/syncppp.h
+++ b/include/net/syncppp.h
@@ -86,7 +86,6 @@ static inline struct sppp *sppp_of(struct net_device *dev)
86 86
87void sppp_attach (struct ppp_device *pd); 87void sppp_attach (struct ppp_device *pd);
88void sppp_detach (struct net_device *dev); 88void sppp_detach (struct net_device *dev);
89void sppp_input (struct net_device *dev, struct sk_buff *m);
90int sppp_do_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd); 89int sppp_do_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd);
91struct sk_buff *sppp_dequeue (struct net_device *dev); 90struct sk_buff *sppp_dequeue (struct net_device *dev);
92int sppp_isempty (struct net_device *dev); 91int sppp_isempty (struct net_device *dev);