diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ieee80211.h | 123 | ||||
-rw-r--r-- | include/net/ieee80211_crypt.h | 24 | ||||
-rw-r--r-- | include/net/syncppp.h | 1 |
3 files changed, 62 insertions, 86 deletions
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. */ |
141 | const char *escape_essid(const char *essid, u8 essid_len); | 138 | const 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 | ||
216 | struct ieee80211_snap_hdr { | 212 | struct 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 | ||
461 | struct ieee80211_security { | 452 | struct 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 | ||
521 | struct ieee80211_info_element_hdr { | ||
522 | u8 id; | ||
523 | u8 len; | ||
524 | } __attribute__ ((packed)); | ||
525 | |||
526 | struct ieee80211_info_element { | 508 | struct 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 | |||
558 | struct ieee80211_probe_response { | 539 | struct 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 | ||
566 | struct ieee80211_assoc_request_frame { | 547 | struct 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 | ||
573 | struct ieee80211_assoc_response_frame { | 554 | struct 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 | |||
582 | struct ieee80211_txb { | 562 | struct 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 | ||
760 | extern inline int ieee80211_is_valid_mode(struct ieee80211_device *ieee, int mode) | 742 | extern 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 */ |
814 | extern void free_ieee80211(struct net_device *dev); | 795 | extern void free_ieee80211(struct net_device *dev); |
815 | extern struct net_device *alloc_ieee80211(int sizeof_priv); | 796 | extern struct net_device *alloc_ieee80211(int sizeof_priv); |
@@ -817,11 +798,9 @@ extern struct net_device *alloc_ieee80211(int sizeof_priv); | |||
817 | extern int ieee80211_set_encryption(struct ieee80211_device *ieee); | 798 | extern int ieee80211_set_encryption(struct ieee80211_device *ieee); |
818 | 799 | ||
819 | /* ieee80211_tx.c */ | 800 | /* ieee80211_tx.c */ |
820 | extern int ieee80211_xmit(struct sk_buff *skb, | 801 | extern int ieee80211_xmit(struct sk_buff *skb, struct net_device *dev); |
821 | struct net_device *dev); | ||
822 | extern void ieee80211_txb_free(struct ieee80211_txb *); | 802 | extern void ieee80211_txb_free(struct ieee80211_txb *); |
823 | 803 | ||
824 | |||
825 | /* ieee80211_rx.c */ | 804 | /* ieee80211_rx.c */ |
826 | extern int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, | 805 | extern 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 | |||
844 | extern inline void ieee80211_increment_scans(struct ieee80211_device *ieee) | 822 | extern 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 | ||
71 | struct ieee80211_crypt_data { | 71 | struct 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 | ||
78 | int ieee80211_register_crypto_ops(struct ieee80211_crypto_ops *ops); | 78 | int ieee80211_register_crypto_ops(struct ieee80211_crypto_ops *ops); |
79 | int ieee80211_unregister_crypto_ops(struct ieee80211_crypto_ops *ops); | 79 | int ieee80211_unregister_crypto_ops(struct ieee80211_crypto_ops *ops); |
80 | struct ieee80211_crypto_ops * ieee80211_get_crypto_ops(const char *name); | 80 | struct ieee80211_crypto_ops *ieee80211_get_crypto_ops(const char *name); |
81 | void ieee80211_crypt_deinit_entries(struct ieee80211_device *, int); | 81 | void ieee80211_crypt_deinit_entries(struct ieee80211_device *, int); |
82 | void ieee80211_crypt_deinit_handler(unsigned long); | 82 | void ieee80211_crypt_deinit_handler(unsigned long); |
83 | void ieee80211_crypt_delayed_deinit(struct ieee80211_device *ieee, | 83 | void 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 | ||
87 | void sppp_attach (struct ppp_device *pd); | 87 | void sppp_attach (struct ppp_device *pd); |
88 | void sppp_detach (struct net_device *dev); | 88 | void sppp_detach (struct net_device *dev); |
89 | void sppp_input (struct net_device *dev, struct sk_buff *m); | ||
90 | int sppp_do_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd); | 89 | int sppp_do_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd); |
91 | struct sk_buff *sppp_dequeue (struct net_device *dev); | 90 | struct sk_buff *sppp_dequeue (struct net_device *dev); |
92 | int sppp_isempty (struct net_device *dev); | 91 | int sppp_isempty (struct net_device *dev); |