0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * CDDL HEADER START
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * The contents of this file are subject to the terms of the
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * Common Development and Distribution License (the "License").
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * You may not use this file except in compliance with the License.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * See the License for the specific language governing permissions
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * and limitations under the License.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * When distributing Covered Code, include this CDDL HEADER in each
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * If applicable, add the following below this CDDL HEADER, with the
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * fields enclosed by brackets "[]" replaced with your own identifying
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * information: Portions Copyright [yyyy] [name of copyright owner]
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * CDDL HEADER END
e2cf88ac9d753a00c17aa235f6afdc76574fe3a6Quaker Fang * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * Use is subject to license terms.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * WiFi MAC-Type Plugin
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxcextern "C" {
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * Maximum size of a WiFi header based on current implementation.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * May change in the future as new features are added.
e2cf88ac9d753a00c17aa235f6afdc76574fe3a6Quaker Fang#define WIFI_HDRSIZE (sizeof (struct ieee80211_qosframe_addr4) + \
a399b7655a1d835aa8606c2b29e4e777baac8635zf IEEE80211_WEP_IVLEN + IEEE80211_WEP_KIDLEN + IEEE80211_WEP_EXTIVLEN + \
a399b7655a1d835aa8606c2b29e4e777baac8635zf sizeof (struct ieee80211_llc))
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc /* statistics described in ieee802.11(5) */
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * WiFi security modes recognized by the plugin.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * WiFi data passed between the drivers and the plugin.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * Field definitions:
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * wd_opts Currently set to 0. If new features require the
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * introduction of new wifi_data_t fields, then the
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * presence of those fields must be indicated to the
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * plugin via wd_opts flags. This allows the drivers
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * and the plugin to evolve independently.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * wd_bssid Current associated BSSID (or IBSSID), used when
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * generating data packet headers for transmission.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * wd_opmode Current operation mode; any ieee80211_opmode is
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * supported.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * wd_secalloc Current allocation policy for security-related
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * WiFi headers, used when generating packets for
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * transmission. The plugin will allocate header
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * space for the security portion, and fill in any
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * fixed-contents fields.
e2cf88ac9d753a00c17aa235f6afdc76574fe3a6Quaker Fang * wd_qospad Generally, QoS data field takes 2 bytes, but
e2cf88ac9d753a00c17aa235f6afdc76574fe3a6Quaker Fang * some special hardwares, such as Atheros, will need the
e2cf88ac9d753a00c17aa235f6afdc76574fe3a6Quaker Fang * 802.11 header padded to a 32-bit boundary for 4-address
e2cf88ac9d753a00c17aa235f6afdc76574fe3a6Quaker Fang * and QoS frames, at this time, it's 4 bytes.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc#endif /* _KERNEL */
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc#endif /* _SYS_MAC_WIFI_H */