diff options
Diffstat (limited to 'include/linux')
36 files changed, 1158 insertions, 204 deletions
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index 31474e89c59..282a504bd1d 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
| @@ -126,6 +126,7 @@ header-y += pci_regs.h | |||
| 126 | header-y += pfkeyv2.h | 126 | header-y += pfkeyv2.h |
| 127 | header-y += pg.h | 127 | header-y += pg.h |
| 128 | header-y += phantom.h | 128 | header-y += phantom.h |
| 129 | header-y += phonet.h | ||
| 129 | header-y += pkt_cls.h | 130 | header-y += pkt_cls.h |
| 130 | header-y += pkt_sched.h | 131 | header-y += pkt_sched.h |
| 131 | header-y += posix_types.h | 132 | header-y += posix_types.h |
| @@ -233,6 +234,7 @@ unifdef-y += if_fddi.h | |||
| 233 | unifdef-y += if_frad.h | 234 | unifdef-y += if_frad.h |
| 234 | unifdef-y += if_ltalk.h | 235 | unifdef-y += if_ltalk.h |
| 235 | unifdef-y += if_link.h | 236 | unifdef-y += if_link.h |
| 237 | unifdef-y += if_phonet.h | ||
| 236 | unifdef-y += if_pppol2tp.h | 238 | unifdef-y += if_pppol2tp.h |
| 237 | unifdef-y += if_pppox.h | 239 | unifdef-y += if_pppox.h |
| 238 | unifdef-y += if_tr.h | 240 | unifdef-y += if_tr.h |
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 7f4df7c7659..14126bc3664 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h | |||
| @@ -471,6 +471,11 @@ struct ieee80211s_hdr { | |||
| 471 | u8 eaddr3[6]; | 471 | u8 eaddr3[6]; |
| 472 | } __attribute__ ((packed)); | 472 | } __attribute__ ((packed)); |
| 473 | 473 | ||
| 474 | /* Mesh flags */ | ||
| 475 | #define MESH_FLAGS_AE_A4 0x1 | ||
| 476 | #define MESH_FLAGS_AE_A5_A6 0x2 | ||
| 477 | #define MESH_FLAGS_PS_DEEP 0x4 | ||
| 478 | |||
| 474 | /** | 479 | /** |
| 475 | * struct ieee80211_quiet_ie | 480 | * struct ieee80211_quiet_ie |
| 476 | * | 481 | * |
| @@ -643,6 +648,9 @@ struct ieee80211_mgmt { | |||
| 643 | } u; | 648 | } u; |
| 644 | } __attribute__ ((packed)); | 649 | } __attribute__ ((packed)); |
| 645 | 650 | ||
| 651 | /* mgmt header + 1 byte category code */ | ||
| 652 | #define IEEE80211_MIN_ACTION_SIZE offsetof(struct ieee80211_mgmt, u.action.u) | ||
| 653 | |||
| 646 | 654 | ||
| 647 | /* Control frames */ | 655 | /* Control frames */ |
| 648 | struct ieee80211_rts { | 656 | struct ieee80211_rts { |
| @@ -708,12 +716,13 @@ struct ieee80211_ht_addt_info { | |||
| 708 | 716 | ||
| 709 | /* 802.11n HT capabilities masks */ | 717 | /* 802.11n HT capabilities masks */ |
| 710 | #define IEEE80211_HT_CAP_SUP_WIDTH 0x0002 | 718 | #define IEEE80211_HT_CAP_SUP_WIDTH 0x0002 |
| 711 | #define IEEE80211_HT_CAP_MIMO_PS 0x000C | 719 | #define IEEE80211_HT_CAP_SM_PS 0x000C |
| 712 | #define IEEE80211_HT_CAP_GRN_FLD 0x0010 | 720 | #define IEEE80211_HT_CAP_GRN_FLD 0x0010 |
| 713 | #define IEEE80211_HT_CAP_SGI_20 0x0020 | 721 | #define IEEE80211_HT_CAP_SGI_20 0x0020 |
| 714 | #define IEEE80211_HT_CAP_SGI_40 0x0040 | 722 | #define IEEE80211_HT_CAP_SGI_40 0x0040 |
| 715 | #define IEEE80211_HT_CAP_DELAY_BA 0x0400 | 723 | #define IEEE80211_HT_CAP_DELAY_BA 0x0400 |
| 716 | #define IEEE80211_HT_CAP_MAX_AMSDU 0x0800 | 724 | #define IEEE80211_HT_CAP_MAX_AMSDU 0x0800 |
| 725 | #define IEEE80211_HT_CAP_DSSSCCK40 0x1000 | ||
| 717 | /* 802.11n HT capability AMPDU settings */ | 726 | /* 802.11n HT capability AMPDU settings */ |
| 718 | #define IEEE80211_HT_CAP_AMPDU_FACTOR 0x03 | 727 | #define IEEE80211_HT_CAP_AMPDU_FACTOR 0x03 |
| 719 | #define IEEE80211_HT_CAP_AMPDU_DENSITY 0x1C | 728 | #define IEEE80211_HT_CAP_AMPDU_DENSITY 0x1C |
| @@ -736,11 +745,26 @@ struct ieee80211_ht_addt_info { | |||
| 736 | #define IEEE80211_HT_IE_NON_GF_STA_PRSNT 0x0004 | 745 | #define IEEE80211_HT_IE_NON_GF_STA_PRSNT 0x0004 |
| 737 | #define IEEE80211_HT_IE_NON_HT_STA_PRSNT 0x0010 | 746 | #define IEEE80211_HT_IE_NON_HT_STA_PRSNT 0x0010 |
| 738 | 747 | ||
| 739 | /* MIMO Power Save Modes */ | 748 | /* block-ack parameters */ |
| 740 | #define WLAN_HT_CAP_MIMO_PS_STATIC 0 | 749 | #define IEEE80211_ADDBA_PARAM_POLICY_MASK 0x0002 |
| 741 | #define WLAN_HT_CAP_MIMO_PS_DYNAMIC 1 | 750 | #define IEEE80211_ADDBA_PARAM_TID_MASK 0x003C |
| 742 | #define WLAN_HT_CAP_MIMO_PS_INVALID 2 | 751 | #define IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK 0xFFA0 |
| 743 | #define WLAN_HT_CAP_MIMO_PS_DISABLED 3 | 752 | #define IEEE80211_DELBA_PARAM_TID_MASK 0xF000 |
| 753 | #define IEEE80211_DELBA_PARAM_INITIATOR_MASK 0x0800 | ||
| 754 | |||
| 755 | /* | ||
| 756 | * A-PMDU buffer sizes | ||
| 757 | * According to IEEE802.11n spec size varies from 8K to 64K (in powers of 2) | ||
| 758 | */ | ||
| 759 | #define IEEE80211_MIN_AMPDU_BUF 0x8 | ||
| 760 | #define IEEE80211_MAX_AMPDU_BUF 0x40 | ||
| 761 | |||
| 762 | |||
| 763 | /* Spatial Multiplexing Power Save Modes */ | ||
| 764 | #define WLAN_HT_CAP_SM_PS_STATIC 0 | ||
| 765 | #define WLAN_HT_CAP_SM_PS_DYNAMIC 1 | ||
| 766 | #define WLAN_HT_CAP_SM_PS_INVALID 2 | ||
| 767 | #define WLAN_HT_CAP_SM_PS_DISABLED 3 | ||
| 744 | 768 | ||
| 745 | /* Authentication algorithms */ | 769 | /* Authentication algorithms */ |
| 746 | #define WLAN_AUTH_OPEN 0 | 770 | #define WLAN_AUTH_OPEN 0 |
diff --git a/include/linux/if.h b/include/linux/if.h index 5c9d1fa93fe..65246846c84 100644 --- a/include/linux/if.h +++ b/include/linux/if.h | |||
| @@ -24,6 +24,7 @@ | |||
| 24 | #include <linux/compiler.h> /* for "__user" et al */ | 24 | #include <linux/compiler.h> /* for "__user" et al */ |
| 25 | 25 | ||
| 26 | #define IFNAMSIZ 16 | 26 | #define IFNAMSIZ 16 |
| 27 | #define IFALIASZ 256 | ||
| 27 | #include <linux/hdlc/ioctl.h> | 28 | #include <linux/hdlc/ioctl.h> |
| 28 | 29 | ||
| 29 | /* Standard interface flags (netdevice->flags). */ | 30 | /* Standard interface flags (netdevice->flags). */ |
diff --git a/include/linux/if_ether.h b/include/linux/if_ether.h index e157c1399b6..bf1a53b2682 100644 --- a/include/linux/if_ether.h +++ b/include/linux/if_ether.h | |||
| @@ -56,6 +56,7 @@ | |||
| 56 | #define ETH_P_DIAG 0x6005 /* DEC Diagnostics */ | 56 | #define ETH_P_DIAG 0x6005 /* DEC Diagnostics */ |
| 57 | #define ETH_P_CUST 0x6006 /* DEC Customer use */ | 57 | #define ETH_P_CUST 0x6006 /* DEC Customer use */ |
| 58 | #define ETH_P_SCA 0x6007 /* DEC Systems Comms Arch */ | 58 | #define ETH_P_SCA 0x6007 /* DEC Systems Comms Arch */ |
| 59 | #define ETH_P_TEB 0x6558 /* Trans Ether Bridging */ | ||
| 59 | #define ETH_P_RARP 0x8035 /* Reverse Addr Res packet */ | 60 | #define ETH_P_RARP 0x8035 /* Reverse Addr Res packet */ |
| 60 | #define ETH_P_ATALK 0x809B /* Appletalk DDP */ | 61 | #define ETH_P_ATALK 0x809B /* Appletalk DDP */ |
| 61 | #define ETH_P_AARP 0x80F3 /* Appletalk AARP */ | 62 | #define ETH_P_AARP 0x80F3 /* Appletalk AARP */ |
| @@ -74,8 +75,10 @@ | |||
| 74 | #define ETH_P_ATMFATE 0x8884 /* Frame-based ATM Transport | 75 | #define ETH_P_ATMFATE 0x8884 /* Frame-based ATM Transport |
| 75 | * over Ethernet | 76 | * over Ethernet |
| 76 | */ | 77 | */ |
| 78 | #define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */ | ||
| 77 | #define ETH_P_AOE 0x88A2 /* ATA over Ethernet */ | 79 | #define ETH_P_AOE 0x88A2 /* ATA over Ethernet */ |
| 78 | #define ETH_P_TIPC 0x88CA /* TIPC */ | 80 | #define ETH_P_TIPC 0x88CA /* TIPC */ |
| 81 | #define ETH_P_EDSA 0xDADA /* Ethertype DSA [ NOT AN OFFICIALLY REGISTERED ID ] */ | ||
| 79 | 82 | ||
| 80 | /* | 83 | /* |
| 81 | * Non DIX types. Won't clash for 1500 types. | 84 | * Non DIX types. Won't clash for 1500 types. |
| @@ -99,6 +102,9 @@ | |||
| 99 | #define ETH_P_ECONET 0x0018 /* Acorn Econet */ | 102 | #define ETH_P_ECONET 0x0018 /* Acorn Econet */ |
| 100 | #define ETH_P_HDLC 0x0019 /* HDLC frames */ | 103 | #define ETH_P_HDLC 0x0019 /* HDLC frames */ |
| 101 | #define ETH_P_ARCNET 0x001A /* 1A for ArcNet :-) */ | 104 | #define ETH_P_ARCNET 0x001A /* 1A for ArcNet :-) */ |
| 105 | #define ETH_P_DSA 0x001B /* Distributed Switch Arch. */ | ||
| 106 | #define ETH_P_TRAILER 0x001C /* Trailer switch tagging */ | ||
| 107 | #define ETH_P_PHONET 0x00F5 /* Nokia Phonet frames */ | ||
| 102 | 108 | ||
| 103 | /* | ||
