2 * hostapd / Initialization and configuration
3 * Host AP kernel driver
4 * Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * Alternatively, this software may be distributed under the terms of BSD
13 * See README and COPYING for more details.
16 #ifndef HOSTAPD_DEFS_H
17 #define HOSTAPD_DEFS_H
26 #define ETH_P_ALL 0x0003
29 #define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */
30 #endif /* ETH_P_PAE */
32 #define ETH_P_EAPOL ETH_P_PAE
33 #endif /* ETH_P_EAPOL */
36 #define ETH_P_RRB 0x890D
37 #endif /* ETH_P_RRB */
43 #define MAX_VLAN_ID 4094
52 struct ieee80211_hdr {
59 /* followed by 'u8 addr4[6];' if ToDS and FromDS is set in data frame
67 #define IEEE80211_DA_FROMDS addr1
68 #define IEEE80211_BSSID_FROMDS addr2
69 #define IEEE80211_SA_FROMDS addr3
71 #define IEEE80211_HDRLEN (sizeof(struct ieee80211_hdr))
73 #define IEEE80211_FC(type, stype) host_to_le16((type << 2) | (stype << 4))
75 /* MTU to be set for the wlan#ap device; this is mainly needed for IEEE 802.1X
76 * frames that might be longer than normal default MTU and they are not
78 #define HOSTAPD_MTU 2290
80 #endif /* HOSTAPD_DEFS_H */