diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/Kbuild | 1 | ||||
-rw-r--r-- | include/linux/netdevice.h | 4 | ||||
-rw-r--r-- | include/linux/nl80211.h | 38 |
3 files changed, 43 insertions, 0 deletions
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index ea86f2e02716..4ff0f57d0add 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
@@ -113,6 +113,7 @@ header-y += netrom.h | |||
113 | header-y += nfs2.h | 113 | header-y += nfs2.h |
114 | header-y += nfs4_mount.h | 114 | header-y += nfs4_mount.h |
115 | header-y += nfs_mount.h | 115 | header-y += nfs_mount.h |
116 | header-y += nl80211.h | ||
116 | header-y += oom.h | 117 | header-y += oom.h |
117 | header-y += param.h | 118 | header-y += param.h |
118 | header-y += pci_regs.h | 119 | header-y += pci_regs.h |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 71fc8ff4888b..584c199ec2d5 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -42,6 +42,8 @@ | |||
42 | struct vlan_group; | 42 | struct vlan_group; |
43 | struct ethtool_ops; | 43 | struct ethtool_ops; |
44 | struct netpoll_info; | 44 | struct netpoll_info; |
45 | /* 802.11 specific */ | ||
46 | struct wireless_dev; | ||
45 | /* source back-compat hooks */ | 47 | /* source back-compat hooks */ |
46 | #define SET_ETHTOOL_OPS(netdev,ops) \ | 48 | #define SET_ETHTOOL_OPS(netdev,ops) \ |
47 | ( (netdev)->ethtool_ops = (ops) ) | 49 | ( (netdev)->ethtool_ops = (ops) ) |
@@ -400,6 +402,8 @@ struct net_device | |||
400 | void *ip6_ptr; /* IPv6 specific data */ | 402 | void *ip6_ptr; /* IPv6 specific data */ |
401 | void *ec_ptr; /* Econet specific data */ | 403 | void *ec_ptr; /* Econet specific data */ |
402 | void *ax25_ptr; /* AX.25 specific data */ | 404 | void *ax25_ptr; /* AX.25 specific data */ |
405 | struct wireless_dev *ieee80211_ptr; /* IEEE 802.11 specific data, | ||
406 | assign before registering */ | ||
403 | 407 | ||
404 | /* | 408 | /* |
405 | * Cache line mostly used on receive path (including eth_type_trans()) | 409 | * Cache line mostly used on receive path (including eth_type_trans()) |
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h new file mode 100644 index 000000000000..9a30ba2ca75e --- /dev/null +++ b/include/linux/nl80211.h | |||
@@ -0,0 +1,38 @@ | |||
1 | #ifndef __LINUX_NL80211_H | ||
2 | #define __LINUX_NL80211_H | ||
3 | /* | ||
4 | * 802.11 netlink interface public header | ||
5 | * | ||
6 | * Copyright 2006, 2007 Johannes Berg <johannes@sipsolutions.net> | ||
7 | */ | ||
8 | |||
9 | /** | ||
10 | * enum nl80211_iftype - (virtual) interface types | ||
11 | * @NL80211_IFTYPE_UNSPECIFIED: unspecified type, driver decides | ||
12 | * @NL80211_IFTYPE_ADHOC: independent BSS member | ||
13 | * @NL80211_IFTYPE_STATION: managed BSS member | ||
14 | * @NL80211_IFTYPE_AP: access point | ||
15 | * @NL80211_IFTYPE_AP_VLAN: VLAN interface for access points | ||
16 | * @NL80211_IFTYPE_WDS: wireless distribution interface | ||
17 | * @NL80211_IFTYPE_MONITOR: monitor interface receiving all frames | ||
18 | * @__NL80211_IFTYPE_AFTER_LAST: internal use | ||
19 | * | ||
20 | * These values are used with the NL80211_ATTR_IFTYPE | ||
21 | * to set the type of an interface. | ||
22 | * | ||
23 | */ | ||
24 | enum nl80211_iftype { | ||
25 | NL80211_IFTYPE_UNSPECIFIED, | ||
26 | NL80211_IFTYPE_ADHOC, | ||
27 | NL80211_IFTYPE_STATION, | ||
28 | NL80211_IFTYPE_AP, | ||
29 | NL80211_IFTYPE_AP_VLAN, | ||
30 | NL80211_IFTYPE_WDS, | ||
31 | NL80211_IFTYPE_MONITOR, | ||
32 | |||
33 | /* keep last */ | ||
34 | __NL80211_IFTYPE_AFTER_LAST | ||
35 | }; | ||
36 | #define NL80211_IFTYPE_MAX (__NL80211_IFTYPE_AFTER_LAST - 1) | ||
37 | |||
38 | #endif /* __LINUX_NL80211_H */ | ||